#172A07#172A07

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

Color values

HEX#172A07
RGBrgb(23, 42, 7)
HSLhsl(93, 71%, 10%)
HSVhsv(93, 83%, 16%)
CMYKcmyk(45.2%, 0%, 83.3%, 83.5%)
CIE-LABlab(14.70, -15.26, 18.27)
CIE-LCHlch(14.70, 23.81, 129.88°)
OKLaboklab(25.95% -0.0427 0.0451)
OKLCHoklch(25.95% 0.062 133.4)
XYZxyz(1.2196, 1.8534, 0.4944)
Luminance0.0185 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172A07 #1A072A
analogous
#292A07 #172A07 #072A08
triadic
#172A07 #07172A #2A0717
tetradic
#172A07 #07292A #1A072A #2A0807
square
#172A07 #07292A #1A072A #2A0807
split-complementary
#172A07 #08072A #2A0729
monochromatic
#0E1A04 #0E1A04 #172A07 #345E10 #509318

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##172A07#FFFFFF#000000##FFFFFF
##172A071.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)
#2C2604
Deuteranopia (green-blind)
#29250A
Tritanopia (blue-blind)
#172823
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #172a07;
/* rgb */ color: rgb(23, 42, 7);
/* oklch */ color: oklch(25.9% 0.062 133.4);
Tailwind
colors: {
  custom: {
    50: '#55634a',
    500: '#172a07',
    950: '#000000',
  },
}
SCSS
$custom: #172a07;
$custom-light: #55634a;
$custom-dark: #000000;
JSON
{
  "hex": "#172a07",
  "rgb": {
    "r": 23,
    "g": 42,
    "b": 7
  },
  "hsl": {
    "h": 92.571,
    "s": 71.429,
    "l": 9.608
  },
  "oklch": {
    "l": 0.25949,
    "c": 0.06216,
    "h": 133.4
  },
  "luminance": 0.01853
}

Semantic roles & 50–950 ramp

primary
#172A07
secondary
#49236A
accent
#3AEE9C
background
#F5F5F4
surface
#E9EAE7
border
#C5C6C3
text
#030501
muted
#787977

Preview Lab

Preview with #172A07

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

Preview Lab → · Contrast checker → · Palette generator →

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