#040700#040700

#040700 is a very dark, muted yellow-green. Relative luminance 0.002; OKLCH L 11.9% C 0.030 H 124.2°. Best body text is #FFFFFF at 20.28:1 contrast (WCAG AA passes).

Color values

HEX#040700
RGBrgb(4, 7, 0)
HSLhsl(86, 100%, 1%)
HSVhsv(86, 100%, 3%)
CMYKcmyk(42.9%, 0%, 100%, 97.3%)
CIE-LABlab(1.61, -1.76, 2.37)
CIE-LCHlch(1.61, 2.95, 126.52°)
OKLaboklab(11.92% -0.0167 0.0245)
OKLCHoklch(11.92% 0.03 124.2)
XYZxyz(0.1261, 0.1778, 0.0277)
Luminance0.0018 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#040700 #030007
analogous
#070700 #040700 #010700
triadic
#040700 #000407 #070004
tetradic
#040700 #000707 #030007 #070001
square
#040700 #000707 #030007 #070001
split-complementary
#040700 #000107 #070007
monochromatic
#111F00 #111F00 #111F00 #274400 #4A8100

Accessibility & contrast

On white

20.28
#040700 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #040700
20.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##040700#FFFFFF#000000##FFFFFF
##0407001.0020.281.0420.28
#FFFFFF20.281.0021.001.00
#0000001.0421.001.0021.00
##FFFFFF20.281.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #040700;
/* rgb */ color: rgb(4, 7, 0);
/* oklch */ color: oklch(11.9% 0.030 124.2);
Tailwind
colors: {
  custom: {
    50: '#484a47',
    500: '#040700',
    950: '#000000',
  },
}
SCSS
$custom: #040700;
$custom-light: #484a47;
$custom-dark: #000000;
JSON
{
  "hex": "#040700",
  "rgb": {
    "r": 4,
    "g": 7,
    "b": 0
  },
  "hsl": {
    "h": 85.714,
    "s": 100,
    "l": 1.373
  },
  "oklch": {
    "l": 0.11924,
    "c": 0.02967,
    "h": 124.2
  },
  "luminance": 0.00178
}

Semantic roles & 50–950 ramp

primary
#040700
secondary
#2C0F54
accent
#29FF85
background
#F4F4F3
surface
#E6E7E5
border
#C2C3C1
text
#000100
muted
#777777

Preview Lab

Preview with #040700

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

Preview Lab → · Contrast checker → · Palette generator →

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