#5A120F#5A120F

#5A120F is a dark, moderate red. Relative luminance 0.026; OKLCH L 31.0% C 0.104 H 27.6°. Best body text is #FFFFFF at 13.74:1 contrast (WCAG AA passes).

Color values

HEX#5A120F
RGBrgb(90, 18, 15)
HSLhsl(2, 71%, 21%)
HSVhsv(2, 83%, 35%)
CMYKcmyk(0%, 80%, 83.3%, 64.7%)
CIE-LABlab(18.55, 32.23, 21.63)
CIE-LCHlch(18.55, 38.82, 33.86°)
OKLaboklab(31.02% 0.0926 0.0483)
OKLCHoklch(31.02% 0.104 27.6)
XYZxyz(4.5195, 2.6415, 0.7237)
Luminance0.0264 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A120F #0F575A
analogous
#5A0F31 #5A120F #5A370F
triadic
#5A120F #0F5A12 #120F5A
tetradic
#5A120F #315A0F #0F575A #370F5A
square
#5A120F #315A0F #0F575A #370F5A
split-complementary
#5A120F #0F5A37 #0F315A
monochromatic
#1A0504 #260806 #5A120F #8E1C18 #C32720

Accessibility & contrast

On white

13.74
#5A120F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#5A120F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A120F
13.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A120F#FFFFFF#000000##FFFFFF
##5A120F1.0013.741.5313.74
#FFFFFF13.741.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#28230E
Deuteranopia (green-blind)
#3A330C
Tritanopia (blue-blind)
#640012
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #5a120f;
/* rgb */ color: rgb(90, 18, 15);
/* oklch */ color: oklch(31.0% 0.104 27.6);
Tailwind
colors: {
  custom: {
    50: '#8f564e',
    500: '#5a120f',
    950: '#000000',
  },
}
SCSS
$custom: #5a120f;
$custom-light: #8f564e;
$custom-dark: #000000;
JSON
{
  "hex": "#5a120f",
  "rgb": {
    "r": 90,
    "g": 18,
    "b": 15
  },
  "hsl": {
    "h": 2.4,
    "s": 71.429,
    "l": 20.588
  },
  "oklch": {
    "l": 0.31023,
    "c": 0.10444,
    "h": 27.6
  },
  "luminance": 0.02641
}

Semantic roles & 50–950 ramp

primary
#5A120F
secondary
#319094
accent
#E7EE3A
background
#F9F5F4
surface
#F2E9E7
border
#CCC5C3
text
#0E0301
muted
#7E7877

Preview Lab

Preview with #5A120F

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

Preview Lab → · Contrast checker → · Palette generator →

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