#172E02#172E02

#172E02 is a dark, moderate yellow-green. Relative luminance 0.021; OKLCH L 27.2% C 0.074 H 133.4°. Best body text is #FFFFFF at 14.70:1 contrast (WCAG AA passes).

Color values

HEX#172E02
RGBrgb(23, 46, 2)
HSLhsl(91, 92%, 9%)
HSVhsv(91, 96%, 18%)
CMYKcmyk(50%, 0%, 95.7%, 82%)
CIE-LABlab(16.21, -18.00, 22.22)
CIE-LCHlch(16.21, 28.60, 129.00°)
OKLaboklab(27.17% -0.0508 0.0538)
OKLCHoklch(27.17% 0.074 133.4)
XYZxyz(1.3413, 2.1405, 0.3999)
Luminance0.0214 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172E02 #19022E
analogous
#2D2E02 #172E02 #022E03
triadic
#172E02 #02172E #2E0217
tetradic
#172E02 #022D2E #19022E #2E0302
square
#172E02 #022D2E #19022E #2E0302
split-complementary
#172E02 #03022E #2E022D
monochromatic
#0F1D01 #0F1D01 #172E02 #346905 #52A307

Accessibility & contrast

On white

14.70
#172E02 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.43
#172E02 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #172E02
14.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172E02#FFFFFF#000000##FFFFFF
##172E021.0014.701.4314.70
#FFFFFF14.701.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#302900
Deuteranopia (green-blind)
#2D2805
Tritanopia (blue-blind)
#172C26
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #172e02;
/* rgb */ color: rgb(23, 46, 2);
/* oklch */ color: oklch(27.2% 0.074 133.4);
Tailwind
colors: {
  custom: {
    50: '#566748',
    500: '#172e02',
    950: '#000000',
  },
}
SCSS
$custom: #172e02;
$custom-light: #566748;
$custom-dark: #000000;
JSON
{
  "hex": "#172e02",
  "rgb": {
    "r": 23,
    "g": 46,
    "b": 2
  },
  "hsl": {
    "h": 91.364,
    "s": 91.667,
    "l": 9.412
  },
  "oklch": {
    "l": 0.27166,
    "c": 0.07401,
    "h": 133.4
  },
  "luminance": 0.02141
}

Semantic roles & 50–950 ramp

primary
#172E02
secondary
#481973
accent
#29FF99
background
#F5F6F4
surface
#E9EBE6
border
#C5C6C2
text
#030600
muted
#787A77

Preview Lab

Preview with #172E02

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

Preview Lab → · Contrast checker → · Palette generator →

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