#187E1B#187E1B

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

Color values

HEX#187E1B
RGBrgb(24, 126, 27)
HSLhsl(122, 68%, 29%)
HSVhsv(122, 81%, 49%)
CMYKcmyk(81%, 0%, 78.6%, 50.6%)
CIE-LABlab(45.90, -47.36, 42.85)
CIE-LCHlch(45.90, 63.87, 137.86°)
OKLaboklab(51.81% -0.1284 0.0964)
OKLCHoklch(51.81% 0.161 143.1)
XYZxyz(8.0349, 15.1941, 3.5460)
Luminance0.1520 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#187E1B #7E187B
analogous
#487E18 #187E1B #187E4E
triadic
#187E1B #1B187E #7E1B18
tetradic
#187E1B #18487E #7E187B #7E4E18
square
#187E1B #18487E #7E187B #7E4E18
split-complementary
#187E1B #4E187E #7E1848
monochromatic
#051A06 #0E4B10 #187E1B #22B126 #37D93C

Accessibility & contrast

On white

5.20
#187E1B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.04
#187E1B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #187E1B
5.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##187E1B#FFFFFF#000000##FFFFFF
##187E1B1.005.204.045.20
#FFFFFF5.201.0021.001.00
#0000004.0421.001.0021.00
##FFFFFF5.201.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #187e1b;
/* rgb */ color: rgb(24, 126, 27);
/* oklch */ color: oklch(51.8% 0.161 143.1);
Tailwind
colors: {
  custom: {
    50: '#69a45f',
    500: '#187e1b',
    950: '#000000',
  },
}
SCSS
$custom: #187e1b;
$custom-light: #69a45f;
$custom-dark: #000000;
JSON
{
  "hex": "#187e1b",
  "rgb": {
    "r": 24,
    "g": 126,
    "b": 27
  },
  "hsl": {
    "h": 121.765,
    "s": 68,
    "l": 29.412
  },
  "oklch": {
    "l": 0.51812,
    "c": 0.16057,
    "h": 143.1
  },
  "luminance": 0.15195
}

Semantic roles & 50–950 ramp

primary
#187E1B
secondary
#B23FAF
accent
#3DE6EB
background
#F6FAF5
surface
#ECF4EA
border
#C7CEC6
text
#070F05
muted
#7A7F79

Preview Lab

Preview with #187E1B

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

Preview Lab → · Contrast checker → · Palette generator →

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