#872227#872227

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

Color values

HEX#872227
RGBrgb(135, 34, 39)
HSLhsl(357, 60%, 33%)
HSVhsv(357, 75%, 53%)
CMYKcmyk(0%, 74.8%, 71.1%, 47.1%)
CIE-LABlab(30.50, 42.70, 22.68)
CIE-LCHlch(30.50, 48.35, 27.97°)
OKLaboklab(41.74% 0.1252 0.0527)
OKLCHoklch(41.74% 0.136 22.8)
XYZxyz(10.9311, 6.4431, 2.5871)
Luminance0.0644 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#872227 #228782
analogous
#872259 #872227 #874F22
triadic
#872227 #278722 #222787
tetradic
#872227 #598722 #228782 #4F2287
square
#872227 #598722 #228782 #4F2287
split-complementary
#872227 #22874F #225987
monochromatic
#25090B #561619 #872227 #B82E35 #D35057

Accessibility & contrast

On white

9.18
#872227 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #872227
9.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##872227#FFFFFF#000000##FFFFFF
##8722271.009.182.299.18
#FFFFFF9.181.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.181.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #872227;
/* rgb */ color: rgb(135, 34, 39);
/* oklch */ color: oklch(41.7% 0.136 22.8);
Tailwind
colors: {
  custom: {
    50: '#b16561',
    500: '#872227',
    950: '#000000',
  },
}
SCSS
$custom: #872227;
$custom-light: #b16561;
$custom-dark: #000000;
JSON
{
  "hex": "#872227",
  "rgb": {
    "r": 135,
    "g": 34,
    "b": 39
  },
  "hsl": {
    "h": 357.03,
    "s": 59.763,
    "l": 33.137
  },
  "oklch": {
    "l": 0.41743,
    "c": 0.13582,
    "h": 22.8
  },
  "luminance": 0.06441
}

Semantic roles & 50–950 ramp

primary
#872227
secondary
#4EB7B1
accent
#E3DB45
background
#FBF6F5
surface
#F6EBE9
border
#D0C6C5
text
#120605
muted
#817A79

Preview Lab

Preview with #872227

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

Preview Lab → · Contrast checker → · Palette generator →

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