#154F12#154F12

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

Color values

HEX#154F12
RGBrgb(21, 79, 18)
HSLhsl(117, 63%, 19%)
HSVhsv(117, 77%, 31%)
CMYKcmyk(73.4%, 0%, 77.2%, 69%)
CIE-LABlab(28.89, -31.80, 29.22)
CIE-LCHlch(28.89, 43.19, 137.41°)
OKLaboklab(37.65% -0.0865 0.0667)
OKLCHoklch(37.65% 0.109 142.4)
XYZxyz(3.2142, 5.7947, 1.5213)
Luminance0.0580 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#154F12 #4C124F
analogous
#344F12 #154F12 #124F2E
triadic
#154F12 #12154F #4F1215
tetradic
#154F12 #12344F #4C124F #4F2E12
square
#154F12 #12344F #4C124F #4F2E12
split-complementary
#154F12 #2E124F #4F1234
monochromatic
#071906 #081D07 #154F12 #22811D #2FB329

Accessibility & contrast

On white

9.73
#154F12 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #154F12
9.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##154F12#FFFFFF#000000##FFFFFF
##154F121.009.732.169.73
#FFFFFF9.731.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#514708
Deuteranopia (green-blind)
#4A4218
Tritanopia (blue-blind)
#084C43
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #154f12;
/* rgb */ color: rgb(21, 79, 18);
/* oklch */ color: oklch(37.6% 0.109 142.4);
Tailwind
colors: {
  custom: {
    50: '#5c8154',
    500: '#154f12',
    950: '#000000',
  },
}
SCSS
$custom: #154f12;
$custom-light: #5c8154;
$custom-dark: #000000;
JSON
{
  "hex": "#154f12",
  "rgb": {
    "r": 21,
    "g": 79,
    "b": 18
  },
  "hsl": {
    "h": 117.049,
    "s": 62.887,
    "l": 19.02
  },
  "oklch": {
    "l": 0.37648,
    "c": 0.10921,
    "h": 142.4
  },
  "luminance": 0.05795
}

Semantic roles & 50–950 ramp

primary
#154F12
secondary
#843588
accent
#42E6DE
background
#F5F7F4
surface
#E9EEE8
border
#C5C9C4
text
#040A03
muted
#797C78

Preview Lab

Preview with #154F12

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

Preview Lab → · Contrast checker → · Palette generator →

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