#9A271F#9A271F

#9A271F is a mid, vivid red. Relative luminance 0.084; OKLCH L 45.6% C 0.152 H 28.6°. Best body text is #FFFFFF at 7.82:1 contrast (WCAG AA passes).

Color values

HEX#9A271F
RGBrgb(154, 39, 31)
HSLhsl(4, 66%, 36%)
HSVhsv(4, 80%, 60%)
CMYKcmyk(0%, 74.7%, 79.9%, 39.6%)
CIE-LABlab(34.85, 46.77, 33.45)
CIE-LCHlch(34.85, 57.50, 35.58°)
OKLaboklab(45.63% 0.1338 0.073)
OKLCHoklch(45.63% 0.152 28.6)
XYZxyz(14.3010, 8.4222, 2.1687)
Luminance0.0842 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9A271F #1F929A
analogous
#9A1F55 #9A271F #9A651F
triadic
#9A271F #1F9A27 #271F9A
tetradic
#9A271F #559A1F #1F929A #651F9A
square
#9A271F #559A1F #1F929A #651F9A
split-complementary
#9A271F #1F9A65 #1F559A
monochromatic
#340D0A #671A15 #9A271F #CD3429 #DD5F56

Accessibility & contrast

On white

7.82
#9A271F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.68
#9A271F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #9A271F
7.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9A271F#FFFFFF#000000##FFFFFF
##9A271F1.007.822.687.82
#FFFFFF7.821.0021.001.00
#0000002.6821.001.0021.00
##FFFFFF7.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4A421D
Deuteranopia (green-blind)
#665B1A
Tritanopia (blue-blind)
#AA0026
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #9a271f;
/* rgb */ color: rgb(154, 39, 31);
/* oklch */ color: oklch(45.6% 0.152 28.6);
Tailwind
colors: {
  custom: {
    50: '#c06a5b',
    500: '#9a271f',
    950: '#000000',
  },
}
SCSS
$custom: #9a271f;
$custom-light: #c06a5b;
$custom-dark: #000000;
JSON
{
  "hex": "#9a271f",
  "rgb": {
    "r": 154,
    "g": 39,
    "b": 31
  },
  "hsl": {
    "h": 3.902,
    "s": 66.486,
    "l": 36.275
  },
  "oklch": {
    "l": 0.45632,
    "c": 0.15244,
    "h": 28.6
  },
  "luminance": 0.0842
}

Semantic roles & 50–950 ramp

primary
#9A271F
secondary
#54BAC1
accent
#DEE93E
background
#FCF6F5
surface
#F9ECE9
border
#D2C7C5
text
#140704
muted
#827A79

Preview Lab

Preview with #9A271F

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

Preview Lab → · Contrast checker → · Palette generator →

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