#254F0C#254F0C

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

Color values

HEX#254F0C
RGBrgb(37, 79, 12)
HSLhsl(98, 74%, 18%)
HSVhsv(98, 85%, 31%)
CMYKcmyk(53.2%, 0%, 84.8%, 69%)
CIE-LABlab(29.44, -27.56, 32.44)
CIE-LCHlch(29.44, 42.57, 130.36°)
OKLaboklab(38.26% -0.0766 0.0722)
OKLCHoklch(38.26% 0.105 136.7)
XYZxyz(3.6252, 6.0116, 1.3171)
Luminance0.0601 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#254F0C #360C4F
analogous
#464F0C #254F0C #0C4F15
triadic
#254F0C #0C254F #4F0C25
tetradic
#254F0C #0C464F #360C4F #4F150C
square
#254F0C #0C464F #360C4F #4F150C
split-complementary
#254F0C #150C4F #4F0C46
monochromatic
#0C1B04 #0C1B04 #254F0C #3E8414 #57B91C

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##254F0C#FFFFFF#000000##FFFFFF
##254F0C1.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: #254f0c;
/* rgb */ color: rgb(37, 79, 12);
/* oklch */ color: oklch(38.3% 0.105 136.7);
Tailwind
colors: {
  custom: {
    50: '#658151',
    500: '#254f0c',
    950: '#000000',
  },
}
SCSS
$custom: #254f0c;
$custom-light: #658151;
$custom-dark: #000000;
JSON
{
  "hex": "#254f0c",
  "rgb": {
    "r": 37,
    "g": 79,
    "b": 12
  },
  "hsl": {
    "h": 97.612,
    "s": 73.626,
    "l": 17.843
  },
  "oklch": {
    "l": 0.38258,
    "c": 0.10531,
    "h": 136.7
  },
  "luminance": 0.06012
}

Semantic roles & 50–950 ramp

primary
#254F0C
secondary
#672C8B
accent
#38F0AB
background
#F6F7F4
surface
#EBEEE7
border
#C6C9C3
text
#060A02
muted
#7A7C78

Preview Lab

Preview with #254F0C

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

Preview Lab → · Contrast checker → · Palette generator →

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