#172F07#172F07

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

Color values

HEX#172F07
RGBrgb(23, 47, 7)
HSLhsl(96, 74%, 11%)
HSVhsv(96, 85%, 18%)
CMYKcmyk(51.1%, 0%, 85.1%, 81.6%)
CIE-LABlab(16.65, -17.94, 20.74)
CIE-LCHlch(16.65, 27.43, 130.86°)
OKLaboklab(27.55% -0.05 0.0494)
OKLCHoklch(27.55% 0.07 135.4)
XYZxyz(1.4082, 2.2305, 0.5573)
Luminance0.0223 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172F07 #1F072F
analogous
#2B2F07 #172F07 #072F0B
triadic
#172F07 #07172F #2F0717
tetradic
#172F07 #072B2F #1F072F #2F0B07
square
#172F07 #072B2F #1F072F #2F0B07
split-complementary
#172F07 #0B072F #2F072B
monochromatic
#0D1B04 #0D1B04 #172F07 #31640F #4B9A17

Accessibility & contrast

On white

14.52
#172F07 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #172F07
14.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172F07#FFFFFF#000000##FFFFFF
##172F071.0014.521.4514.52
#FFFFFF14.521.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#312A03
Deuteranopia (green-blind)
#2E280A
Tritanopia (blue-blind)
#162D27
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #172f07;
/* rgb */ color: rgb(23, 47, 7);
/* oklch */ color: oklch(27.5% 0.070 135.4);
Tailwind
colors: {
  custom: {
    50: '#56674a',
    500: '#172f07',
    950: '#000000',
  },
}
SCSS
$custom: #172f07;
$custom-light: #56674a;
$custom-dark: #000000;
JSON
{
  "hex": "#172f07",
  "rgb": {
    "r": 23,
    "g": 47,
    "b": 7
  },
  "hsl": {
    "h": 96,
    "s": 74.074,
    "l": 10.588
  },
  "oklch": {
    "l": 0.27548,
    "c": 0.07029,
    "h": 135.4
  },
  "luminance": 0.02231
}

Semantic roles & 50–950 ramp

primary
#172F07
secondary
#50236F
accent
#37F1A6
background
#F5F6F4
surface
#E9EBE7
border
#C5C6C3
text
#030601
muted
#787A77

Preview Lab

Preview with #172F07

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

Preview Lab → · Contrast checker → · Palette generator →

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