#9F271B#9F271B

#9F271B is a mid, vivid red. Relative luminance 0.089; OKLCH L 46.5% C 0.158 H 29.9°. Best body text is #FFFFFF at 7.55:1 contrast (WCAG AA passes).

Color values

HEX#9F271B
RGBrgb(159, 39, 27)
HSLhsl(5, 71%, 36%)
HSVhsv(5, 83%, 62%)
CMYKcmyk(0%, 75.5%, 83%, 37.6%)
CIE-LABlab(35.80, 48.27, 36.95)
CIE-LCHlch(35.80, 60.79, 37.43°)
OKLaboklab(46.51% 0.1371 0.0788)
OKLCHoklch(46.51% 0.158 29.9)
XYZxyz(15.2233, 8.9035, 1.9537)
Luminance0.0890 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F271B #1B939F
analogous
#9F1B51 #9F271B #9F691B
triadic
#9F271B #1B9F27 #271B9F
tetradic
#9F271B #519F1B #1B939F #691B9F
square
#9F271B #519F1B #1B939F #691B9F
split-complementary
#9F271B #1B9F69 #1B519F
monochromatic
#360D09 #6B1A12 #9F271B #D33424 #E26053

Accessibility & contrast

On white

7.55
#9F271B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.78
#9F271B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #9F271B
7.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F271B#FFFFFF#000000##FFFFFF
##9F271B1.007.552.787.55
#FFFFFF7.551.0021.001.00
#0000002.7821.001.0021.00
##FFFFFF7.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4C4318
Deuteranopia (green-blind)
#695E15
Tritanopia (blue-blind)
#B00026
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #9f271b;
/* rgb */ color: rgb(159, 39, 27);
/* oklch */ color: oklch(46.5% 0.158 29.9);
Tailwind
colors: {
  custom: {
    50: '#c46b59',
    500: '#9f271b',
    950: '#000000',
  },
}
SCSS
$custom: #9f271b;
$custom-light: #c46b59;
$custom-dark: #000000;
JSON
{
  "hex": "#9f271b",
  "rgb": {
    "r": 159,
    "g": 39,
    "b": 27
  },
  "hsl": {
    "h": 5.455,
    "s": 70.968,
    "l": 36.471
  },
  "oklch": {
    "l": 0.46507,
    "c": 0.15817,
    "h": 29.9
  },
  "luminance": 0.08901
}

Semantic roles & 50–950 ramp

primary
#9F271B
secondary
#51BAC5
accent
#DDEE3A
background
#FDF6F5
surface
#FAECE9
border
#D3C7C5
text
#150703
muted
#837A78

Preview Lab

Preview with #9F271B

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

Preview Lab → · Contrast checker → · Palette generator →

#9F271B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva