#154F0C#154F0C

#154F0C is a dark, moderate green. Relative luminance 0.058; OKLCH L 37.6% C 0.113 H 141.3°. Best body text is #FFFFFF at 9.74:1 contrast (WCAG AA passes).

Color values

HEX#154F0C
RGBrgb(21, 79, 12)
HSLhsl(112, 74%, 18%)
HSVhsv(112, 85%, 31%)
CMYKcmyk(73.4%, 0%, 84.8%, 69%)
CIE-LABlab(28.84, -32.33, 31.66)
CIE-LCHlch(28.84, 45.24, 135.60°)
OKLaboklab(37.6% -0.0883 0.0708)
OKLCHoklch(37.6% 0.113 141.3)
XYZxyz(3.1714, 5.7776, 1.2958)
Luminance0.0578 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#154F0C #460C4F
analogous
#364F0C #154F0C #0C4F24
triadic
#154F0C #0C154F #4F0C15
tetradic
#154F0C #0C364F #460C4F #4F240C
square
#154F0C #0C364F #460C4F #4F240C
split-complementary
#154F0C #240C4F #4F0C36
monochromatic
#071B04 #071B04 #154F0C #238414 #31B91C

Accessibility & contrast

On white

9.74
#154F0C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.16
#154F0C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #154F0C
9.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##154F0C#FFFFFF#000000##FFFFFF
##154F0C1.009.742.169.74
#FFFFFF9.741.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#514700
Deuteranopia (green-blind)
#4A4214
Tritanopia (blue-blind)
#094C42
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #154f0c;
/* rgb */ color: rgb(21, 79, 12);
/* oklch */ color: oklch(37.6% 0.113 141.3);
Tailwind
colors: {
  custom: {
    50: '#5c8151',
    500: '#154f0c',
    950: '#000000',
  },
}
SCSS
$custom: #154f0c;
$custom-light: #5c8151;
$custom-dark: #000000;
JSON
{
  "hex": "#154f0c",
  "rgb": {
    "r": 21,
    "g": 79,
    "b": 12
  },
  "hsl": {
    "h": 111.94,
    "s": 73.626,
    "l": 17.843
  },
  "oklch": {
    "l": 0.37597,
    "c": 0.11319,
    "h": 141.3
  },
  "luminance": 0.05778
}

Semantic roles & 50–950 ramp

primary
#154F0C
secondary
#7E2C8B
accent
#38F0D7
background
#F5F7F4
surface
#E9EEE7
border
#C5C9C3
text
#050A02
muted
#797C78

Preview Lab

Preview with #154F0C

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

Preview Lab → · Contrast checker → · Palette generator →

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