#172F08#172F08

#172F08 is a dark, moderate yellow-green. Relative luminance 0.022; OKLCH L 27.6% C 0.069 H 135.7°. Best body text is #FFFFFF at 14.52:1 contrast (WCAG AA passes).

Color values

HEX#172F08
RGBrgb(23, 47, 8)
HSLhsl(97, 71%, 11%)
HSVhsv(97, 83%, 18%)
CMYKcmyk(51.1%, 0%, 83%, 81.6%)
CIE-LABlab(16.66, -17.83, 20.35)
CIE-LCHlch(16.66, 27.05, 131.22°)
OKLaboklab(27.56% -0.0496 0.0484)
OKLCHoklch(27.56% 0.069 135.7)
XYZxyz(1.4137, 2.2326, 0.5861)
Luminance0.0223 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172F08 #20082F
analogous
#2A2F08 #172F08 #082F0C
triadic
#172F08 #08172F #2F0817
tetradic
#172F08 #082A2F #20082F #2F0C08
square
#172F08 #082A2F #20082F #2F0C08
split-complementary
#172F08 #0C082F #2F082A
monochromatic
#0D1A04 #0D1A04 #172F08 #316311 #4A981A

Accessibility & contrast

On white

14.52
#172F08 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#172F08 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #172F08
14.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172F08#FFFFFF#000000##FFFFFF
##172F081.0014.521.4514.52
#FFFFFF14.521.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#312A04
Deuteranopia (green-blind)
#2E280B
Tritanopia (blue-blind)
#162D27
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #172f08;
/* rgb */ color: rgb(23, 47, 8);
/* oklch */ color: oklch(27.6% 0.069 135.7);
Tailwind
colors: {
  custom: {
    50: '#56674b',
    500: '#172f08',
    950: '#000000',
  },
}
SCSS
$custom: #172f08;
$custom-light: #56674b;
$custom-dark: #000000;
JSON
{
  "hex": "#172f08",
  "rgb": {
    "r": 23,
    "g": 47,
    "b": 8
  },
  "hsl": {
    "h": 96.923,
    "s": 70.909,
    "l": 10.784
  },
  "oklch": {
    "l": 0.2756,
    "c": 0.06929,
    "h": 135.7
  },
  "luminance": 0.02233
}

Semantic roles & 50–950 ramp

primary
#172F08
secondary
#52256E
accent
#3AEEA9
background
#F5F6F4
surface
#E9EBE7
border
#C5C6C3
text
#030601
muted
#787A77

Preview Lab

Preview with #172F08

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

Preview Lab → · Contrast checker → · Palette generator →

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