#97271F#97271F

#97271F is a mid, vivid red. Relative luminance 0.081; OKLCH L 45.1% C 0.149 H 28.6°. Best body text is #FFFFFF at 8.00:1 contrast (WCAG AA passes).

Color values

HEX#97271F
RGBrgb(151, 39, 31)
HSLhsl(4, 66%, 36%)
HSVhsv(4, 79%, 59%)
CMYKcmyk(0%, 74.2%, 79.5%, 40.8%)
CIE-LABlab(34.26, 45.78, 32.65)
CIE-LCHlch(34.26, 56.23, 35.50°)
OKLaboklab(45.08% 0.1311 0.0715)
OKLCHoklch(45.08% 0.149 28.6)
XYZxyz(13.7370, 8.1314, 2.1423)
Luminance0.0813 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#97271F #1F8F97
analogous
#971F53 #97271F #97631F
triadic
#97271F #1F9727 #271F97
tetradic
#97271F #53971F #1F8F97 #631F97
square
#97271F #53971F #1F8F97 #631F97
split-complementary
#97271F #1F9763 #1F5397
monochromatic
#310D0A #641A15 #97271F #CA3429 #DC5D54

Accessibility & contrast

On white

8.00
#97271F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.63
#97271F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #97271F
8.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##97271F#FFFFFF#000000##FFFFFF
##97271F1.008.002.638.00
#FFFFFF8.001.0021.001.00
#0000002.6321.001.0021.00
##FFFFFF8.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#48411D
Deuteranopia (green-blind)
#64591A
Tritanopia (blue-blind)
#A70026
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #97271f;
/* rgb */ color: rgb(151, 39, 31);
/* oklch */ color: oklch(45.1% 0.149 28.6);
Tailwind
colors: {
  custom: {
    50: '#be6a5b',
    500: '#97271f',
    950: '#000000',
  },
}
SCSS
$custom: #97271f;
$custom-light: #be6a5b;
$custom-dark: #000000;
JSON
{
  "hex": "#97271f",
  "rgb": {
    "r": 151,
    "g": 39,
    "b": 31
  },
  "hsl": {
    "h": 4,
    "s": 65.934,
    "l": 35.686
  },
  "oklch": {
    "l": 0.45083,
    "c": 0.14931,
    "h": 28.6
  },
  "luminance": 0.08129
}

Semantic roles & 50–950 ramp

primary
#97271F
secondary
#52B8BF
accent
#DEE93F
background
#FCF6F5
surface
#F9EBE9
border
#D2C6C5
text
#140704
muted
#827A79

Preview Lab

Preview with #97271F

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

Preview Lab → · Contrast checker → · Palette generator →

#97271F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva