#254F0F#254F0F

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

Color values

HEX#254F0F
RGBrgb(37, 79, 15)
HSLhsl(99, 68%, 18%)
HSVhsv(99, 81%, 31%)
CMYKcmyk(53.2%, 0%, 81%, 69%)
CIE-LABlab(29.46, -27.34, 31.29)
CIE-LCHlch(29.46, 41.55, 131.15°)
OKLaboklab(38.28% -0.0758 0.0703)
OKLCHoklch(38.28% 0.103 137.2)
XYZxyz(3.6450, 6.0195, 1.4217)
Luminance0.0602 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#254F0F #390F4F
analogous
#454F0F #254F0F #0F4F19
triadic
#254F0F #0F254F #4F0F25
tetradic
#254F0F #0F454F #390F4F #4F190F
square
#254F0F #0F454F #390F4F #4F190F
split-complementary
#254F0F #190F4F #4F0F45
monochromatic
#0C1A05 #0D1C05 #254F0F #3D8219 #55B623

Accessibility & contrast

On white

9.53
#254F0F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #254F0F
9.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##254F0F#FFFFFF#000000##FFFFFF
##254F0F1.009.532.209.53
#FFFFFF9.531.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#524804
Deuteranopia (green-blind)
#4C4416
Tritanopia (blue-blind)
#224C43
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #254f0f;
/* rgb */ color: rgb(37, 79, 15);
/* oklch */ color: oklch(38.3% 0.103 137.2);
Tailwind
colors: {
  custom: {
    50: '#648152',
    500: '#254f0f',
    950: '#000000',
  },
}
SCSS
$custom: #254f0f;
$custom-light: #648152;
$custom-dark: #000000;
JSON
{
  "hex": "#254f0f",
  "rgb": {
    "r": 37,
    "g": 79,
    "b": 15
  },
  "hsl": {
    "h": 99.375,
    "s": 68.085,
    "l": 18.431
  },
  "oklch": {
    "l": 0.38281,
    "c": 0.10342,
    "h": 137.2
  },
  "luminance": 0.0602
}

Semantic roles & 50–950 ramp

primary
#254F0F
secondary
#6B3189
accent
#3DEBAF
background
#F6F7F4
surface
#EBEEE7
border
#C6C9C3
text
#060A02
muted
#7A7C78

Preview Lab

Preview with #254F0F

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

Preview Lab → · Contrast checker → · Palette generator →

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