Accessibility
Vs white / black
10.56:1 · 1.99:1
Sources
Codes
HEX
#7b1722
RGB
rgb(123, 23, 34)
RGBA
rgba(123, 23, 34, 1)
HSL
hsl(353, 68%, 29%)
HSLA
hsla(353, 68%, 29%, 1)
HSV
hsv(353, 81%, 48%)
LAB
lab(26.56% 42.42 20.57)
LCH
lch(26.56% 47.14 25.87)
OKLAB
oklab(0.3834 0.1248 0.0477)
OKLCH
oklch(0.3834 0.1336 20.92)
XYZ
xyz(8.76, 4.94, 2.01)
CMYK
cmyk(0%, 81%, 72%, 52%)
CSS
color: #7b1722;
CSS variable
--color-7b1722: #7b1722;
SCSS
$color-7b1722: #7b1722;
JavaScript
const color = "#7b1722";
TypeScript
const color: string = "#7b1722";
React
style={{ backgroundColor: "#7b1722" }}
JSON
{ "hex": "#7b1722", "rgb": { "r": 123, "g": 23, "b": 34 }, "oklch": "oklch(0.3834 0.1336 20.92)" }
Export
:root {
--#7b1722-1: #7b1722;
}Design systems
An arbitrary HEX is not an official Tailwind, Material, or Bootstrap color. Distance is CIEDE2000.
Nearest Tailwind color
red-900
Noticeably different · ΔE 3.39 · #7F1D1D
Nearest CSS named color
Maroon
Very different · ΔE 8.29 · #800000
Nearest Material color
red-900
Very different · ΔE 13.64 · #B71C1C
Nearest Bootstrap color
danger
Very different · ΔE 20.93 · #DC3545
OKLCH
Generated in OKLCH from this hex. Not an official Tailwind scale unless the hex itself is a Tailwind token.
Palette
Full scale from light tints through the base color into deep shades
Palette
Mixed toward white — soft backgrounds and highlights
Palette
Mixed toward black — depth, text, and emphasis
Palette
Mixed toward neutral grey — muted UI surfaces
Harmony
Opposite on the color wheel for contrast
Harmony
Neighbors that sit comfortably together
Harmony
Evenly spaced triad for vibrant sets
Harmony
Base plus two accents beside the complement
Harmony
Same hue, varied lightness and saturation
Using this color
#7B1722 (#7b1722) sits in the red family at about 353° hue, 68% saturation, and 29% lightness. Contrast is 10.56:1 on white and 1.99:1 on black, so white labels read more clearly on the swatch itself. Nearest Tailwind token: red-900 (approximation unless the hex is an official scale stop).
Sensible jobs for this swatch
On a black or near-black UI, #7b1722 is 1.99:1. Prefer it as a fill, border, or large heading rather than 16px copy.
Family context: Energy, urgency, passion, and excitement. Often used for CTAs, alerts, and brands that want attention. Common uses still include buttons, charts, and accents in the Red range — always verify the pair for this exact hex in the contrast checker.
Related
Nearby colors from the library by perceptual distance