#040602#040602

#040602 is a very dark, near-neutral yellow-green. Relative luminance 0.002; OKLCH L 11.6% C 0.016 H 127.4°. Best body text is #FFFFFF at 20.35:1 contrast (WCAG AA passes).

Color values

HEX#040602
RGBrgb(4, 6, 2)
HSLhsl(90, 50%, 2%)
HSVhsv(90, 67%, 2%)
CMYKcmyk(33.3%, 0%, 66.7%, 97.6%)
CIE-LABlab(1.45, -1.08, 1.33)
CIE-LCHlch(1.45, 1.71, 128.97°)
OKLaboklab(11.58% -0.0098 0.0129)
OKLCHoklch(11.58% 0.016 127.4)
XYZxyz(0.1262, 0.1604, 0.0817)
Luminance0.0016 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#040602 #040206
analogous
#060602 #040602 #020602
triadic
#040602 #020406 #060204
tetradic
#040602 #020606 #040206 #060202
square
#040602 #020606 #040206 #060202
split-complementary
#040602 #020206 #060206
monochromatic
#0F1708 #0F1708 #0F1708 #233411 #416221

Accessibility & contrast

On white

20.35
#040602 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #040602
20.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##040602#FFFFFF#000000##FFFFFF
##0406021.0020.351.0320.35
#FFFFFF20.351.0021.001.00
#0000001.0321.001.0021.00
##FFFFFF20.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#070502
Deuteranopia (green-blind)
#060502
Tritanopia (blue-blind)
#040605
Achromatopsia (no color)
#050505

Design tokens & code

CSS
--color: #040602;
/* rgb */ color: rgb(4, 6, 2);
/* oklch */ color: oklch(11.6% 0.016 127.4);
Tailwind
colors: {
  custom: {
    50: '#484948',
    500: '#040602',
    950: '#000000',
  },
}
SCSS
$custom: #040602;
$custom-light: #484948;
$custom-dark: #000000;
JSON
{
  "hex": "#040602",
  "rgb": {
    "r": 4,
    "g": 6,
    "b": 2
  },
  "hsl": {
    "h": 90,
    "s": 50,
    "l": 1.569
  },
  "oklch": {
    "l": 0.11581,
    "c": 0.01619,
    "h": 127.4
  },
  "luminance": 0.0016
}

Semantic roles & 50–950 ramp

primary
#040602
secondary
#322043
accent
#4EDA94
background
#F4F4F4
surface
#E6E6E6
border
#C2C2C2
text
#000000
muted
#777777

Preview Lab

Preview with #040602

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

Preview Lab → · Contrast checker → · Palette generator →

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