#187D1F#187D1F

#187D1F is a mid, vivid green. Relative luminance 0.150; OKLCH L 51.6% C 0.157 H 143.6°. Best body text is #FFFFFF at 5.26:1 contrast (WCAG AA passes).

Color values

HEX#187D1F
RGBrgb(24, 125, 31)
HSLhsl(124, 68%, 29%)
HSVhsv(124, 81%, 49%)
CMYKcmyk(80.8%, 0%, 75.2%, 51%)
CIE-LABlab(45.58, -46.69, 41.02)
CIE-LCHlch(45.58, 62.15, 138.70°)
OKLaboklab(51.55% -0.1264 0.0931)
OKLCHoklch(51.55% 0.157 143.6)
XYZxyz(7.9571, 14.9594, 3.7641)
Luminance0.1496 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#187D1F #7D1876
analogous
#447D18 #187D1F #187D52
triadic
#187D1F #1F187D #7D1F18
tetradic
#187D1F #18447D #7D1876 #7D5218
square
#187D1F #18447D #7D1876 #7D5218
split-complementary
#187D1F #52187D #7D1844
monochromatic
#051A06 #0E4A12 #187D1F #22B02C #37D942

Accessibility & contrast

On white

5.26
#187D1F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #187D1F
5.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##187D1F#FFFFFF#000000##FFFFFF
##187D1F1.005.263.995.26
#FFFFFF5.261.0021.001.00
#0000003.9921.001.0021.00
##FFFFFF5.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#80710E
Deuteranopia (green-blind)
#756929
Tritanopia (blue-blind)
#00796B
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #187d1f;
/* rgb */ color: rgb(24, 125, 31);
/* oklch */ color: oklch(51.6% 0.157 143.6);
Tailwind
colors: {
  custom: {
    50: '#69a461',
    500: '#187d1f',
    950: '#000000',
  },
}
SCSS
$custom: #187d1f;
$custom-light: #69a461;
$custom-dark: #000000;
JSON
{
  "hex": "#187d1f",
  "rgb": {
    "r": 24,
    "g": 125,
    "b": 31
  },
  "hsl": {
    "h": 124.158,
    "s": 67.785,
    "l": 29.216
  },
  "oklch": {
    "l": 0.51554,
    "c": 0.15701,
    "h": 143.6
  },
  "luminance": 0.1496
}

Semantic roles & 50–950 ramp

primary
#187D1F
secondary
#B23FAA
accent
#3DDFEB
background
#F6FAF5
surface
#ECF4EA
border
#C7CEC6
text
#070F05
muted
#7A7F79

Preview Lab

Preview with #187D1F

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

Preview Lab → · Contrast checker → · Palette generator →

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