#5E271F#5E271F

#5E271F is a dark, moderate red. Relative luminance 0.039; OKLCH L 34.9% C 0.082 H 30.2°. Best body text is #FFFFFF at 11.76:1 contrast (WCAG AA passes).

Color values

HEX#5E271F
RGBrgb(94, 39, 31)
HSLhsl(8, 50%, 25%)
HSVhsv(8, 67%, 37%)
CMYKcmyk(0%, 58.5%, 67%, 63.1%)
CIE-LABlab(23.44, 24.44, 17.43)
CIE-LCHlch(23.44, 30.02, 35.49°)
OKLaboklab(34.93% 0.0712 0.0415)
OKLCHoklch(34.93% 0.082 30.2)
XYZxyz(5.5894, 3.9303, 1.7603)
Luminance0.0393 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E271F #1F565E
analogous
#5E1F37 #5E271F #5E471F
triadic
#5E271F #1F5E27 #271F5E
tetradic
#5E271F #375E1F #1F565E #471F5E
square
#5E271F #375E1F #1F565E #471F5E
split-complementary
#5E271F #1F5E47 #1F375E
monochromatic
#170A08 #301410 #5E271F #8C3A2E #BA4D3D

Accessibility & contrast

On white

11.76
#5E271F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#5E271F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E271F
11.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E271F#FFFFFF#000000##FFFFFF
##5E271F1.0011.761.7911.76
#FFFFFF11.761.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#35301E
Deuteranopia (green-blind)
#433C1E
Tritanopia (blue-blind)
#671D25
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #5e271f;
/* rgb */ color: rgb(94, 39, 31);
/* oklch */ color: oklch(34.9% 0.082 30.2);
Tailwind
colors: {
  custom: {
    50: '#90635a',
    500: '#5e271f',
    950: '#000000',
  },
}
SCSS
$custom: #5e271f;
$custom-light: #90635a;
$custom-dark: #000000;
JSON
{
  "hex": "#5e271f",
  "rgb": {
    "r": 94,
    "g": 39,
    "b": 31
  },
  "hsl": {
    "h": 7.619,
    "s": 50.4,
    "l": 24.51
  },
  "oklch": {
    "l": 0.34929,
    "c": 0.08243,
    "h": 30.2
  },
  "luminance": 0.0393
}

Semantic roles & 50–950 ramp

primary
#5E271F
secondary
#468993
accent
#C8DA4E
background
#F9F5F5
surface
#F2EAE9
border
#CCC6C5
text
#0D0504
muted
#7E7979

Preview Lab

Preview with #5E271F

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

Preview Lab → · Contrast checker → · Palette generator →

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