#254C0F#254C0F

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

Color values

HEX#254C0F
RGBrgb(37, 76, 15)
HSLhsl(98, 67%, 18%)
HSVhsv(98, 80%, 30%)
CMYKcmyk(51.3%, 0%, 80.3%, 70.2%)
CIE-LABlab(28.37, -25.97, 30.20)
CIE-LCHlch(28.37, 39.83, 130.69°)
OKLaboklab(37.38% -0.0721 0.068)
OKLCHoklch(37.38% 0.099 136.7)
XYZxyz(3.4335, 5.5965, 1.3511)
Luminance0.0560 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#254C0F #360F4C
analogous
#434C0F #254C0F #0F4C18
triadic
#254C0F #0F254C #4C0F25
tetradic
#254C0F #0F434C #360F4C #4C180F
square
#254C0F #0F434C #360F4C #4C180F
split-complementary
#254C0F #180F4C #4C0F43
monochromatic
#0C1A05 #0C1A05 #254C0F #3E7F19 #57B223

Accessibility & contrast

On white

9.91
#254C0F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #254C0F
9.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##254C0F#FFFFFF#000000##FFFFFF
##254C0F1.009.912.129.91
#FFFFFF9.911.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.911.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #254c0f;
/* rgb */ color: rgb(37, 76, 15);
/* oklch */ color: oklch(37.4% 0.099 136.7);
Tailwind
colors: {
  custom: {
    50: '#647e52',
    500: '#254c0f',
    950: '#000000',
  },
}
SCSS
$custom: #254c0f;
$custom-light: #647e52;
$custom-dark: #000000;
JSON
{
  "hex": "#254c0f",
  "rgb": {
    "r": 37,
    "g": 76,
    "b": 15
  },
  "hsl": {
    "h": 98.361,
    "s": 67.033,
    "l": 17.843
  },
  "oklch": {
    "l": 0.37384,
    "c": 0.09915,
    "h": 136.7
  },
  "luminance": 0.05597
}

Semantic roles & 50–950 ramp

primary
#254C0F
secondary
#673186
accent
#3EEAAC
background
#F6F7F4
surface
#EBEEE7
border
#C6C9C3
text
#060A02
muted
#7A7C78

Preview Lab

Preview with #254C0F

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

Preview Lab → · Contrast checker → · Palette generator →

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