#97271B#97271B

#97271B is a mid, vivid red. Relative luminance 0.081; OKLCH L 45.0% C 0.150 H 30.0°. Best body text is #FFFFFF at 8.01:1 contrast (WCAG AA passes).

Color values

HEX#97271B
RGBrgb(151, 39, 27)
HSLhsl(6, 70%, 35%)
HSVhsv(6, 82%, 59%)
CMYKcmyk(0%, 74.2%, 82.1%, 40.8%)
CIE-LABlab(34.21, 45.64, 34.87)
CIE-LCHlch(34.21, 57.43, 37.38°)
OKLaboklab(45.04% 0.1298 0.0751)
OKLCHoklch(45.04% 0.15 30)
XYZxyz(13.6875, 8.1116, 1.8817)
Luminance0.0811 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#97271B #1B8B97
analogous
#971B4D #97271B #97651B
triadic
#97271B #1B9727 #271B97
tetradic
#97271B #4D971B #1B8B97 #651B97
square
#97271B #4D971B #1B8B97 #651B97
split-complementary
#97271B #1B9765 #1B4D97
monochromatic
#2F0C08 #631A12 #97271B #CB3424 #DF5B4D

Accessibility & contrast

On white

8.01
#97271B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.62
#97271B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #97271B
8.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##97271B#FFFFFF#000000##FFFFFF
##97271B1.008.012.628.01
#FFFFFF8.011.0021.001.00
#0000002.6221.001.0021.00
##FFFFFF8.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#494118
Deuteranopia (green-blind)
#645916
Tritanopia (blue-blind)
#A70025
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #97271b;
/* rgb */ color: rgb(151, 39, 27);
/* oklch */ color: oklch(45.0% 0.150 30.0);
Tailwind
colors: {
  custom: {
    50: '#be6a59',
    500: '#97271b',
    950: '#000000',
  },
}
SCSS
$custom: #97271b;
$custom-light: #be6a59;
$custom-dark: #000000;
JSON
{
  "hex": "#97271b",
  "rgb": {
    "r": 151,
    "g": 39,
    "b": 27
  },
  "hsl": {
    "h": 5.806,
    "s": 69.663,
    "l": 34.902
  },
  "oklch": {
    "l": 0.45039,
    "c": 0.14993,
    "h": 30
  },
  "luminance": 0.08109
}

Semantic roles & 50–950 ramp

primary
#97271B
secondary
#4CB6C1
accent
#DBEC3B
background
#FCF6F5
surface
#F9EBE9
border
#D2C6C5
text
#140703
muted
#827A78

Preview Lab

Preview with #97271B

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

Preview Lab → · Contrast checker → · Palette generator →

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