#157818#157818

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

Color values

HEX#157818
RGBrgb(21, 120, 24)
HSLhsl(122, 70%, 28%)
HSVhsv(122, 83%, 47%)
CMYKcmyk(82.5%, 0%, 80%, 52.9%)
CIE-LABlab(43.74, -46.03, 41.79)
CIE-LCHlch(43.74, 62.17, 137.76°)
OKLaboklab(49.99% -0.1248 0.0938)
OKLCHoklch(49.99% 0.156 143.1)
XYZxyz(7.1901, 13.6575, 3.1212)
Luminance0.1366 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#157818 #781575
analogous
#447815 #157818 #157849
triadic
#157818 #181578 #781815
tetradic
#157818 #154478 #781575 #784915
square
#157818 #154478 #781575 #784915
split-complementary
#157818 #491578 #781544
monochromatic
#051A05 #0C440E #157818 #1EAC22 #2DDA32

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##157818#FFFFFF#000000##FFFFFF
##1578181.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)
#7B6C02
Deuteranopia (green-blind)
#706523
Tritanopia (blue-blind)
#007466
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #157818;
/* rgb */ color: rgb(21, 120, 24);
/* oklch */ color: oklch(50.0% 0.156 143.1);
Tailwind
colors: {
  custom: {
    50: '#67a05d',
    500: '#157818',
    950: '#000000',
  },
}
SCSS
$custom: #157818;
$custom-light: #67a05d;
$custom-dark: #000000;
JSON
{
  "hex": "#157818",
  "rgb": {
    "r": 21,
    "g": 120,
    "b": 24
  },
  "hsl": {
    "h": 121.818,
    "s": 70.213,
    "l": 27.647
  },
  "oklch": {
    "l": 0.49994,
    "c": 0.15608,
    "h": 143.1
  },
  "luminance": 0.13658
}

Semantic roles & 50–950 ramp

primary
#157818
secondary
#AE3BAA
accent
#3BE8ED
background
#F6F9F5
surface
#EBF2E9
border
#C6CCC5
text
#070F04
muted
#7A7E79

Preview Lab

Preview with #157818

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

Preview Lab → · Contrast checker → · Palette generator →

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