#040402#040402

#040402 is a very dark, near-neutral yellow. Relative luminance 0.001; OKLCH L 10.5% C 0.009 H 107.9°. Best body text is #FFFFFF at 20.52:1 contrast (WCAG AA passes).

Color values

HEX#040402
RGBrgb(4, 4, 2)
HSLhsl(60, 33%, 1%)
HSVhsv(60, 50%, 2%)
CMYKcmyk(0%, 0%, 50%, 98.4%)
CIE-LABlab(1.06, -0.28, 0.76)
CIE-LCHlch(1.06, 0.81, 110.23°)
OKLaboklab(10.5% -0.0028 0.0087)
OKLCHoklch(10.5% 0.009 107.9)
XYZxyz(0.1044, 0.1170, 0.0745)
Luminance0.0012 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#040402 #020204
analogous
#040302 #040402 #030402
triadic
#040402 #020404 #040204
tetradic
#040402 #020403 #020204 #040203
square
#040402 #020403 #020204 #040203
split-complementary
#040402 #020304 #030204
monochromatic
#14140A #14140A #14140A #2D2D16 #56562B

Accessibility & contrast

On white

20.52
#040402 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #040402
20.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##040402#FFFFFF#000000##FFFFFF
##0404021.0020.521.0220.52
#FFFFFF20.521.0021.001.00
#0000001.0221.001.0021.00
##FFFFFF20.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#040402
Deuteranopia (green-blind)
#040402
Tritanopia (blue-blind)
#040403
Achromatopsia (no color)
#040404

Design tokens & code

CSS
--color: #040402;
/* rgb */ color: rgb(4, 4, 2);
/* oklch */ color: oklch(10.5% 0.009 107.9);
Tailwind
colors: {
  custom: {
    50: '#484848',
    500: '#040402',
    950: '#000000',
  },
}
SCSS
$custom: #040402;
$custom-light: #484848;
$custom-dark: #000000;
JSON
{
  "hex": "#040402",
  "rgb": {
    "r": 4,
    "g": 4,
    "b": 2
  },
  "hsl": {
    "h": 60,
    "s": 33.333,
    "l": 1.176
  },
  "oklch": {
    "l": 0.10499,
    "c": 0.00912,
    "h": 107.9
  },
  "luminance": 0.00117
}

Semantic roles & 50–950 ramp

primary
#040402
secondary
#25253C
accent
#5EC95E
background
#F4F4F4
surface
#E6E6E6
border
#C2C2C2
text
#000000
muted
#777777

Preview Lab

Preview with #040402

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

Preview Lab → · Contrast checker → · Palette generator →

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