#7F152F#7F152F

#7F152F is a dark, vivid red. Relative luminance 0.053; OKLCH L 39.2% C 0.139 H 13.4°. Best body text is #FFFFFF at 10.24:1 contrast (WCAG AA passes).

Color values

HEX#7F152F
RGBrgb(127, 21, 47)
HSLhsl(345, 72%, 29%)
HSVhsv(345, 83%, 50%)
CMYKcmyk(0%, 83.5%, 63%, 50.2%)
CIE-LABlab(27.45, 45.04, 13.19)
CIE-LCHlch(27.45, 46.93, 16.32°)
OKLaboklab(39.23% 0.1356 0.0323)
OKLCHoklch(39.23% 0.139 13.4)
XYZxyz(9.5347, 5.2550, 3.2010)
Luminance0.0525 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F152F #157F65
analogous
#7F1564 #7F152F #7F3015
triadic
#7F152F #2F7F15 #152F7F
tetradic
#7F152F #647F15 #157F65 #30157F
square
#7F152F #647F15 #157F65 #30157F
split-complementary
#7F152F #157F30 #15647F
monochromatic
#1A040A #4A0C1C #7F152F #B41E42 #DD315B

Accessibility & contrast

On white

10.24
#7F152F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.05
#7F152F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F152F
10.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F152F#FFFFFF#000000##FFFFFF
##7F152F1.0010.242.0510.24
#FFFFFF10.241.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#34332F
Deuteranopia (green-blind)
#4F492C
Tritanopia (blue-blind)
#8C0021
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #7f152f;
/* rgb */ color: rgb(127, 21, 47);
/* oklch */ color: oklch(39.2% 0.139 13.4);
Tailwind
colors: {
  custom: {
    50: '#ab5f67',
    500: '#7f152f',
    950: '#000000',
  },
}
SCSS
$custom: #7f152f;
$custom-light: #ab5f67;
$custom-dark: #000000;
JSON
{
  "hex": "#7f152f",
  "rgb": {
    "r": 127,
    "g": 21,
    "b": 47
  },
  "hsl": {
    "h": 345.283,
    "s": 71.622,
    "l": 29.02
  },
  "oklch": {
    "l": 0.39231,
    "c": 0.13937,
    "h": 13.4
  },
  "luminance": 0.05254
}

Semantic roles & 50–950 ramp

primary
#7F152F
secondary
#3CB497
accent
#EEC239
background
#FBF5F6
surface
#F6EAEB
border
#D0C6C6
text
#110506
muted
#80797A

Preview Lab

Preview with #7F152F

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

Preview Lab → · Contrast checker → · Palette generator →

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