#187D31#187D31

#187D31 is a mid, vivid green. Relative luminance 0.151; OKLCH L 51.7% C 0.143 H 146.9°. Best body text is #FFFFFF at 5.23:1 contrast (WCAG AA passes).

Color values

HEX#187D31
RGBrgb(24, 125, 49)
HSLhsl(135, 68%, 29%)
HSVhsv(135, 81%, 49%)
CMYKcmyk(80.8%, 0%, 60.8%, 51%)
CIE-LABlab(45.75, -44.64, 33.07)
CIE-LCHlch(45.75, 55.55, 143.47°)
OKLaboklab(51.75% -0.1201 0.0783)
OKLCHoklch(51.75% 0.143 146.9)
XYZxyz(8.2641, 15.0822, 5.3807)
Luminance0.1508 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#187D31 #7D1864
analogous
#327D18 #187D31 #187D64
triadic
#187D31 #31187D #7D3118
tetradic
#187D31 #18327D #7D1864 #7D6418
square
#187D31 #18327D #7D1864 #7D6418
split-complementary
#187D31 #64187D #7D1832
monochromatic
#051A0A #0E4A1D #187D31 #22B045 #37D95F

Accessibility & contrast

On white

5.23
#187D31 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.02
#187D31 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #187D31
5.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##187D31#FFFFFF#000000##FFFFFF
##187D311.005.234.025.23
#FFFFFF5.231.0021.001.00
#0000004.0221.001.0021.00
##FFFFFF5.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7F7129
Deuteranopia (green-blind)
#736937
Tritanopia (blue-blind)
#007A6C
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #187d31;
/* rgb */ color: rgb(24, 125, 49);
/* oklch */ color: oklch(51.7% 0.143 146.9);
Tailwind
colors: {
  custom: {
    50: '#68a46c',
    500: '#187d31',
    950: '#000000',
  },
}
SCSS
$custom: #187d31;
$custom-light: #68a46c;
$custom-dark: #000000;
JSON
{
  "hex": "#187d31",
  "rgb": {
    "r": 24,
    "g": 125,
    "b": 49
  },
  "hsl": {
    "h": 134.851,
    "s": 67.785,
    "l": 29.216
  },
  "oklch": {
    "l": 0.51748,
    "c": 0.14335,
    "h": 146.9
  },
  "luminance": 0.15083
}

Semantic roles & 50–950 ramp

primary
#187D31
secondary
#B23F95
accent
#3DC0EB
background
#F6FAF6
surface
#ECF4EB
border
#C7CEC6
text
#070F07
muted
#7A7F7A

Preview Lab

Preview with #187D31

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

Preview Lab → · Contrast checker → · Palette generator →

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