#172902#172902

#172902 is a dark, moderate yellow-green. Relative luminance 0.018; OKLCH L 25.6% C 0.067 H 131.1°. Best body text is #FFFFFF at 15.51:1 contrast (WCAG AA passes).

Color values

HEX#172902
RGBrgb(23, 41, 2)
HSLhsl(88, 91%, 8%)
HSVhsv(88, 95%, 16%)
CMYKcmyk(43.9%, 0%, 95.1%, 83.9%)
CIE-LABlab(14.24, -15.34, 19.72)
CIE-LCHlch(14.24, 24.98, 127.88°)
OKLaboklab(25.56% -0.0437 0.0501)
OKLCHoklch(25.56% 0.067 131.1)
XYZxyz(1.1572, 1.7724, 0.3385)
Luminance0.0177 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172902 #140229
analogous
#292702 #172902 #032902
triadic
#172902 #021729 #290217
tetradic
#172902 #022927 #140229 #290203
square
#172902 #022927 #140229 #290203
split-complementary
#172902 #020329 #270229
monochromatic
#101D01 #101D01 #172902 #386305 #589E08

Accessibility & contrast

On white

15.51
#172902 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.35
#172902 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #172902
15.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172902#FFFFFF#000000##FFFFFF
##1729021.0015.511.3515.51
#FFFFFF15.511.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2B2500
Deuteranopia (green-blind)
#292405
Tritanopia (blue-blind)
#182721
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #172902;
/* rgb */ color: rgb(23, 41, 2);
/* oklch */ color: oklch(25.6% 0.067 131.1);
Tailwind
colors: {
  custom: {
    50: '#556347',
    500: '#172902',
    950: '#000000',
  },
}
SCSS
$custom: #172902;
$custom-light: #556347;
$custom-dark: #000000;
JSON
{
  "hex": "#172902",
  "rgb": {
    "r": 23,
    "g": 41,
    "b": 2
  },
  "hsl": {
    "h": 87.692,
    "s": 90.698,
    "l": 8.431
  },
  "oklch": {
    "l": 0.25559,
    "c": 0.0665,
    "h": 131.1
  },
  "luminance": 0.01772
}

Semantic roles & 50–950 ramp

primary
#172902
secondary
#40196E
accent
#29FF8C
background
#F5F5F4
surface
#E9EAE6
border
#C5C6C2
text
#030500
muted
#787977

Preview Lab

Preview with #172902

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

Preview Lab → · Contrast checker → · Palette generator →

#172902 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva