#9D271A#9D271A

#9D271A is a mid, vivid red. Relative luminance 0.087; OKLCH L 46.1% C 0.156 H 30.2°. Best body text is #FFFFFF at 7.67:1 contrast (WCAG AA passes).

Color values

HEX#9D271A
RGBrgb(157, 39, 26)
HSLhsl(6, 72%, 36%)
HSVhsv(6, 83%, 62%)
CMYKcmyk(0%, 75.2%, 83.4%, 38.4%)
CIE-LABlab(35.39, 47.59, 36.96)
CIE-LCHlch(35.39, 60.25, 37.83°)
OKLaboklab(46.13% 0.135 0.0787)
OKLCHoklch(46.13% 0.156 30.2)
XYZxyz(14.8184, 8.6961, 1.8753)
Luminance0.0869 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D271A #1A909D
analogous
#9D1A4E #9D271A #9D681A
triadic
#9D271A #1A9D27 #271A9D
tetradic
#9D271A #4E9D1A #1A909D #681A9D
square
#9D271A #4E9D1A #1A909D #681A9D
split-complementary
#9D271A #1A9D68 #1A4E9D
monochromatic
#340D09 #681A11 #9D271A #D23423 #E25E4F

Accessibility & contrast

On white

7.67
#9D271A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.74
#9D271A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #9D271A
7.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D271A#FFFFFF#000000##FFFFFF
##9D271A1.007.672.747.67
#FFFFFF7.671.0021.001.00
#0000002.7421.001.0021.00
##FFFFFF7.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4B4317
Deuteranopia (green-blind)
#685D14
Tritanopia (blue-blind)
#AD0025
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #9d271a;
/* rgb */ color: rgb(157, 39, 26);
/* oklch */ color: oklch(46.1% 0.156 30.2);
Tailwind
colors: {
  custom: {
    50: '#c36b58',
    500: '#9d271a',
    950: '#000000',
  },
}
SCSS
$custom: #9d271a;
$custom-light: #c36b58;
$custom-dark: #000000;
JSON
{
  "hex": "#9d271a",
  "rgb": {
    "r": 157,
    "g": 39,
    "b": 26
  },
  "hsl": {
    "h": 5.954,
    "s": 71.585,
    "l": 35.882
  },
  "oklch": {
    "l": 0.4613,
    "c": 0.15628,
    "h": 30.2
  },
  "luminance": 0.08694
}

Semantic roles & 50–950 ramp

primary
#9D271A
secondary
#4EB9C4
accent
#DCEE39
background
#FDF6F5
surface
#FAECE9
border
#D3C7C5
text
#140703
muted
#837A78

Preview Lab

Preview with #9D271A

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

Preview Lab → · Contrast checker → · Palette generator →

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