#254C0B#254C0B

#254C0B is a dark, moderate yellow-green. Relative luminance 0.056; OKLCH L 37.4% C 0.102 H 136.0°. Best body text is #FFFFFF at 9.92:1 contrast (WCAG AA passes).

Color values

HEX#254C0B
RGBrgb(37, 76, 11)
HSLhsl(96, 75%, 17%)
HSVhsv(96, 86%, 30%)
CMYKcmyk(51.3%, 0%, 85.5%, 70.2%)
CIE-LABlab(28.34, -26.26, 31.76)
CIE-LCHlch(28.34, 41.21, 129.59°)
OKLaboklab(37.35% -0.0732 0.0706)
OKLCHoklch(37.35% 0.102 136)
XYZxyz(3.4077, 5.5861, 1.2152)
Luminance0.0559 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#254C0B #320B4C
analogous
#464C0B #254C0B #0B4C12
triadic
#254C0B #0B254C #4C0B25
tetradic
#254C0B #0B464C #320B4C #4C120B
square
#254C0B #0B464C #320B4C #4C120B
split-complementary
#254C0B #120B4C #4C0B46
monochromatic
#0D1B04 #0D1B04 #254C0B #3F8113 #59B71A

Accessibility & contrast

On white

9.92
#254C0B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.12
#254C0B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #254C0B
9.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##254C0B#FFFFFF#000000##FFFFFF
##254C0B1.009.922.129.92
#FFFFFF9.921.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4F4500
Deuteranopia (green-blind)
#4A4212
Tritanopia (blue-blind)
#234940
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #254c0b;
/* rgb */ color: rgb(37, 76, 11);
/* oklch */ color: oklch(37.4% 0.102 136.0);
Tailwind
colors: {
  custom: {
    50: '#647e50',
    500: '#254c0b',
    950: '#000000',
  },
}
SCSS
$custom: #254c0b;
$custom-light: #647e50;
$custom-dark: #000000;
JSON
{
  "hex": "#254c0b",
  "rgb": {
    "r": 37,
    "g": 76,
    "b": 11
  },
  "hsl": {
    "h": 96,
    "s": 74.713,
    "l": 17.059
  },
  "oklch": {
    "l": 0.37353,
    "c": 0.10173,
    "h": 136
  },
  "luminance": 0.05586
}

Semantic roles & 50–950 ramp

primary
#254C0B
secondary
#632B88
accent
#36F1A7
background
#F6F7F4
surface
#EBEEE7
border
#C6C9C3
text
#060A02
muted
#7A7C78

Preview Lab

Preview with #254C0B

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

Preview Lab → · Contrast checker → · Palette generator →

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