#98271F#98271F

#98271F is a mid, vivid red. Relative luminance 0.082; OKLCH L 45.3% C 0.150 H 28.6°. Best body text is #FFFFFF at 7.94:1 contrast (WCAG AA passes).

Color values

HEX#98271F
RGBrgb(152, 39, 31)
HSLhsl(4, 66%, 36%)
HSVhsv(4, 80%, 60%)
CMYKcmyk(0%, 74.3%, 79.6%, 40.4%)
CIE-LABlab(34.45, 46.11, 32.92)
CIE-LCHlch(34.45, 56.66, 35.53°)
OKLaboklab(45.27% 0.132 0.072)
OKLCHoklch(45.27% 0.15 28.6)
XYZxyz(13.9234, 8.2275, 2.1510)
Luminance0.0823 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#98271F #1F9098
analogous
#981F53 #98271F #98631F
triadic
#98271F #1F9827 #271F98
tetradic
#98271F #53981F #1F9098 #631F98
square
#98271F #53981F #1F9098 #631F98
split-complementary
#98271F #1F9863 #1F5398
monochromatic
#320D0A #651A15 #98271F #CB3429 #DC5E55

Accessibility & contrast

On white

7.94
#98271F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.65
#98271F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #98271F
7.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##98271F#FFFFFF#000000##FFFFFF
##98271F1.007.942.657.94
#FFFFFF7.941.0021.001.00
#0000002.6521.001.0021.00
##FFFFFF7.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#49411D
Deuteranopia (green-blind)
#655A1A
Tritanopia (blue-blind)
#A80026
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #98271f;
/* rgb */ color: rgb(152, 39, 31);
/* oklch */ color: oklch(45.3% 0.150 28.6);
Tailwind
colors: {
  custom: {
    50: '#bf6a5b',
    500: '#98271f',
    950: '#000000',
  },
}
SCSS
$custom: #98271f;
$custom-light: #bf6a5b;
$custom-dark: #000000;
JSON
{
  "hex": "#98271f",
  "rgb": {
    "r": 152,
    "g": 39,
    "b": 31
  },
  "hsl": {
    "h": 3.967,
    "s": 66.12,
    "l": 35.882
  },
  "oklch": {
    "l": 0.45266,
    "c": 0.15035,
    "h": 28.6
  },
  "luminance": 0.08225
}

Semantic roles & 50–950 ramp

primary
#98271F
secondary
#53B9C0
accent
#DEE93F
background
#FCF6F5
surface
#F9EBE9
border
#D2C6C5
text
#140704
muted
#827A79

Preview Lab

Preview with #98271F

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

Preview Lab → · Contrast checker → · Palette generator →

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