#173A02#173A02

#173A02 is a dark, moderate yellow-green. Relative luminance 0.032; OKLCH L 31.0% C 0.091 H 136.8°. Best body text is #FFFFFF at 12.78:1 contrast (WCAG AA passes).

Color values

HEX#173A02
RGBrgb(23, 58, 2)
HSLhsl(98, 93%, 12%)
HSVhsv(98, 97%, 23%)
CMYKcmyk(60.3%, 0%, 96.6%, 77.3%)
CIE-LABlab(20.88, -23.79, 27.72)
CIE-LCHlch(20.88, 36.53, 130.64°)
OKLaboklab(31% -0.0663 0.0623)
OKLCHoklch(31% 0.091 136.8)
XYZxyz(1.8773, 3.2125, 0.5786)
Luminance0.0321 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#173A02 #25023A
analogous
#333A02 #173A02 #023A09
triadic
#173A02 #02173A #3A0217
tetradic
#173A02 #02333A #25023A #3A0902
square
#173A02 #02333A #25023A #3A0902
split-complementary
#173A02 #09023A #3A0233
monochromatic
#0C1E01 #0C1E01 #173A02 #2E7504 #46B006

Accessibility & contrast

On white

12.78
#173A02 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#173A02 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #173A02
12.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##173A02#FFFFFF#000000##FFFFFF
##173A021.0012.781.6412.78
#FFFFFF12.781.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3C3400
Deuteranopia (green-blind)
#383108
Tritanopia (blue-blind)
#153730
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #173a02;
/* rgb */ color: rgb(23, 58, 2);
/* oklch */ color: oklch(31.0% 0.091 136.8);
Tailwind
colors: {
  custom: {
    50: '#597049',
    500: '#173a02',
    950: '#000000',
  },
}
SCSS
$custom: #173a02;
$custom-light: #597049;
$custom-dark: #000000;
JSON
{
  "hex": "#173a02",
  "rgb": {
    "r": 23,
    "g": 58,
    "b": 2
  },
  "hsl": {
    "h": 97.5,
    "s": 93.333,
    "l": 11.765
  },
  "oklch": {
    "l": 0.31004,
    "c": 0.09098,
    "h": 136.8
  },
  "luminance": 0.03213
}

Semantic roles & 50–950 ramp

primary
#173A02
secondary
#581A7D
accent
#29FFAF
background
#F5F6F4
surface
#E9ECE7
border
#C5C7C3
text
#040701
muted
#797A77

Preview Lab

Preview with #173A02

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

Preview Lab → · Contrast checker → · Palette generator →

#173A02 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva