#254C0C#254C0C

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

Color values

HEX#254C0C
RGBrgb(37, 76, 12)
HSLhsl(97, 73%, 17%)
HSVhsv(97, 84%, 30%)
CMYKcmyk(51.3%, 0%, 84.2%, 70.2%)
CIE-LABlab(28.35, -26.19, 31.39)
CIE-LCHlch(28.35, 40.88, 129.85°)
OKLaboklab(37.36% -0.073 0.07)
OKLCHoklch(37.36% 0.101 136.2)
XYZxyz(3.4137, 5.5885, 1.2466)
Luminance0.0559 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#254C0C #330C4C
analogous
#454C0C #254C0C #0C4C13
triadic
#254C0C #0C254C #4C0C25
tetradic
#254C0C #0C454C #330C4C #4C130C
square
#254C0C #0C454C #330C4C #4C130C
split-complementary
#254C0C #130C4C #4C0C45
monochromatic
#0D1A04 #0D1A04 #254C0C #3F8114 #58B61D

Accessibility & contrast

On white

9.92
#254C0C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #254C0C
9.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##254C0C#FFFFFF#000000##FFFFFF
##254C0C1.009.922.129.92
#FFFFFF9.921.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.921.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #254c0c;
/* rgb */ color: rgb(37, 76, 12);
/* oklch */ color: oklch(37.4% 0.101 136.2);
Tailwind
colors: {
  custom: {
    50: '#647e50',
    500: '#254c0c',
    950: '#000000',
  },
}
SCSS
$custom: #254c0c;
$custom-light: #647e50;
$custom-dark: #000000;
JSON
{
  "hex": "#254c0c",
  "rgb": {
    "r": 37,
    "g": 76,
    "b": 12
  },
  "hsl": {
    "h": 96.563,
    "s": 72.727,
    "l": 17.255
  },
  "oklch": {
    "l": 0.3736,
    "c": 0.10113,
    "h": 136.2
  },
  "luminance": 0.05589
}

Semantic roles & 50–950 ramp

primary
#254C0C
secondary
#642C88
accent
#38EFA8
background
#F6F7F4
surface
#EBEEE7
border
#C6C9C3
text
#060A02
muted
#7A7C78

Preview Lab

Preview with #254C0C

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

Preview Lab → · Contrast checker → · Palette generator →

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