#172D07#172D07

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

Color values

HEX#172D07
RGBrgb(23, 45, 7)
HSLhsl(95, 73%, 10%)
HSVhsv(95, 84%, 18%)
CMYKcmyk(48.9%, 0%, 84.4%, 82.4%)
CIE-LABlab(15.87, -16.89, 19.77)
CIE-LCHlch(15.87, 26.00, 130.51°)
OKLaboklab(26.91% -0.0472 0.0477)
OKLCHoklch(26.91% 0.067 134.7)
XYZxyz(1.3301, 2.0742, 0.5312)
Luminance0.0207 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172D07 #1D072D
analogous
#2A2D07 #172D07 #072D0A
triadic
#172D07 #07172D #2D0717
tetradic
#172D07 #072A2D #1D072D #2D0A07
square
#172D07 #072A2D #1D072D #2D0A07
split-complementary
#172D07 #0A072D #2D072A
monochromatic
#0E1A04 #0E1A04 #172D07 #32620F #4D9717

Accessibility & contrast

On white

14.84
#172D07 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #172D07
14.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172D07#FFFFFF#000000##FFFFFF
##172D071.0014.841.4114.84
#FFFFFF14.841.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.841.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #172d07;
/* rgb */ color: rgb(23, 45, 7);
/* oklch */ color: oklch(26.9% 0.067 134.7);
Tailwind
colors: {
  custom: {
    50: '#56664a',
    500: '#172d07',
    950: '#000000',
  },
}
SCSS
$custom: #172d07;
$custom-light: #56664a;
$custom-dark: #000000;
JSON
{
  "hex": "#172d07",
  "rgb": {
    "r": 23,
    "g": 45,
    "b": 7
  },
  "hsl": {
    "h": 94.737,
    "s": 73.077,
    "l": 10.196
  },
  "oklch": {
    "l": 0.26908,
    "c": 0.06708,
    "h": 134.7
  },
  "luminance": 0.02074
}

Semantic roles & 50–950 ramp

primary
#172D07
secondary
#4E236D
accent
#38F0A2
background
#F5F6F4
surface
#E9EBE7
border
#C5C6C3
text
#030601
muted
#787A77

Preview Lab

Preview with #172D07

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

Preview Lab → · Contrast checker → · Palette generator →

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