#172A08#172A08

#172A08 is a dark, moderate yellow-green. Relative luminance 0.019; OKLCH L 26.0% C 0.061 H 133.8°. Best body text is #FFFFFF at 15.32:1 contrast (WCAG AA passes).

Color values

HEX#172A08
RGBrgb(23, 42, 8)
HSLhsl(94, 68%, 10%)
HSVhsv(94, 81%, 16%)
CMYKcmyk(45.2%, 0%, 81%, 83.5%)
CIE-LABlab(14.71, -15.14, 17.88)
CIE-LCHlch(14.71, 23.43, 130.26°)
OKLaboklab(25.96% -0.0423 0.0441)
OKLCHoklch(25.96% 0.061 133.8)
XYZxyz(1.2251, 1.8556, 0.5233)
Luminance0.0186 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172A08 #1B082A
analogous
#282A08 #172A08 #082A0A
triadic
#172A08 #08172A #2A0817
tetradic
#172A08 #08282A #1B082A #2A0A08
square
#172A08 #08282A #1B082A #2A0A08
split-complementary
#172A08 #0A082A #2A0828
monochromatic
#0E1A05 #0E1A05 #172A08 #335D12 #4F911C

Accessibility & contrast

On white

15.32
#172A08 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #172A08
15.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172A08#FFFFFF#000000##FFFFFF
##172A081.0015.321.3715.32
#FFFFFF15.321.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2C2605
Deuteranopia (green-blind)
#29250B
Tritanopia (blue-blind)
#172823
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #172a08;
/* rgb */ color: rgb(23, 42, 8);
/* oklch */ color: oklch(26.0% 0.061 133.8);
Tailwind
colors: {
  custom: {
    50: '#55634a',
    500: '#172a08',
    950: '#000000',
  },
}
SCSS
$custom: #172a08;
$custom-light: #55634a;
$custom-dark: #000000;
JSON
{
  "hex": "#172a08",
  "rgb": {
    "r": 23,
    "g": 42,
    "b": 8
  },
  "hsl": {
    "h": 93.529,
    "s": 68,
    "l": 9.804
  },
  "oklch": {
    "l": 0.25963,
    "c": 0.06106,
    "h": 133.8
  },
  "luminance": 0.01856
}

Semantic roles & 50–950 ramp

primary
#172A08
secondary
#4B2569
accent
#3DEB9E
background
#F5F5F4
surface
#E9EAE7
border
#C5C6C3
text
#030501
muted
#787977

Preview Lab

Preview with #172A08

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

Preview Lab → · Contrast checker → · Palette generator →

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