#172F05#172F05

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

Color values

HEX#172F05
RGBrgb(23, 47, 5)
HSLhsl(94, 81%, 10%)
HSVhsv(94, 89%, 18%)
CMYKcmyk(51.1%, 0%, 89.4%, 81.6%)
CIE-LABlab(16.63, -18.17, 21.53)
CIE-LCHlch(16.63, 28.17, 130.16°)
OKLaboklab(27.52% -0.0509 0.0514)
OKLCHoklch(27.52% 0.072 134.7)
XYZxyz(1.3972, 2.2261, 0.4996)
Luminance0.0223 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172F05 #1D052F
analogous
#2C2F05 #172F05 #052F08
triadic
#172F05 #05172F #2F0517
tetradic
#172F05 #052C2F #1D052F #2F0805
square
#172F05 #052C2F #1D052F #2F0805
split-complementary
#172F05 #08052F #2F052C
monochromatic
#0E1C03 #0E1C03 #172F05 #32660B #4D9E11

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##172F05#FFFFFF#000000##FFFFFF
##172F051.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)
#312A01
Deuteranopia (green-blind)
#2E2809
Tritanopia (blue-blind)
#172D27
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #172f05;
/* rgb */ color: rgb(23, 47, 5);
/* oklch */ color: oklch(27.5% 0.072 134.7);
Tailwind
colors: {
  custom: {
    50: '#566749',
    500: '#172f05',
    950: '#000000',
  },
}
SCSS
$custom: #172f05;
$custom-light: #566749;
$custom-dark: #000000;
JSON
{
  "hex": "#172f05",
  "rgb": {
    "r": 23,
    "g": 47,
    "b": 5
  },
  "hsl": {
    "h": 94.286,
    "s": 80.769,
    "l": 10.196
  },
  "oklch": {
    "l": 0.27523,
    "c": 0.07231,
    "h": 134.7
  },
  "luminance": 0.02226
}

Semantic roles & 50–950 ramp

primary
#172F05
secondary
#4E1F71
accent
#31F7A2
background
#F5F6F4
surface
#E9EBE7
border
#C5C6C3
text
#030601
muted
#787A77

Preview Lab

Preview with #172F05

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

Preview Lab → · Contrast checker → · Palette generator →

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