#187E12#187E12

#187E12 is a mid, vivid green. Relative luminance 0.152; OKLCH L 51.8% C 0.165 H 142.2°. Best body text is #FFFFFF at 5.21:1 contrast (WCAG AA passes).

Color values

HEX#187E12
RGBrgb(24, 126, 18)
HSLhsl(117, 75%, 28%)
HSVhsv(117, 86%, 49%)
CMYKcmyk(81%, 0%, 85.7%, 50.6%)
CIE-LABlab(45.85, -47.97, 45.70)
CIE-LCHlch(45.85, 66.26, 136.38°)
OKLaboklab(51.76% -0.1304 0.1011)
OKLCHoklch(51.76% 0.165 142.2)
XYZxyz(7.9462, 15.1586, 3.0793)
Luminance0.1516 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#187E12 #78127E
analogous
#4E7E12 #187E12 #127E42
triadic
#187E12 #12187E #7E1218
tetradic
#187E12 #124E7E #78127E #7E4212
square
#187E12 #124E7E #78127E #7E4212
split-complementary
#187E12 #42127E #7E124E
monochromatic
#051B04 #0E480A #187E12 #22B41A #34E12A

Accessibility & contrast

On white

5.21
#187E12 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.03
#187E12 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #187E12
5.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##187E12#FFFFFF#000000##FFFFFF
##187E121.005.214.035.21
#FFFFFF5.211.0021.001.00
#0000004.0321.001.0021.00
##FFFFFF5.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#817100
Deuteranopia (green-blind)
#766A20
Tritanopia (blue-blind)
#007A6B
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #187e12;
/* rgb */ color: rgb(24, 126, 18);
/* oklch */ color: oklch(51.8% 0.165 142.2);
Tailwind
colors: {
  custom: {
    50: '#6aa45b',
    500: '#187e12',
    950: '#000000',
  },
}
SCSS
$custom: #187e12;
$custom-light: #6aa45b;
$custom-dark: #000000;
JSON
{
  "hex": "#187e12",
  "rgb": {
    "r": 24,
    "g": 126,
    "b": 18
  },
  "hsl": {
    "h": 116.667,
    "s": 75,
    "l": 28.235
  },
  "oklch": {
    "l": 0.51756,
    "c": 0.16501,
    "h": 142.2
  },
  "luminance": 0.1516
}

Semantic roles & 50–950 ramp

primary
#187E12
secondary
#AD38B4
accent
#36F2E7
background
#F6FAF5
surface
#ECF4E9
border
#C7CEC5
text
#080F04
muted
#7A7F79

Preview Lab

Preview with #187E12

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

Preview Lab → · Contrast checker → · Palette generator →

#187E12 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva