#172A02#172A02

#172A02 is a dark, moderate yellow-green. Relative luminance 0.018; OKLCH L 25.9% C 0.068 H 131.6°. Best body text is #FFFFFF at 15.35:1 contrast (WCAG AA passes).

Color values

HEX#172A02
RGBrgb(23, 42, 2)
HSLhsl(89, 91%, 9%)
HSVhsv(89, 95%, 16%)
CMYKcmyk(45.2%, 0%, 95.2%, 83.5%)
CIE-LABlab(14.64, -15.88, 20.23)
CIE-LCHlch(14.64, 25.72, 128.14°)
OKLaboklab(25.88% -0.0452 0.0509)
OKLCHoklch(25.88% 0.068 131.6)
XYZxyz(1.1923, 1.8424, 0.3502)
Luminance0.0184 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172A02 #15022A
analogous
#2A2902 #172A02 #032A02
triadic
#172A02 #02172A #2A0217
tetradic
#172A02 #022A29 #15022A #2A0203
square
#172A02 #022A29 #15022A #2A0203
split-complementary
#172A02 #02032A #29022A
monochromatic
#101D01 #101D01 #172A02 #376405 #579F08

Accessibility & contrast

On white

15.35
#172A02 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.37
#172A02 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #172A02
15.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172A02#FFFFFF#000000##FFFFFF
##172A021.0015.351.3715.35
#FFFFFF15.351.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.351.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #172a02;
/* rgb */ color: rgb(23, 42, 2);
/* oklch */ color: oklch(25.9% 0.068 131.6);
Tailwind
colors: {
  custom: {
    50: '#556347',
    500: '#172a02',
    950: '#000000',
  },
}
SCSS
$custom: #172a02;
$custom-light: #556347;
$custom-dark: #000000;
JSON
{
  "hex": "#172a02",
  "rgb": {
    "r": 23,
    "g": 42,
    "b": 2
  },
  "hsl": {
    "h": 88.5,
    "s": 90.909,
    "l": 8.627
  },
  "oklch": {
    "l": 0.2588,
    "c": 0.06802,
    "h": 131.6
  },
  "luminance": 0.01842
}

Semantic roles & 50–950 ramp

primary
#172A02
secondary
#42196F
accent
#29FF8F
background
#F5F5F4
surface
#E9EAE6
border
#C5C6C2
text
#030500
muted
#787977

Preview Lab

Preview with #172A02

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

Preview Lab → · Contrast checker → · Palette generator →

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