#187A31#187A31

#187A31 is a mid, vivid green. Relative luminance 0.143; OKLCH L 50.9% C 0.139 H 147.2°. Best body text is #FFFFFF at 5.43:1 contrast (WCAG AA passes).

Color values

HEX#187A31
RGBrgb(24, 122, 49)
HSLhsl(135, 67%, 29%)
HSVhsv(135, 80%, 48%)
CMYKcmyk(80.3%, 0%, 59.8%, 52.2%)
CIE-LABlab(44.71, -43.56, 31.85)
CIE-LCHlch(44.71, 53.96, 143.83°)
OKLaboklab(50.89% -0.1172 0.0756)
OKLCHoklch(50.89% 0.139 147.2)
XYZxyz(7.8900, 14.3341, 5.2561)
Luminance0.1434 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#187A31 #7A1861
analogous
#307A18 #187A31 #187A62
triadic
#187A31 #31187A #7A3118
tetradic
#187A31 #18307A #7A1861 #7A6218
square
#187A31 #18307A #7A1861 #7A6218
split-complementary
#187A31 #62187A #7A1830
monochromatic
#051A0A #0E471C #187A31 #22AD46 #35D75E

Accessibility & contrast

On white

5.43
#187A31 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.87
#187A31 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #187A31
5.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##187A31#FFFFFF#000000##FFFFFF
##187A311.005.433.875.43
#FFFFFF5.431.0021.001.00
#0000003.8721.001.0021.00
##FFFFFF5.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7C6E2A
Deuteranopia (green-blind)
#716737
Tritanopia (blue-blind)
#00776A
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #187a31;
/* rgb */ color: rgb(24, 122, 49);
/* oklch */ color: oklch(50.9% 0.139 147.2);
Tailwind
colors: {
  custom: {
    50: '#67a16b',
    500: '#187a31',
    950: '#000000',
  },
}
SCSS
$custom: #187a31;
$custom-light: #67a16b;
$custom-dark: #000000;
JSON
{
  "hex": "#187a31",
  "rgb": {
    "r": 24,
    "g": 122,
    "b": 49
  },
  "hsl": {
    "h": 135.306,
    "s": 67.123,
    "l": 28.627
  },
  "oklch": {
    "l": 0.50886,
    "c": 0.13945,
    "h": 147.2
  },
  "luminance": 0.14335
}

Semantic roles & 50–950 ramp

primary
#187A31
secondary
#AF3F92
accent
#3EBEEA
background
#F6FAF6
surface
#EBF3EB
border
#C6CDC6
text
#070F07
muted
#7A7F7A

Preview Lab

Preview with #187A31

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

Preview Lab → · Contrast checker → · Palette generator →

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