#157212#157212

#157212 is a mid, vivid green. Relative luminance 0.122; OKLCH L 48.2% C 0.152 H 142.5°. Best body text is #FFFFFF at 6.09:1 contrast (WCAG AA passes).

Color values

HEX#157212
RGBrgb(21, 114, 18)
HSLhsl(118, 73%, 26%)
HSVhsv(118, 84%, 45%)
CMYKcmyk(81.6%, 0%, 84.2%, 55.3%)
CIE-LABlab(41.59, -44.44, 41.74)
CIE-LCHlch(41.59, 60.97, 136.80°)
OKLaboklab(48.2% -0.1208 0.0928)
OKLCHoklch(48.2% 0.152 142.5)
XYZxyz(6.4354, 12.2370, 2.5950)
Luminance0.1224 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#157212 #6F1272
analogous
#457212 #157212 #12723F
triadic
#157212 #121572 #721215
tetradic
#157212 #124572 #6F1272 #723F12
square
#157212 #124572 #6F1272 #723F12
split-complementary
#157212 #3F1272 #721245
monochromatic
#051A04 #0B3D0A #157212 #1FA71A #28DC23

Accessibility & contrast

On white

6.09
#157212 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.45
#157212 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #157212
6.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##157212#FFFFFF#000000##FFFFFF
##1572121.006.093.456.09
#FFFFFF6.091.0021.001.00
#0000003.4521.001.0021.00
##FFFFFF6.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#756600
Deuteranopia (green-blind)
#6B5F1E
Tritanopia (blue-blind)
#006E60
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #157212;
/* rgb */ color: rgb(21, 114, 18);
/* oklch */ color: oklch(48.2% 0.152 142.5);
Tailwind
colors: {
  custom: {
    50: '#669c59',
    500: '#157212',
    950: '#000000',
  },
}
SCSS
$custom: #157212;
$custom-light: #669c59;
$custom-dark: #000000;
JSON
{
  "hex": "#157212",
  "rgb": {
    "r": 21,
    "g": 114,
    "b": 18
  },
  "hsl": {
    "h": 118.125,
    "s": 72.727,
    "l": 25.882
  },
  "oklch": {
    "l": 0.48197,
    "c": 0.15229,
    "h": 142.5
  },
  "luminance": 0.12238
}

Semantic roles & 50–950 ramp

primary
#157212
secondary
#A537A9
accent
#38EFEA
background
#F6F9F5
surface
#EBF2E9
border
#C6CCC5
text
#070E04
muted
#7A7E79

Preview Lab

Preview with #157212

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

Preview Lab → · Contrast checker → · Palette generator →

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