#284004#284004

#284004 is a dark, moderate yellow-green. Relative luminance 0.041; OKLCH L 33.9% C 0.087 H 130.0°. Best body text is #FFFFFF at 11.50:1 contrast (WCAG AA passes).

Color values

HEX#284004
RGBrgb(40, 64, 4)
HSLhsl(84, 88%, 13%)
HSVhsv(84, 94%, 25%)
CMYKcmyk(37.5%, 0%, 93.8%, 74.9%)
CIE-LABlab(24.09, -19.65, 30.55)
CIE-LCHlch(24.09, 36.32, 122.75°)
OKLaboklab(33.9% -0.0562 0.067)
OKLCHoklch(33.9% 0.087 130)
XYZxyz(2.7304, 4.1266, 0.7675)
Luminance0.0413 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#284004 #1C0440
analogous
#403A04 #284004 #0A4004
triadic
#284004 #042840 #400428
tetradic
#284004 #04403A #1C0440 #40040A
square
#284004 #04403A #1C0440 #40040A
split-complementary
#284004 #040A40 #3A0440
monochromatic
#121D02 #121D02 #284004 #4C7A08 #70B30B

Accessibility & contrast

On white

11.50
#284004 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#284004 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #284004
11.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##284004#FFFFFF#000000##FFFFFF
##2840041.0011.501.8311.50
#FFFFFF11.501.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#433A00
Deuteranopia (green-blind)
#40390A
Tritanopia (blue-blind)
#293D35
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #284004;
/* rgb */ color: rgb(40, 64, 4);
/* oklch */ color: oklch(33.9% 0.087 130.0);
Tailwind
colors: {
  custom: {
    50: '#65754b',
    500: '#284004',
    950: '#000000',
  },
}
SCSS
$custom: #284004;
$custom-light: #65754b;
$custom-dark: #000000;
JSON
{
  "hex": "#284004",
  "rgb": {
    "r": 40,
    "g": 64,
    "b": 4
  },
  "hsl": {
    "h": 84,
    "s": 88.235,
    "l": 13.333
  },
  "oklch": {
    "l": 0.33898,
    "c": 0.08744,
    "h": 130
  },
  "luminance": 0.04127
}

Semantic roles & 50–950 ramp

primary
#284004
secondary
#461F81
accent
#29FE7F
background
#F6F7F4
surface
#EBEDE7
border
#C6C8C3
text
#060801
muted
#7A7B77

Preview Lab

Preview with #284004

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

Preview Lab → · Contrast checker → · Palette generator →

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