#040702#040702

#040702 is a very dark, near-neutral yellow-green. Relative luminance 0.002; OKLCH L 12.1% C 0.019 H 130.9°. Best body text is #FFFFFF at 20.26:1 contrast (WCAG AA passes).

Color values

HEX#040702
RGBrgb(4, 7, 2)
HSLhsl(96, 56%, 2%)
HSVhsv(96, 71%, 3%)
CMYKcmyk(42.9%, 0%, 71.4%, 97.3%)
CIE-LABlab(1.64, -1.48, 1.61)
CIE-LCHlch(1.64, 2.19, 132.47°)
OKLaboklab(12.05% -0.0126 0.0146)
OKLCHoklch(12.05% 0.019 130.9)
XYZxyz(0.1370, 0.1821, 0.0854)
Luminance0.0018 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#040702 #050207
analogous
#070702 #040702 #020703
triadic
#040702 #020407 #070204
tetradic
#040702 #020707 #050207 #070302
square
#040702 #020707 #050207 #070302
split-complementary
#040702 #030207 #070207
monochromatic
#0E1807 #0E1807 #0E1807 #1F3710 #3A661D

Accessibility & contrast

On white

20.26
#040702 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.04
#040702 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #040702
20.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##040702#FFFFFF#000000##FFFFFF
##0407021.0020.261.0420.26
#FFFFFF20.261.0021.001.00
#0000001.0421.001.0021.00
##FFFFFF20.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#080602
Deuteranopia (green-blind)
#070602
Tritanopia (blue-blind)
#040605
Achromatopsia (no color)
#060606

Design tokens & code

CSS
--color: #040702;
/* rgb */ color: rgb(4, 7, 2);
/* oklch */ color: oklch(12.1% 0.019 130.9);
Tailwind
colors: {
  custom: {
    50: '#484a48',
    500: '#040702',
    950: '#000000',
  },
}
SCSS
$custom: #040702;
$custom-light: #484a48;
$custom-dark: #000000;
JSON
{
  "hex": "#040702",
  "rgb": {
    "r": 4,
    "g": 7,
    "b": 2
  },
  "hsl": {
    "h": 96,
    "s": 55.556,
    "l": 1.765
  },
  "oklch": {
    "l": 0.12053,
    "c": 0.01927,
    "h": 130.9
  },
  "luminance": 0.00182
}

Semantic roles & 50–950 ramp

primary
#040702
secondary
#361F46
accent
#49DFA3
background
#F4F4F4
surface
#E6E7E6
border
#C2C3C2
text
#000100
muted
#777777

Preview Lab

Preview with #040702

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

Preview Lab → · Contrast checker → · Palette generator →

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