#187A40#187A40

#187A40 is a mid, vivid green. Relative luminance 0.145; OKLCH L 51.1% C 0.125 H 151.8°. Best body text is #FFFFFF at 5.39:1 contrast (WCAG AA passes).

Color values

HEX#187A40
RGBrgb(24, 122, 64)
HSLhsl(144, 67%, 29%)
HSVhsv(144, 80%, 48%)
CMYKcmyk(80.3%, 0%, 47.5%, 52.2%)
CIE-LABlab(44.92, -41.09, 24.12)
CIE-LCHlch(44.92, 47.65, 149.59°)
OKLaboklab(51.13% -0.1104 0.0592)
OKLCHoklch(51.13% 0.125 151.8)
XYZxyz(8.2609, 14.4824, 7.2095)
Luminance0.1448 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#187A40 #7A1852
analogous
#217A18 #187A40 #187A71
triadic
#187A40 #40187A #7A4018
tetradic
#187A40 #18217A #7A1852 #7A7118
square
#187A40 #18217A #7A1852 #7A7118
split-complementary
#187A40 #71187A #7A1821
monochromatic
#051A0D #0E4725 #187A40 #22AD5B #35D777

Accessibility & contrast

On white

5.39
#187A40 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.90
#187A40 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #187A40
5.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##187A40#FFFFFF#000000##FFFFFF
##187A401.005.393.905.39
#FFFFFF5.391.0021.001.00
#0000003.9021.001.0021.00
##FFFFFF5.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7A6F3C
Deuteranopia (green-blind)
#6F6744
Tritanopia (blue-blind)
#00786C
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #187a40;
/* rgb */ color: rgb(24, 122, 64);
/* oklch */ color: oklch(51.1% 0.125 151.8);
Tailwind
colors: {
  custom: {
    50: '#67a176',
    500: '#187a40',
    950: '#000000',
  },
}
SCSS
$custom: #187a40;
$custom-light: #67a176;
$custom-dark: #000000;
JSON
{
  "hex": "#187a40",
  "rgb": {
    "r": 24,
    "g": 122,
    "b": 64
  },
  "hsl": {
    "h": 144.49,
    "s": 67.123,
    "l": 28.627
  },
  "oklch": {
    "l": 0.51127,
    "c": 0.12531,
    "h": 151.8
  },
  "luminance": 0.14483
}

Semantic roles & 50–950 ramp

primary
#187A40
secondary
#AF3F81
accent
#3EA4EA
background
#F6FAF7
surface
#EBF3ED
border
#C6CDC8
text
#070F08
muted
#7A7F7B

Preview Lab

Preview with #187A40

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

Preview Lab → · Contrast checker → · Palette generator →

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