#172F04#172F04

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

Color values

HEX#172F04
RGBrgb(23, 47, 4)
HSLhsl(93, 84%, 10%)
HSVhsv(93, 91%, 18%)
CMYKcmyk(51.1%, 0%, 91.5%, 81.6%)
CIE-LABlab(16.62, -18.28, 21.92)
CIE-LCHlch(16.62, 28.55, 129.83°)
OKLaboklab(27.51% -0.0513 0.0524)
OKLCHoklch(27.51% 0.073 134.4)
XYZxyz(1.3918, 2.2239, 0.4708)
Luminance0.0222 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172F04 #1C042F
analogous
#2D2F04 #172F04 #042F06
triadic
#172F04 #04172F #2F0417
tetradic
#172F04 #042D2F #1C042F #2F0604
square
#172F04 #042D2F #1C042F #2F0604
split-complementary
#172F04 #06042F #2F042D
monochromatic
#0E1C02 #0E1C02 #172F04 #336709 #4EA00E

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##172F04#FFFFFF#000000##FFFFFF
##172F041.0014.531.4414.53
#FFFFFF14.531.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.531.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #172f04;
/* rgb */ color: rgb(23, 47, 4);
/* oklch */ color: oklch(27.5% 0.073 134.4);
Tailwind
colors: {
  custom: {
    50: '#566849',
    500: '#172f04',
    950: '#000000',
  },
}
SCSS
$custom: #172f04;
$custom-light: #566849;
$custom-dark: #000000;
JSON
{
  "hex": "#172f04",
  "rgb": {
    "r": 23,
    "g": 47,
    "b": 4
  },
  "hsl": {
    "h": 93.488,
    "s": 84.314,
    "l": 10
  },
  "oklch": {
    "l": 0.27511,
    "c": 0.07334,
    "h": 134.4
  },
  "luminance": 0.02224
}

Semantic roles & 50–950 ramp

primary
#172F04
secondary
#4C1D72
accent
#2DFBA0
background
#F5F6F4
surface
#E9EBE6
border
#C5C6C2
text
#030601
muted
#787A77

Preview Lab

Preview with #172F04

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

Preview Lab → · Contrast checker → · Palette generator →

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