#157512#157512

#157512 is a mid, vivid green. Relative luminance 0.129; OKLCH L 49.1% C 0.156 H 142.5°. Best body text is #FFFFFF at 5.86:1 contrast (WCAG AA passes).

Color values

HEX#157512
RGBrgb(21, 117, 18)
HSLhsl(118, 73%, 26%)
HSVhsv(118, 85%, 46%)
CMYKcmyk(82.1%, 0%, 84.6%, 54.1%)
CIE-LABlab(42.65, -45.44, 42.73)
CIE-LCHlch(42.65, 62.38, 136.76°)
OKLaboklab(49.08% -0.1235 0.0948)
OKLCHoklch(49.08% 0.156 142.5)
XYZxyz(6.7793, 12.9249, 2.7096)
Luminance0.1293 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#157512 #721275
analogous
#477512 #157512 #127541
triadic
#157512 #121575 #751215
tetradic
#157512 #124775 #721275 #754112
square
#157512 #124775 #721275 #754112
split-complementary
#157512 #411275 #751247
monochromatic
#051B04 #0B400A #157512 #1FAA1A #2ADD24

Accessibility & contrast

On white

5.86
#157512 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.59
#157512 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #157512
5.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##157512#FFFFFF#000000##FFFFFF
##1575121.005.863.595.86
#FFFFFF5.861.0021.001.00
#0000003.5921.001.0021.00
##FFFFFF5.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#786900
Deuteranopia (green-blind)
#6E621F
Tritanopia (blue-blind)
#007163
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #157512;
/* rgb */ color: rgb(21, 117, 18);
/* oklch */ color: oklch(49.1% 0.156 142.5);
Tailwind
colors: {
  custom: {
    50: '#669e5a',
    500: '#157512',
    950: '#000000',
  },
}
SCSS
$custom: #157512;
$custom-light: #669e5a;
$custom-dark: #000000;
JSON
{
  "hex": "#157512",
  "rgb": {
    "r": 21,
    "g": 117,
    "b": 18
  },
  "hsl": {
    "h": 118.182,
    "s": 73.333,
    "l": 26.471
  },
  "oklch": {
    "l": 0.49078,
    "c": 0.1557,
    "h": 142.5
  },
  "luminance": 0.12926
}

Semantic roles & 50–950 ramp

primary
#157512
secondary
#A837AC
accent
#38F0EA
background
#F6F9F5
surface
#EBF2E9
border
#C6CCC5
text
#070E04
muted
#7A7E79

Preview Lab

Preview with #157512

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

Preview Lab → · Contrast checker → · Palette generator →

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