#172F02#172F02

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

Color values

HEX#172F02
RGBrgb(23, 47, 2)
HSLhsl(92, 92%, 10%)
HSVhsv(92, 96%, 18%)
CMYKcmyk(51.1%, 0%, 95.7%, 81.6%)
CIE-LABlab(16.60, -18.51, 22.71)
CIE-LCHlch(16.60, 29.30, 129.18°)
OKLaboklab(27.49% -0.0522 0.0545)
OKLCHoklch(27.49% 0.075 133.8)
XYZxyz(1.3808, 2.2195, 0.4131)
Luminance0.0222 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172F02 #1A022F
analogous
#2E2F02 #172F02 #022F03
triadic
#172F02 #02172F #2F0217
tetradic
#172F02 #022E2F #1A022F #2F0302
square
#172F02 #022E2F #1A022F #2F0302
split-complementary
#172F02 #03022F #2F022E
monochromatic
#0E1D01 #0E1D01 #172F02 #346A04 #50A407

Accessibility & contrast

On white

14.54
#172F02 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.44
#172F02 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #172F02
14.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172F02#FFFFFF#000000##FFFFFF
##172F021.0014.541.4414.54
#FFFFFF14.541.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#312A00
Deuteranopia (green-blind)
#2E2806
Tritanopia (blue-blind)
#172D27
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #172f02;
/* rgb */ color: rgb(23, 47, 2);
/* oklch */ color: oklch(27.5% 0.075 133.8);
Tailwind
colors: {
  custom: {
    50: '#566848',
    500: '#172f02',
    950: '#000000',
  },
}
SCSS
$custom: #172f02;
$custom-light: #566848;
$custom-dark: #000000;
JSON
{
  "hex": "#172f02",
  "rgb": {
    "r": 23,
    "g": 47,
    "b": 2
  },
  "hsl": {
    "h": 92,
    "s": 91.837,
    "l": 9.608
  },
  "oklch": {
    "l": 0.27487,
    "c": 0.07547,
    "h": 133.8
  },
  "luminance": 0.0222
}

Semantic roles & 50–950 ramp

primary
#172F02
secondary
#491974
accent
#29FF9B
background
#F5F6F4
surface
#E9EBE6
border
#C5C6C2
text
#030600
muted
#787A77

Preview Lab

Preview with #172F02

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

Preview Lab → · Contrast checker → · Palette generator →

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