#187D1B#187D1B

#187D1B is a mid, vivid green. Relative luminance 0.149; OKLCH L 51.5% C 0.159 H 143.1°. Best body text is #FFFFFF at 5.27:1 contrast (WCAG AA passes).

Color values

HEX#187D1B
RGBrgb(24, 125, 27)
HSLhsl(122, 68%, 29%)
HSVhsv(122, 81%, 49%)
CMYKcmyk(80.8%, 0%, 78.4%, 51%)
CIE-LABlab(45.55, -47.03, 42.51)
CIE-LCHlch(45.55, 63.40, 137.89°)
OKLaboklab(51.52% -0.1275 0.0957)
OKLCHoklch(51.52% 0.159 143.1)
XYZxyz(7.9076, 14.9396, 3.5036)
Luminance0.1494 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#187D1B #7D187A
analogous
#487D18 #187D1B #187D4E
triadic
#187D1B #1B187D #7D1B18
tetradic
#187D1B #18487D #7D187A #7D4E18
square
#187D1B #18487D #7D187A #7D4E18
split-complementary
#187D1B #4E187D #7D1848
monochromatic
#051A06 #0E4A10 #187D1B #22B026 #37D93C

Accessibility & contrast

On white

5.27
#187D1B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.99
#187D1B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #187D1B
5.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##187D1B#FFFFFF#000000##FFFFFF
##187D1B1.005.273.995.27
#FFFFFF5.271.0021.001.00
#0000003.9921.001.0021.00
##FFFFFF5.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#807005
Deuteranopia (green-blind)
#756926
Tritanopia (blue-blind)
#00796A
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #187d1b;
/* rgb */ color: rgb(24, 125, 27);
/* oklch */ color: oklch(51.5% 0.159 143.1);
Tailwind
colors: {
  custom: {
    50: '#69a45f',
    500: '#187d1b',
    950: '#000000',
  },
}
SCSS
$custom: #187d1b;
$custom-light: #69a45f;
$custom-dark: #000000;
JSON
{
  "hex": "#187d1b",
  "rgb": {
    "r": 24,
    "g": 125,
    "b": 27
  },
  "hsl": {
    "h": 121.782,
    "s": 67.785,
    "l": 29.216
  },
  "oklch": {
    "l": 0.51523,
    "c": 0.15942,
    "h": 143.1
  },
  "luminance": 0.14941
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #187D1B

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

Preview Lab → · Contrast checker → · Palette generator →

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