#7F152B#7F152B

#7F152B is a dark, vivid red. Relative luminance 0.052; OKLCH L 39.1% C 0.139 H 15.8°. Best body text is #FFFFFF at 10.27:1 contrast (WCAG AA passes).

Color values

HEX#7F152B
RGBrgb(127, 21, 43)
HSLhsl(348, 72%, 29%)
HSVhsv(348, 83%, 50%)
CMYKcmyk(0%, 83.5%, 66.1%, 50.2%)
CIE-LABlab(27.36, 44.78, 15.77)
CIE-LCHlch(27.36, 47.47, 19.39°)
OKLaboklab(39.14% 0.1339 0.038)
OKLCHoklch(39.14% 0.139 15.8)
XYZxyz(9.4576, 5.2242, 2.7954)
Luminance0.0522 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F152B #157F69
analogous
#7F1560 #7F152B #7F3415
triadic
#7F152B #2B7F15 #152B7F
tetradic
#7F152B #607F15 #157F69 #34157F
square
#7F152B #607F15 #157F69 #34157F
split-complementary
#7F152B #157F34 #15607F
monochromatic
#1A0409 #4A0C19 #7F152B #B41E3D #DD3155

Accessibility & contrast

On white

10.27
#7F152B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#7F152B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F152B
10.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F152B#FFFFFF#000000##FFFFFF
##7F152B1.0010.272.0410.27
#FFFFFF10.271.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#35332B
Deuteranopia (green-blind)
#4F4828
Tritanopia (blue-blind)
#8C001F
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #7f152b;
/* rgb */ color: rgb(127, 21, 43);
/* oklch */ color: oklch(39.1% 0.139 15.8);
Tailwind
colors: {
  custom: {
    50: '#ab5f64',
    500: '#7f152b',
    950: '#000000',
  },
}
SCSS
$custom: #7f152b;
$custom-light: #ab5f64;
$custom-dark: #000000;
JSON
{
  "hex": "#7f152b",
  "rgb": {
    "r": 127,
    "g": 21,
    "b": 43
  },
  "hsl": {
    "h": 347.547,
    "s": 71.622,
    "l": 29.02
  },
  "oklch": {
    "l": 0.39141,
    "c": 0.13915,
    "h": 15.8
  },
  "luminance": 0.05223
}

Semantic roles & 50–950 ramp

primary
#7F152B
secondary
#3CB49B
accent
#EEC939
background
#FBF5F5
surface
#F6EAEA
border
#D0C6C6
text
#110505
muted
#807979

Preview Lab

Preview with #7F152B

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

Preview Lab → · Contrast checker → · Palette generator →

#7F152B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva