#172D04#172D04

#172D04 is a dark, moderate yellow-green. Relative luminance 0.021; OKLCH L 26.9% C 0.070 H 133.6°. Best body text is #FFFFFF at 14.86:1 contrast (WCAG AA passes).

Color values

HEX#172D04
RGBrgb(23, 45, 4)
HSLhsl(92, 84%, 10%)
HSVhsv(92, 91%, 18%)
CMYKcmyk(48.9%, 0%, 91.1%, 82.4%)
CIE-LABlab(15.84, -17.24, 20.95)
CIE-LCHlch(15.84, 27.13, 129.46°)
OKLaboklab(26.87% -0.0485 0.0509)
OKLCHoklch(26.87% 0.07 133.6)
XYZxyz(1.3136, 2.0676, 0.4447)
Luminance0.0207 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172D04 #1A042D
analogous
#2C2D04 #172D04 #042D06
triadic
#172D04 #04172D #2D0417
tetradic
#172D04 #042C2D #1A042D #2D0604
square
#172D04 #042C2D #1A042D #2D0604
split-complementary
#172D04 #06042D #2D042C
monochromatic
#0E1C02 #0E1C02 #172D04 #346509 #509D0E

Accessibility & contrast

On white

14.86
#172D04 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.41
#172D04 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #172D04
14.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172D04#FFFFFF#000000##FFFFFF
##172D041.0014.861.4114.86
#FFFFFF14.861.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2F2900
Deuteranopia (green-blind)
#2C2707
Tritanopia (blue-blind)
#172B25
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #172d04;
/* rgb */ color: rgb(23, 45, 4);
/* oklch */ color: oklch(26.9% 0.070 133.6);
Tailwind
colors: {
  custom: {
    50: '#566648',
    500: '#172d04',
    950: '#000000',
  },
}
SCSS
$custom: #172d04;
$custom-light: #566648;
$custom-dark: #000000;
JSON
{
  "hex": "#172d04",
  "rgb": {
    "r": 23,
    "g": 45,
    "b": 4
  },
  "hsl": {
    "h": 92.195,
    "s": 83.673,
    "l": 9.608
  },
  "oklch": {
    "l": 0.2687,
    "c": 0.07029,
    "h": 133.6
  },
  "luminance": 0.02068
}

Semantic roles & 50–950 ramp

primary
#172D04
secondary
#491D70
accent
#2EFA9B
background
#F5F6F4
surface
#E9EBE6
border
#C5C6C2
text
#030600
muted
#787A77

Preview Lab

Preview with #172D04

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

Preview Lab → · Contrast checker → · Palette generator →

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