#050402#050402

#050402 is a very dark, near-neutral orange. Relative luminance 0.001; OKLCH L 10.7% C 0.009 H 89.3°. Best body text is #FFFFFF at 20.50:1 contrast (WCAG AA passes).

Color values

HEX#050402
RGBrgb(5, 4, 2)
HSLhsl(40, 43%, 1%)
HSVhsv(40, 60%, 2%)
CMYKcmyk(0%, 20%, 60%, 98%)
CIE-LABlab(1.12, -0.02, 0.85)
CIE-LCHlch(1.12, 0.85, 91.06°)
OKLaboklab(10.73% 0.0001 0.0095)
OKLCHoklch(10.73% 0.009 89.3)
XYZxyz(0.1170, 0.1235, 0.0751)
Luminance0.0012 (WCAG relative)
Temperaturewarm
Familyorange

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#050402 #020305
analogous
#050302 #050402 #050502
triadic
#050402 #020504 #040205
tetradic
#050402 #020503 #020305 #050205
square
#050402 #020503 #020305 #050205
split-complementary
#050402 #020505 #030205
monochromatic
#161109 #161109 #161109 #312713 #5C4A25

Accessibility & contrast

On white

20.50
#050402 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.02
#050402 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #050402
20.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##050402#FFFFFF#000000##FFFFFF
##0504021.0020.501.0220.50
#FFFFFF20.501.0021.001.00
#0000001.0221.001.0021.00
##FFFFFF20.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#050402
Deuteranopia (green-blind)
#050402
Tritanopia (blue-blind)
#060403
Achromatopsia (no color)
#040404

Design tokens & code

CSS
--color: #050402;
/* rgb */ color: rgb(5, 4, 2);
/* oklch */ color: oklch(10.7% 0.009 89.3);
Tailwind
colors: {
  custom: {
    50: '#494848',
    500: '#050402',
    950: '#000000',
  },
}
SCSS
$custom: #050402;
$custom-light: #494848;
$custom-dark: #000000;
JSON
{
  "hex": "#050402",
  "rgb": {
    "r": 5,
    "g": 4,
    "b": 2
  },
  "hsl": {
    "h": 40,
    "s": 42.857,
    "l": 1.373
  },
  "oklch": {
    "l": 0.10727,
    "c": 0.00946,
    "h": 89.3
  },
  "luminance": 0.00123
}

Semantic roles & 50–950 ramp

primary
#050402
secondary
#232C40
accent
#7FD355
background
#F4F4F4
surface
#E6E6E6
border
#C2C2C2
text
#000000
muted
#777777

Preview Lab

Preview with #050402

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

Preview Lab → · Contrast checker → · Palette generator →

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