#172A05#172A05

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

Color values

HEX#172A05
RGBrgb(23, 42, 5)
HSLhsl(91, 79%, 9%)
HSVhsv(91, 88%, 16%)
CMYKcmyk(45.2%, 0%, 88.1%, 83.5%)
CIE-LABlab(14.67, -15.51, 19.05)
CIE-LCHlch(14.67, 24.57, 129.15°)
OKLaboklab(25.92% -0.0437 0.0474)
OKLCHoklch(25.92% 0.064 132.7)
XYZxyz(1.2087, 1.8490, 0.4368)
Luminance0.0185 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172A05 #18052A
analogous
#2A2A05 #172A05 #052A06
triadic
#172A05 #05172A #2A0517
tetradic
#172A05 #052A2A #18052A #2A0605
square
#172A05 #052A2A #18052A #2A0605
split-complementary
#172A05 #06052A #2A052A
monochromatic
#0F1B03 #0F1B03 #172A05 #35610C #539712

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##172A05#FFFFFF#000000##FFFFFF
##172A051.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)
#2C2601
Deuteranopia (green-blind)
#2A2408
Tritanopia (blue-blind)
#172823
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #172a05;
/* rgb */ color: rgb(23, 42, 5);
/* oklch */ color: oklch(25.9% 0.064 132.7);
Tailwind
colors: {
  custom: {
    50: '#556349',
    500: '#172a05',
    950: '#000000',
  },
}
SCSS
$custom: #172a05;
$custom-light: #556349;
$custom-dark: #000000;
JSON
{
  "hex": "#172a05",
  "rgb": {
    "r": 23,
    "g": 42,
    "b": 5
  },
  "hsl": {
    "h": 90.811,
    "s": 78.723,
    "l": 9.216
  },
  "oklch": {
    "l": 0.25922,
    "c": 0.06443,
    "h": 132.7
  },
  "luminance": 0.01849
}

Semantic roles & 50–950 ramp

primary
#172A05
secondary
#461F6C
accent
#33F597
background
#F5F5F4
surface
#E9EAE6
border
#C5C6C2
text
#030501
muted
#787977

Preview Lab

Preview with #172A05

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

Preview Lab → · Contrast checker → · Palette generator →

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