#5A0F1D#5A0F1D

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

Color values

HEX#5A0F1D
RGBrgb(90, 15, 29)
HSLhsl(349, 71%, 21%)
HSVhsv(349, 83%, 35%)
CMYKcmyk(0%, 83.3%, 67.8%, 64.7%)
CIE-LABlab(18.39, 34.12, 12.18)
CIE-LCHlch(18.39, 36.23, 19.65°)
OKLaboklab(30.98% 0.102 0.0295)
OKLCHoklch(30.98% 0.106 16.1)
XYZxyz(4.6095, 2.6047, 1.4222)
Luminance0.0260 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A0F1D #0F5A4C
analogous
#5A0F42 #5A0F1D #5A260F
triadic
#5A0F1D #1D5A0F #0F1D5A
tetradic
#5A0F1D #425A0F #0F5A4C #260F5A
square
#5A0F1D #425A0F #0F5A4C #260F5A
split-complementary
#5A0F1D #0F5A26 #0F425A
monochromatic
#1A0408 #26060C #5A0F1D #8E182E #C3203F

Accessibility & contrast

On white

13.81
#5A0F1D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#5A0F1D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A0F1D
13.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A0F1D#FFFFFF#000000##FFFFFF
##5A0F1D1.0013.811.5213.81
#FFFFFF13.811.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#25231D
Deuteranopia (green-blind)
#37321B
Tritanopia (blue-blind)
#630015
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #5a0f1d;
/* rgb */ color: rgb(90, 15, 29);
/* oklch */ color: oklch(31.0% 0.106 16.1);
Tailwind
colors: {
  custom: {
    50: '#8e5658',
    500: '#5a0f1d',
    950: '#000000',
  },
}
SCSS
$custom: #5a0f1d;
$custom-light: #8e5658;
$custom-dark: #000000;
JSON
{
  "hex": "#5a0f1d",
  "rgb": {
    "r": 90,
    "g": 15,
    "b": 29
  },
  "hsl": {
    "h": 348.8,
    "s": 71.429,
    "l": 20.588
  },
  "oklch": {
    "l": 0.3098,
    "c": 0.10619,
    "h": 16.1
  },
  "luminance": 0.02604
}

Semantic roles & 50–950 ramp

primary
#5A0F1D
secondary
#319481
accent
#EECC3A
background
#F9F5F5
surface
#F2E9E9
border
#CCC5C5
text
#0D0303
muted
#7E7878

Preview Lab

Preview with #5A0F1D

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

Preview Lab → · Contrast checker → · Palette generator →

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