#157817#157817

#157817 is a mid, vivid green. Relative luminance 0.137; OKLCH L 50.0% C 0.157 H 143.0°. Best body text is #FFFFFF at 5.63:1 contrast (WCAG AA passes).

Color values

HEX#157817
RGBrgb(21, 120, 23)
HSLhsl(121, 70%, 28%)
HSVhsv(121, 83%, 47%)
CMYKcmyk(82.5%, 0%, 80.8%, 52.9%)
CIE-LABlab(43.73, -46.10, 42.13)
CIE-LCHlch(43.73, 62.45, 137.58°)
OKLaboklab(49.99% -0.125 0.0943)
OKLCHoklch(49.99% 0.157 143)
XYZxyz(7.1799, 13.6534, 3.0674)
Luminance0.1365 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#157817 #781576
analogous
#457815 #157817 #157848
triadic
#157817 #171578 #781715
tetradic
#157817 #154578 #781576 #784815
square
#157817 #154578 #781576 #784815
split-complementary
#157817 #481578 #781545
monochromatic
#051A05 #0C440D #157817 #1EAC21 #2DDA31

Accessibility & contrast

On white

5.63
#157817 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.73
#157817 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #157817
5.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##157817#FFFFFF#000000##FFFFFF
##1578171.005.633.735.63
#FFFFFF5.631.0021.001.00
#0000003.7321.001.0021.00
##FFFFFF5.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7B6C00
Deuteranopia (green-blind)
#706522
Tritanopia (blue-blind)
#007466
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #157817;
/* rgb */ color: rgb(21, 120, 23);
/* oklch */ color: oklch(50.0% 0.157 143.0);
Tailwind
colors: {
  custom: {
    50: '#67a05c',
    500: '#157817',
    950: '#000000',
  },
}
SCSS
$custom: #157817;
$custom-light: #67a05c;
$custom-dark: #000000;
JSON
{
  "hex": "#157817",
  "rgb": {
    "r": 21,
    "g": 120,
    "b": 23
  },
  "hsl": {
    "h": 121.212,
    "s": 70.213,
    "l": 27.647
  },
  "oklch": {
    "l": 0.49987,
    "c": 0.15662,
    "h": 143
  },
  "luminance": 0.13654
}

Semantic roles & 50–950 ramp

primary
#157817
secondary
#AE3BAB
accent
#3BE9ED
background
#F6F9F5
surface
#ECF2E9
border
#C7CCC5
text
#070F04
muted
#7A7E79

Preview Lab

Preview with #157817

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

Preview Lab → · Contrast checker → · Palette generator →

#157817 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva