#172F06#172F06

#172F06 is a dark, moderate yellow-green. Relative luminance 0.022; OKLCH L 27.5% C 0.071 H 135.0°. Best body text is #FFFFFF at 14.53:1 contrast (WCAG AA passes).

Color values

HEX#172F06
RGBrgb(23, 47, 6)
HSLhsl(95, 77%, 10%)
HSVhsv(95, 87%, 18%)
CMYKcmyk(51.1%, 0%, 87.2%, 81.6%)
CIE-LABlab(16.64, -18.06, 21.14)
CIE-LCHlch(16.64, 27.80, 130.51°)
OKLaboklab(27.54% -0.0504 0.0504)
OKLCHoklch(27.54% 0.071 135)
XYZxyz(1.4027, 2.2283, 0.5284)
Luminance0.0223 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172F06 #1E062F
analogous
#2B2F06 #172F06 #062F09
triadic
#172F06 #06172F #2F0617
tetradic
#172F06 #062B2F #1E062F #2F0906
square
#172F06 #062B2F #1E062F #2F0906
split-complementary
#172F06 #09062F #2F062B
monochromatic
#0D1B03 #0D1B03 #172F06 #32650D #4C9C14

Accessibility & contrast

On white

14.53
#172F06 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #172F06
14.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172F06#FFFFFF#000000##FFFFFF
##172F061.0014.531.4514.53
#FFFFFF14.531.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.531.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #172f06;
/* rgb */ color: rgb(23, 47, 6);
/* oklch */ color: oklch(27.5% 0.071 135.0);
Tailwind
colors: {
  custom: {
    50: '#56674a',
    500: '#172f06',
    950: '#000000',
  },
}
SCSS
$custom: #172f06;
$custom-light: #56674a;
$custom-dark: #000000;
JSON
{
  "hex": "#172f06",
  "rgb": {
    "r": 23,
    "g": 47,
    "b": 6
  },
  "hsl": {
    "h": 95.122,
    "s": 77.358,
    "l": 10.392
  },
  "oklch": {
    "l": 0.27536,
    "c": 0.07129,
    "h": 135
  },
  "luminance": 0.02228
}

Semantic roles & 50–950 ramp

primary
#172F06
secondary
#4F2170
accent
#34F4A4
background
#F5F6F4
surface
#E9EBE7
border
#C5C6C3
text
#030601
muted
#787A77

Preview Lab

Preview with #172F06

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

Preview Lab → · Contrast checker → · Palette generator →

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