#17842A#17842A

#17842A is a mid, vivid green. Relative luminance 0.169; OKLCH L 53.6% C 0.158 H 145.2°. Best body text is #FFFFFF at 4.81:1 contrast (WCAG AA passes).

Color values

HEX#17842A
RGBrgb(23, 132, 42)
HSLhsl(130, 70%, 30%)
HSVhsv(130, 83%, 52%)
CMYKcmyk(82.6%, 0%, 68.2%, 48.2%)
CIE-LABlab(48.07, -48.09, 39.01)
CIE-LCHlch(48.07, 61.92, 140.95°)
OKLaboklab(53.65% -0.1297 0.0903)
OKLCHoklch(53.65% 0.158 145.2)
XYZxyz(9.0219, 16.8508, 4.9671)
Luminance0.1685 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#17842A #841771
analogous
#3A8417 #17842A #178461
triadic
#17842A #2A1784 #842A17
tetradic
#17842A #173A84 #841771 #846117
square
#17842A #173A84 #841771 #846117
split-complementary
#17842A #611784 #84173A
monochromatic
#051C09 #0E5019 #17842A #20B83B #39DC55

Accessibility & contrast

On white

4.81
#17842A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.37
#17842A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #17842A
4.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##17842A#FFFFFF#000000##FFFFFF
##17842A1.004.814.374.81
#FFFFFF4.811.0021.001.00
#0000004.3721.001.0021.00
##FFFFFF4.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#86771E
Deuteranopia (green-blind)
#7B6F32
Tritanopia (blue-blind)
#008071
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #17842a;
/* rgb */ color: rgb(23, 132, 42);
/* oklch */ color: oklch(53.6% 0.158 145.2);
Tailwind
colors: {
  custom: {
    50: '#6aa968',
    500: '#17842a',
    950: '#000000',
  },
}
SCSS
$custom: #17842a;
$custom-light: #6aa968;
$custom-dark: #000000;
JSON
{
  "hex": "#17842a",
  "rgb": {
    "r": 23,
    "g": 132,
    "b": 42
  },
  "hsl": {
    "h": 130.459,
    "s": 70.323,
    "l": 30.392
  },
  "oklch": {
    "l": 0.5365,
    "c": 0.158,
    "h": 145.2
  },
  "luminance": 0.16852
}

Semantic roles & 50–950 ramp

primary
#17842A
secondary
#B83FA3
accent
#3BCEED
background
#F6FAF6
surface
#ECF4EB
border
#C7CEC6
text
#081006
muted
#7A7F7A

Preview Lab

Preview with #17842A

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

Preview Lab → · Contrast checker → · Palette generator →

#17842A Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva