#254004#254004

#254004 is a dark, moderate yellow-green. Relative luminance 0.041; OKLCH L 33.7% C 0.089 H 131.8°. Best body text is #FFFFFF at 11.58:1 contrast (WCAG AA passes).

Color values

HEX#254004
RGBrgb(37, 64, 4)
HSLhsl(87, 88%, 13%)
HSVhsv(87, 94%, 25%)
CMYKcmyk(42.2%, 0%, 93.8%, 74.9%)
CIE-LABlab(23.90, -20.97, 30.30)
CIE-LCHlch(23.90, 36.85, 124.68°)
OKLaboklab(33.69% -0.0596 0.0665)
OKLCHoklch(33.69% 0.089 131.8)
XYZxyz(2.6182, 4.0688, 0.7622)
Luminance0.0407 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#254004 #1F0440
analogous
#403D04 #254004 #074004
triadic
#254004 #042540 #400425
tetradic
#254004 #04403D #1F0440 #400407
square
#254004 #04403D #1F0440 #400407
split-complementary
#254004 #040740 #3D0440
monochromatic
#111D02 #111D02 #254004 #467A08 #68B30B

Accessibility & contrast

On white

11.58
#254004 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#254004 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #254004
11.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##254004#FFFFFF#000000##FFFFFF
##2540041.0011.581.8111.58
#FFFFFF11.581.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.581.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #254004;
/* rgb */ color: rgb(37, 64, 4);
/* oklch */ color: oklch(33.7% 0.089 131.8);
Tailwind
colors: {
  custom: {
    50: '#63754a',
    500: '#254004',
    950: '#000000',
  },
}
SCSS
$custom: #254004;
$custom-light: #63754a;
$custom-dark: #000000;
JSON
{
  "hex": "#254004",
  "rgb": {
    "r": 37,
    "g": 64,
    "b": 4
  },
  "hsl": {
    "h": 87,
    "s": 88.235,
    "l": 13.333
  },
  "oklch": {
    "l": 0.33694,
    "c": 0.08931,
    "h": 131.8
  },
  "luminance": 0.04069
}

Semantic roles & 50–950 ramp

primary
#254004
secondary
#4B1F81
accent
#29FE89
background
#F6F7F4
surface
#EBEDE7
border
#C6C8C3
text
#050801
muted
#7A7B77

Preview Lab

Preview with #254004

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

Preview Lab → · Contrast checker → · Palette generator →

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