#254A0C#254A0C

#254A0C is a dark, moderate yellow-green. Relative luminance 0.053; OKLCH L 36.8% C 0.098 H 135.8°. Best body text is #FFFFFF at 10.18:1 contrast (WCAG AA passes).

Color values

HEX#254A0C
RGBrgb(37, 74, 12)
HSLhsl(96, 72%, 17%)
HSVhsv(96, 84%, 29%)
CMYKcmyk(50%, 0%, 83.8%, 71%)
CIE-LABlab(27.62, -25.27, 30.68)
CIE-LCHlch(27.62, 39.75, 129.47°)
OKLaboklab(36.76% -0.0704 0.0686)
OKLCHoklch(36.76% 0.098 135.8)
XYZxyz(3.2780, 5.3172, 1.2014)
Luminance0.0532 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#254A0C #310C4A
analogous
#444A0C #254A0C #0C4A12
triadic
#254A0C #0C254A #4A0C25
tetradic
#254A0C #0C444A #310C4A #4A120C
square
#254A0C #0C444A #310C4A #4A120C
split-complementary
#254A0C #120C4A #4A0C44
monochromatic
#0D1A04 #0D1A04 #254A0C #3F7F15 #5AB31D

Accessibility & contrast

On white

10.18
#254A0C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.06
#254A0C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #254A0C
10.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##254A0C#FFFFFF#000000##FFFFFF
##254A0C1.0010.182.0610.18
#FFFFFF10.181.0021.001.00
#0000002.0621.001.0021.00
##FFFFFF10.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4D4302
Deuteranopia (green-blind)
#484013
Tritanopia (blue-blind)
#24473E
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #254a0c;
/* rgb */ color: rgb(37, 74, 12);
/* oklch */ color: oklch(36.8% 0.098 135.8);
Tailwind
colors: {
  custom: {
    50: '#647d50',
    500: '#254a0c',
    950: '#000000',
  },
}
SCSS
$custom: #254a0c;
$custom-light: #647d50;
$custom-dark: #000000;
JSON
{
  "hex": "#254a0c",
  "rgb": {
    "r": 37,
    "g": 74,
    "b": 12
  },
  "hsl": {
    "h": 95.806,
    "s": 72.093,
    "l": 16.863
  },
  "oklch": {
    "l": 0.36761,
    "c": 0.0983,
    "h": 135.8
  },
  "luminance": 0.05317
}

Semantic roles & 50–950 ramp

primary
#254A0C
secondary
#622C86
accent
#39EFA5
background
#F6F7F4
surface
#EBEEE7
border
#C6C9C3
text
#060902
muted
#7A7B78

Preview Lab

Preview with #254A0C

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

Preview Lab → · Contrast checker → · Palette generator →

#254A0C Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva