#152F02#152F02

#152F02 is a dark, moderate yellow-green. Relative luminance 0.022; OKLCH L 27.4% C 0.077 H 135.0°. Best body text is #FFFFFF at 14.59:1 contrast (WCAG AA passes).

Color values

HEX#152F02
RGBrgb(21, 47, 2)
HSLhsl(95, 92%, 10%)
HSVhsv(95, 96%, 18%)
CMYKcmyk(55.3%, 0%, 95.7%, 81.6%)
CIE-LABlab(16.49, -19.34, 22.55)
CIE-LCHlch(16.49, 29.71, 130.63°)
OKLaboklab(27.37% -0.0543 0.0543)
OKLCHoklch(27.37% 0.077 135)
XYZxyz(1.3367, 2.1968, 0.4110)
Luminance0.0220 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#152F02 #1C022F
analogous
#2C2F02 #152F02 #022F06
triadic
#152F02 #02152F #2F0215
tetradic
#152F02 #022C2F #1C022F #2F0602
square
#152F02 #022C2F #1C022F #2F0602
split-complementary
#152F02 #06022F #2F022C
monochromatic
#0D1D01 #0D1D01 #152F02 #2F6A04 #49A407

Accessibility & contrast

On white

14.59
#152F02 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.44
#152F02 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #152F02
14.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##152F02#FFFFFF#000000##FFFFFF
##152F021.0014.591.4414.59
#FFFFFF14.591.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#312A00
Deuteranopia (green-blind)
#2E2806
Tritanopia (blue-blind)
#142D27
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #152f02;
/* rgb */ color: rgb(21, 47, 2);
/* oklch */ color: oklch(27.4% 0.077 135.0);
Tailwind
colors: {
  custom: {
    50: '#556848',
    500: '#152f02',
    950: '#000000',
  },
}
SCSS
$custom: #152f02;
$custom-light: #556848;
$custom-dark: #000000;
JSON
{
  "hex": "#152f02",
  "rgb": {
    "r": 21,
    "g": 47,
    "b": 2
  },
  "hsl": {
    "h": 94.667,
    "s": 91.837,
    "l": 9.608
  },
  "oklch": {
    "l": 0.27365,
    "c": 0.07675,
    "h": 135
  },
  "luminance": 0.02197
}

Semantic roles & 50–950 ramp

primary
#152F02
secondary
#4D1974
accent
#29FFA5
background
#F5F6F4
surface
#E9EBE6
border
#C5C6C2
text
#030600
muted
#787A77

Preview Lab

Preview with #152F02

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

Preview Lab → · Contrast checker → · Palette generator →

#152F02 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva