#254D0F#254D0F

#254D0F is a dark, moderate yellow-green. Relative luminance 0.057; OKLCH L 37.7% C 0.101 H 136.8°. Best body text is #FFFFFF at 9.78:1 contrast (WCAG AA passes).

Color values

HEX#254D0F
RGBrgb(37, 77, 15)
HSLhsl(99, 67%, 18%)
HSVhsv(99, 81%, 30%)
CMYKcmyk(51.9%, 0%, 80.5%, 69.8%)
CIE-LABlab(28.73, -26.43, 30.56)
CIE-LCHlch(28.73, 40.41, 130.85°)
OKLaboklab(37.68% -0.0734 0.0688)
OKLCHoklch(37.68% 0.101 136.8)
XYZxyz(3.5029, 5.7353, 1.3743)
Luminance0.0574 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#254D0F #370F4D
analogous
#444D0F #254D0F #0F4D18
triadic
#254D0F #0F254D #4D0F25
tetradic
#254D0F #0F444D #370F4D #4D180F
square
#254D0F #0F444D #370F4D #4D180F
split-complementary
#254D0F #180F4D #4D0F44
monochromatic
#0C1A05 #0C1A05 #254D0F #3E8019 #56B323

Accessibility & contrast

On white

9.78
#254D0F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.15
#254D0F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #254D0F
9.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##254D0F#FFFFFF#000000##FFFFFF
##254D0F1.009.782.159.78
#FFFFFF9.781.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#504605
Deuteranopia (green-blind)
#4B4315
Tritanopia (blue-blind)
#234A41
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #254d0f;
/* rgb */ color: rgb(37, 77, 15);
/* oklch */ color: oklch(37.7% 0.101 136.8);
Tailwind
colors: {
  custom: {
    50: '#647f52',
    500: '#254d0f',
    950: '#000000',
  },
}
SCSS
$custom: #254d0f;
$custom-light: #647f52;
$custom-dark: #000000;
JSON
{
  "hex": "#254d0f",
  "rgb": {
    "r": 37,
    "g": 77,
    "b": 15
  },
  "hsl": {
    "h": 98.71,
    "s": 67.391,
    "l": 18.039
  },
  "oklch": {
    "l": 0.37683,
    "c": 0.10058,
    "h": 136.8
  },
  "luminance": 0.05736
}

Semantic roles & 50–950 ramp

primary
#254D0F
secondary
#683187
accent
#3EEAAD
background
#F6F7F4
surface
#EBEEE7
border
#C6C9C3
text
#060A02
muted
#7A7C78

Preview Lab

Preview with #254D0F

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

Preview Lab → · Contrast checker → · Palette generator →

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