#172A06#172A06

#172A06 is a dark, moderate yellow-green. Relative luminance 0.019; OKLCH L 25.9% C 0.063 H 133.0°. Best body text is #FFFFFF at 15.33:1 contrast (WCAG AA passes).

Color values

HEX#172A06
RGBrgb(23, 42, 6)
HSLhsl(92, 75%, 9%)
HSVhsv(92, 86%, 16%)
CMYKcmyk(45.2%, 0%, 85.7%, 83.5%)
CIE-LABlab(14.69, -15.38, 18.66)
CIE-LCHlch(14.69, 24.19, 129.50°)
OKLaboklab(25.94% -0.0432 0.0463)
OKLCHoklch(25.94% 0.063 133)
XYZxyz(1.2142, 1.8512, 0.4656)
Luminance0.0185 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172A06 #19062A
analogous
#292A06 #172A06 #062A07
triadic
#172A06 #06172A #2A0617
tetradic
#172A06 #06292A #19062A #2A0706
square
#172A06 #06292A #19062A #2A0706
split-complementary
#172A06 #07062A #2A0629
monochromatic
#0F1B04 #0F1B04 #172A06 #34600E #529515

Accessibility & contrast

On white

15.33
#172A06 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #172A06
15.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172A06#FFFFFF#000000##FFFFFF
##172A061.0015.331.3715.33
#FFFFFF15.331.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2C2603
Deuteranopia (green-blind)
#292409
Tritanopia (blue-blind)
#172823
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #172a06;
/* rgb */ color: rgb(23, 42, 6);
/* oklch */ color: oklch(25.9% 0.063 133.0);
Tailwind
colors: {
  custom: {
    50: '#556349',
    500: '#172a06',
    950: '#000000',
  },
}
SCSS
$custom: #172a06;
$custom-light: #556349;
$custom-dark: #000000;
JSON
{
  "hex": "#172a06",
  "rgb": {
    "r": 23,
    "g": 42,
    "b": 6
  },
  "hsl": {
    "h": 91.667,
    "s": 75,
    "l": 9.412
  },
  "oklch": {
    "l": 0.25935,
    "c": 0.06329,
    "h": 133
  },
  "luminance": 0.01851
}

Semantic roles & 50–950 ramp

primary
#172A06
secondary
#48216B
accent
#36F299
background
#F5F5F4
surface
#E9EAE7
border
#C5C6C3
text
#030501
muted
#787977

Preview Lab

Preview with #172A06

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

Preview Lab → · Contrast checker → · Palette generator →

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