#98271B#98271B

#98271B is a mid, vivid red. Relative luminance 0.082; OKLCH L 45.2% C 0.151 H 30.0°. Best body text is #FFFFFF at 7.95:1 contrast (WCAG AA passes).

Color values

HEX#98271B
RGBrgb(152, 39, 27)
HSLhsl(6, 70%, 35%)
HSVhsv(6, 82%, 60%)
CMYKcmyk(0%, 74.3%, 82.2%, 40.4%)
CIE-LABlab(34.41, 45.97, 35.13)
CIE-LCHlch(34.41, 57.86, 37.39°)
OKLaboklab(45.22% 0.1307 0.0755)
OKLCHoklch(45.22% 0.151 30)
XYZxyz(13.8739, 8.2077, 1.8904)
Luminance0.0821 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#98271B #1B8C98
analogous
#981B4D #98271B #98651B
triadic
#98271B #1B9827 #271B98
tetradic
#98271B #4D981B #1B8C98 #651B98
square
#98271B #4D981B #1B8C98 #651B98
split-complementary
#98271B #1B9865 #1B4D98
monochromatic
#300C09 #641A12 #98271B #CC3424 #E05C4E

Accessibility & contrast

On white

7.95
#98271B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.64
#98271B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #98271B
7.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##98271B#FFFFFF#000000##FFFFFF
##98271B1.007.952.647.95
#FFFFFF7.951.0021.001.00
#0000002.6421.001.0021.00
##FFFFFF7.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#494118
Deuteranopia (green-blind)
#655A16
Tritanopia (blue-blind)
#A80025
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #98271b;
/* rgb */ color: rgb(152, 39, 27);
/* oklch */ color: oklch(45.2% 0.151 30.0);
Tailwind
colors: {
  custom: {
    50: '#bf6a59',
    500: '#98271b',
    950: '#000000',
  },
}
SCSS
$custom: #98271b;
$custom-light: #bf6a59;
$custom-dark: #000000;
JSON
{
  "hex": "#98271b",
  "rgb": {
    "r": 152,
    "g": 39,
    "b": 27
  },
  "hsl": {
    "h": 5.76,
    "s": 69.832,
    "l": 35.098
  },
  "oklch": {
    "l": 0.45223,
    "c": 0.15097,
    "h": 30
  },
  "luminance": 0.08206
}

Semantic roles & 50–950 ramp

primary
#98271B
secondary
#4DB7C2
accent
#DCED3B
background
#FCF6F5
surface
#F9EBE9
border
#D2C6C5
text
#140703
muted
#827A78

Preview Lab

Preview with #98271B

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

Preview Lab → · Contrast checker → · Palette generator →

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