#872228#872228

#872228 is a dark, vivid red. Relative luminance 0.064; OKLCH L 41.8% C 0.136 H 22.3°. Best body text is #FFFFFF at 9.17:1 contrast (WCAG AA passes).

Color values

HEX#872228
RGBrgb(135, 34, 40)
HSLhsl(356, 60%, 33%)
HSVhsv(356, 75%, 53%)
CMYKcmyk(0%, 74.8%, 70.4%, 47.1%)
CIE-LABlab(30.52, 42.76, 22.06)
CIE-LCHlch(30.52, 48.12, 27.29°)
OKLaboklab(41.76% 0.1256 0.0515)
OKLCHoklch(41.76% 0.136 22.3)
XYZxyz(10.9479, 6.4498, 2.6755)
Luminance0.0645 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#872228 #228781
analogous
#87225A #872228 #874F22
triadic
#872228 #288722 #222887
tetradic
#872228 #5A8722 #228781 #4F2287
square
#872228 #5A8722 #228781 #4F2287
split-complementary
#872228 #22874F #225A87
monochromatic
#25090B #56161A #872228 #B82E36 #D35058

Accessibility & contrast

On white

9.17
#872228 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.29
#872228 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #872228
9.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##872228#FFFFFF#000000##FFFFFF
##8722281.009.172.299.17
#FFFFFF9.171.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3F3A27
Deuteranopia (green-blind)
#585025
Tritanopia (blue-blind)
#950025
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #872228;
/* rgb */ color: rgb(135, 34, 40);
/* oklch */ color: oklch(41.8% 0.136 22.3);
Tailwind
colors: {
  custom: {
    50: '#b16562',
    500: '#872228',
    950: '#000000',
  },
}
SCSS
$custom: #872228;
$custom-light: #b16562;
$custom-dark: #000000;
JSON
{
  "hex": "#872228",
  "rgb": {
    "r": 135,
    "g": 34,
    "b": 40
  },
  "hsl": {
    "h": 356.436,
    "s": 59.763,
    "l": 33.137
  },
  "oklch": {
    "l": 0.4176,
    "c": 0.13572,
    "h": 22.3
  },
  "luminance": 0.06448
}

Semantic roles & 50–950 ramp

primary
#872228
secondary
#4EB7B0
accent
#E3DA45
background
#FBF6F5
surface
#F6EBEA
border
#D0C6C6
text
#120605
muted
#817A79

Preview Lab

Preview with #872228

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

Preview Lab → · Contrast checker → · Palette generator →

#872228 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva