#98271D#98271D

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

Color values

HEX#98271D
RGBrgb(152, 39, 29)
HSLhsl(5, 68%, 35%)
HSVhsv(5, 81%, 60%)
CMYKcmyk(0%, 74.3%, 80.9%, 40.4%)
CIE-LABlab(34.43, 46.04, 34.04)
CIE-LCHlch(34.43, 57.25, 36.48°)
OKLaboklab(45.24% 0.1313 0.0738)
OKLCHoklch(45.24% 0.151 29.3)
XYZxyz(13.8978, 8.2173, 2.0165)
Luminance0.0822 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#98271D #1D8E98
analogous
#981D50 #98271D #98641D
triadic
#98271D #1D9827 #271D98
tetradic
#98271D #50981D #1D8E98 #641D98
square
#98271D #50981D #1D8E98 #641D98
split-complementary
#98271D #1D9864 #1D5098
monochromatic
#310D09 #651A13 #98271D #CB3427 #DE5D52

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##98271D#FFFFFF#000000##FFFFFF
##98271D1.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)
#49411B
Deuteranopia (green-blind)
#655A18
Tritanopia (blue-blind)
#A80026
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #98271d;
/* rgb */ color: rgb(152, 39, 29);
/* oklch */ color: oklch(45.2% 0.151 29.3);
Tailwind
colors: {
  custom: {
    50: '#bf6a5a',
    500: '#98271d',
    950: '#000000',
  },
}
SCSS
$custom: #98271d;
$custom-light: #bf6a5a;
$custom-dark: #000000;
JSON
{
  "hex": "#98271d",
  "rgb": {
    "r": 152,
    "g": 39,
    "b": 29
  },
  "hsl": {
    "h": 4.878,
    "s": 67.956,
    "l": 35.49
  },
  "oklch": {
    "l": 0.45243,
    "c": 0.15066,
    "h": 29.3
  },
  "luminance": 0.08215
}

Semantic roles & 50–950 ramp

primary
#98271D
secondary
#50B8C1
accent
#DDEB3D
background
#FCF6F5
surface
#F9EBE9
border
#D2C6C5
text
#140704
muted
#827A79

Preview Lab

Preview with #98271D

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

Preview Lab → · Contrast checker → · Palette generator →

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