#7F152A#7F152A

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

Color values

HEX#7F152A
RGBrgb(127, 21, 42)
HSLhsl(348, 72%, 29%)
HSVhsv(348, 83%, 50%)
CMYKcmyk(0%, 83.5%, 66.9%, 50.2%)
CIE-LABlab(27.34, 44.72, 16.41)
CIE-LCHlch(27.34, 47.63, 20.15°)
OKLaboklab(39.12% 0.1335 0.0393)
OKLCHoklch(39.12% 0.139 16.4)
XYZxyz(9.4395, 5.2170, 2.7000)
Luminance0.0522 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F152A #157F6A
analogous
#7F155F #7F152A #7F3515
triadic
#7F152A #2A7F15 #152A7F
tetradic
#7F152A #5F7F15 #157F6A #35157F
square
#7F152A #5F7F15 #157F6A #35157F
split-complementary
#7F152A #157F35 #155F7F
monochromatic
#1A0409 #4A0C19 #7F152A #B41E3B #DD3153

Accessibility & contrast

On white

10.28
#7F152A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7F152A
10.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F152A#FFFFFF#000000##FFFFFF
##7F152A1.0010.282.0410.28
#FFFFFF10.281.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#35322A
Deuteranopia (green-blind)
#4F4827
Tritanopia (blue-blind)
#8C001E
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #7f152a;
/* rgb */ color: rgb(127, 21, 42);
/* oklch */ color: oklch(39.1% 0.139 16.4);
Tailwind
colors: {
  custom: {
    50: '#ab5f63',
    500: '#7f152a',
    950: '#000000',
  },
}
SCSS
$custom: #7f152a;
$custom-light: #ab5f63;
$custom-dark: #000000;
JSON
{
  "hex": "#7f152a",
  "rgb": {
    "r": 127,
    "g": 21,
    "b": 42
  },
  "hsl": {
    "h": 348.113,
    "s": 71.622,
    "l": 29.02
  },
  "oklch": {
    "l": 0.39119,
    "c": 0.13913,
    "h": 16.4
  },
  "luminance": 0.05216
}

Semantic roles & 50–950 ramp

primary
#7F152A
secondary
#3CB49C
accent
#EECB39
background
#FBF5F5
surface
#F6EAEA
border
#D0C6C6
text
#110505
muted
#807979

Preview Lab

Preview with #7F152A

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

Preview Lab → · Contrast checker → · Palette generator →

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