#781F27#781F27

#781F27 is a dark, vivid red. Relative luminance 0.051; OKLCH L 38.6% C 0.122 H 20.2°. Best body text is #FFFFFF at 10.38:1 contrast (WCAG AA passes).

Color values

HEX#781F27
RGBrgb(120, 31, 39)
HSLhsl(355, 59%, 30%)
HSVhsv(355, 74%, 47%)
CMYKcmyk(0%, 74.2%, 67.5%, 52.9%)
CIE-LABlab(27.08, 38.82, 17.77)
CIE-LCHlch(27.08, 42.69, 24.60°)
OKLaboklab(38.64% 0.1149 0.0423)
OKLCHoklch(38.64% 0.122 20.2)
XYZxyz(8.6028, 5.1208, 2.4545)
Luminance0.0512 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#781F27 #1F7870
analogous
#781F54 #781F27 #78441F
triadic
#781F27 #27781F #1F2778
tetradic
#781F27 #54781F #1F7870 #441F78
square
#781F27 #54781F #1F7870 #441F78
split-complementary
#781F27 #1F7844 #1F5478
monochromatic
#180608 #471217 #781F27 #A92C37 #CE4350

Accessibility & contrast

On white

10.38
#781F27 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#781F27 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #781F27
10.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##781F27#FFFFFF#000000##FFFFFF
##781F271.0010.382.0210.38
#FFFFFF10.381.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#373427
Deuteranopia (green-blind)
#4E4724
Tritanopia (blue-blind)
#840323
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #781f27;
/* rgb */ color: rgb(120, 31, 39);
/* oklch */ color: oklch(38.6% 0.122 20.2);
Tailwind
colors: {
  custom: {
    50: '#a56261',
    500: '#781f27',
    950: '#000000',
  },
}
SCSS
$custom: #781f27;
$custom-light: #a56261;
$custom-dark: #000000;
JSON
{
  "hex": "#781f27",
  "rgb": {
    "r": 120,
    "g": 31,
    "b": 39
  },
  "hsl": {
    "h": 354.607,
    "s": 58.94,
    "l": 29.608
  },
  "oklch": {
    "l": 0.38641,
    "c": 0.12244,
    "h": 20.2
  },
  "luminance": 0.0512
}

Semantic roles & 50–950 ramp

primary
#781F27
secondary
#47ABA2
accent
#E2D446
background
#FAF6F5
surface
#F4EBE9
border
#CEC6C5
text
#100505
muted
#7F7A79

Preview Lab

Preview with #781F27

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#781F27 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva