#152A02#152A02

#152A02 is a dark, moderate yellow-green. Relative luminance 0.018; OKLCH L 25.7% C 0.069 H 133.1°. Best body text is #FFFFFF at 15.40:1 contrast (WCAG AA passes).

Color values

HEX#152A02
RGBrgb(21, 42, 2)
HSLhsl(92, 91%, 9%)
HSVhsv(92, 95%, 16%)
CMYKcmyk(50%, 0%, 95.2%, 83.5%)
CIE-LABlab(14.51, -16.79, 20.04)
CIE-LCHlch(14.51, 26.14, 129.95°)
OKLaboklab(25.74% -0.0474 0.0506)
OKLCHoklch(25.74% 0.069 133.1)
XYZxyz(1.1482, 1.8197, 0.3482)
Luminance0.0182 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#152A02 #17022A
analogous
#292A02 #152A02 #022A03
triadic
#152A02 #02152A #2A0215
tetradic
#152A02 #02292A #17022A #2A0302
square
#152A02 #02292A #17022A #2A0302
split-complementary
#152A02 #03022A #2A0229
monochromatic
#0F1D01 #0F1D01 #152A02 #326405 #4F9F08

Accessibility & contrast

On white

15.40
#152A02 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.36
#152A02 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #152A02
15.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##152A02#FFFFFF#000000##FFFFFF
##152A021.0015.401.3615.40
#FFFFFF15.401.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2C2600
Deuteranopia (green-blind)
#292405
Tritanopia (blue-blind)
#152822
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #152a02;
/* rgb */ color: rgb(21, 42, 2);
/* oklch */ color: oklch(25.7% 0.069 133.1);
Tailwind
colors: {
  custom: {
    50: '#546347',
    500: '#152a02',
    950: '#000000',
  },
}
SCSS
$custom: #152a02;
$custom-light: #546347;
$custom-dark: #000000;
JSON
{
  "hex": "#152a02",
  "rgb": {
    "r": 21,
    "g": 42,
    "b": 2
  },
  "hsl": {
    "h": 91.5,
    "s": 90.909,
    "l": 8.627
  },
  "oklch": {
    "l": 0.25743,
    "c": 0.06935,
    "h": 133.1
  },
  "luminance": 0.0182
}

Semantic roles & 50–950 ramp

primary
#152A02
secondary
#46196F
accent
#29FF99
background
#F4F5F4
surface
#E7EAE6
border
#C3C6C2
text
#030500
muted
#787977

Preview Lab

Preview with #152A02

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

Preview Lab → · Contrast checker → · Palette generator →

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