#040502#040502

#040502 is a very dark, near-neutral yellow-green. Relative luminance 0.001; OKLCH L 11.1% C 0.013 H 121.2°. Best body text is #FFFFFF at 20.43:1 contrast (WCAG AA passes).

Color values

HEX#040502
RGBrgb(4, 5, 2)
HSLhsl(80, 43%, 1%)
HSVhsv(80, 60%, 2%)
CMYKcmyk(20%, 0%, 60%, 98%)
CIE-LABlab(1.25, -0.68, 1.04)
CIE-LCHlch(1.25, 1.24, 122.99°)
OKLaboklab(11.07% -0.0066 0.0109)
OKLCHoklch(11.07% 0.013 121.2)
XYZxyz(0.1153, 0.1387, 0.0781)
Luminance0.0014 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#040502 #030205
analogous
#050502 #040502 #030502
triadic
#040502 #020405 #050204
tetradic
#040502 #020505 #030205 #050203
square
#040502 #020505 #030205 #050203
split-complementary
#040502 #020305 #050205
monochromatic
#111609 #111609 #111609 #273113 #4A5C25

Accessibility & contrast

On white

20.43
#040502 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.03
#040502 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #040502
20.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##040502#FFFFFF#000000##FFFFFF
##0405021.0020.431.0320.43
#FFFFFF20.431.0021.001.00
#0000001.0321.001.0021.00
##FFFFFF20.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#050502
Deuteranopia (green-blind)
#050502
Tritanopia (blue-blind)
#040504
Achromatopsia (no color)
#050505

Design tokens & code

CSS
--color: #040502;
/* rgb */ color: rgb(4, 5, 2);
/* oklch */ color: oklch(11.1% 0.013 121.2);
Tailwind
colors: {
  custom: {
    50: '#484948',
    500: '#040502',
    950: '#000000',
  },
}
SCSS
$custom: #040502;
$custom-light: #484948;
$custom-dark: #000000;
JSON
{
  "hex": "#040502",
  "rgb": {
    "r": 4,
    "g": 5,
    "b": 2
  },
  "hsl": {
    "h": 80,
    "s": 42.857,
    "l": 1.373
  },
  "oklch": {
    "l": 0.11067,
    "c": 0.01277,
    "h": 121.2
  },
  "luminance": 0.00139
}

Semantic roles & 50–950 ramp

primary
#040502
secondary
#2C2340
accent
#55D37F
background
#F4F4F4
surface
#E6E6E6
border
#C2C2C2
text
#000000
muted
#777777

Preview Lab

Preview with #040502

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

Preview Lab → · Contrast checker → · Palette generator →

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