#254F0B#254F0B

#254F0B is a dark, moderate yellow-green. Relative luminance 0.060; OKLCH L 38.3% C 0.106 H 136.6°. Best body text is #FFFFFF at 9.54:1 contrast (WCAG AA passes).

Color values

HEX#254F0B
RGBrgb(37, 79, 11)
HSLhsl(97, 76%, 18%)
HSVhsv(97, 86%, 31%)
CMYKcmyk(53.2%, 0%, 86.1%, 69%)
CIE-LABlab(29.44, -27.63, 32.79)
CIE-LCHlch(29.44, 42.88, 130.11°)
OKLaboklab(38.25% -0.0769 0.0728)
OKLCHoklch(38.25% 0.106 136.6)
XYZxyz(3.6192, 6.0092, 1.2857)
Luminance0.0601 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#254F0B #350B4F
analogous
#474F0B #254F0B #0B4F13
triadic
#254F0B #0B254F #4F0B25
tetradic
#254F0B #0B474F #350B4F #4F130B
square
#254F0B #0B474F #350B4F #4F130B
split-complementary
#254F0B #130B4F #4F0B47
monochromatic
#0D1B04 #0D1B04 #254F0B #3E8512 #57BA1A

Accessibility & contrast

On white

9.54
#254F0B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.20
#254F0B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #254F0B
9.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##254F0B#FFFFFF#000000##FFFFFF
##254F0B1.009.542.209.54
#FFFFFF9.541.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#524800
Deuteranopia (green-blind)
#4D4413
Tritanopia (blue-blind)
#234C42
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #254f0b;
/* rgb */ color: rgb(37, 79, 11);
/* oklch */ color: oklch(38.3% 0.106 136.6);
Tailwind
colors: {
  custom: {
    50: '#658150',
    500: '#254f0b',
    950: '#000000',
  },
}
SCSS
$custom: #254f0b;
$custom-light: #658150;
$custom-dark: #000000;
JSON
{
  "hex": "#254f0b",
  "rgb": {
    "r": 37,
    "g": 79,
    "b": 11
  },
  "hsl": {
    "h": 97.059,
    "s": 75.556,
    "l": 17.647
  },
  "oklch": {
    "l": 0.38251,
    "c": 0.10589,
    "h": 136.6
  },
  "luminance": 0.06009
}

Semantic roles & 50–950 ramp

primary
#254F0B
secondary
#662B8B
accent
#36F2AA
background
#F6F7F4
surface
#EBEEE7
border
#C6C9C3
text
#060A02
muted
#7A7C78

Preview Lab

Preview with #254F0B

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

Preview Lab → · Contrast checker → · Palette generator →

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