#5F2227#5F2227

#5F2227 is a dark, moderate red. Relative luminance 0.037; OKLCH L 34.5% C 0.089 H 18.2°. Best body text is #FFFFFF at 12.04:1 contrast (WCAG AA passes).

Color values

HEX#5F2227
RGBrgb(95, 34, 39)
HSLhsl(355, 47%, 25%)
HSVhsv(355, 64%, 37%)
CMYKcmyk(0%, 64.2%, 58.9%, 62.7%)
CIE-LABlab(22.74, 28.26, 11.18)
CIE-LCHlch(22.74, 30.39, 21.59°)
OKLaboklab(34.49% 0.0846 0.0278)
OKLCHoklch(34.49% 0.089 18.2)
XYZxyz(5.6580, 3.7241, 2.3399)
Luminance0.0372 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F2227 #225F5A
analogous
#5F2245 #5F2227 #5F3B22
triadic
#5F2227 #275F22 #22275F
tetradic
#5F2227 #455F22 #225F5A #3B225F
square
#5F2227 #455F22 #225F5A #3B225F
split-complementary
#5F2227 #225F3B #22455F
monochromatic
#170809 #321214 #5F2227 #8C323A #B9424C

Accessibility & contrast

On white

12.04
#5F2227 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#5F2227 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F2227
12.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F2227#FFFFFF#000000##FFFFFF
##5F22271.0012.041.7412.04
#FFFFFF12.041.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#302E27
Deuteranopia (green-blind)
#403B26
Tritanopia (blue-blind)
#681824
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #5f2227;
/* rgb */ color: rgb(95, 34, 39);
/* oklch */ color: oklch(34.5% 0.089 18.2);
Tailwind
colors: {
  custom: {
    50: '#906060',
    500: '#5f2227',
    950: '#000000',
  },
}
SCSS
$custom: #5f2227;
$custom-light: #906060;
$custom-dark: #000000;
JSON
{
  "hex": "#5f2227",
  "rgb": {
    "r": 95,
    "g": 34,
    "b": 39
  },
  "hsl": {
    "h": 355.082,
    "s": 47.287,
    "l": 25.294
  },
  "oklch": {
    "l": 0.34487,
    "c": 0.08903,
    "h": 18.2
  },
  "luminance": 0.03723
}

Semantic roles & 50–950 ramp

primary
#5F2227
secondary
#4A938D
accent
#D7CC51
background
#F9F5F5
surface
#F2EAE9
border
#CCC6C5
text
#0D0505
muted
#7E7979

Preview Lab

Preview with #5F2227

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

Preview Lab → · Contrast checker → · Palette generator →

#5F2227 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva