#187B42#187B42

#187B42 is a mid, vivid green. Relative luminance 0.148; OKLCH L 51.4% C 0.125 H 152.4°. Best body text is #FFFFFF at 5.32:1 contrast (WCAG AA passes).

Color values

HEX#187B42
RGBrgb(24, 123, 66)
HSLhsl(145, 67%, 29%)
HSVhsv(145, 80%, 48%)
CMYKcmyk(80.5%, 0%, 46.3%, 51.8%)
CIE-LABlab(45.29, -41.11, 23.49)
CIE-LCHlch(45.29, 47.34, 150.25°)
OKLaboklab(51.45% -0.1105 0.0578)
OKLCHoklch(51.45% 0.125 152.4)
XYZxyz(8.4423, 14.7524, 7.5558)
Luminance0.1475 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#187B42 #7B1851
analogous
#1F7B18 #187B42 #187B74
triadic
#187B42 #42187B #7B4218
tetradic
#187B42 #181F7B #7B1851 #7B7418
square
#187B42 #181F7B #7B1851 #7B7418
split-complementary
#187B42 #74187B #7B181F
monochromatic
#051A0E #0E4827 #187B42 #22AE5D #36D87A

Accessibility & contrast

On white

5.32
#187B42 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.95
#187B42 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #187B42
5.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##187B42#FFFFFF#000000##FFFFFF
##187B421.005.323.955.32
#FFFFFF5.321.0021.001.00
#0000003.9521.001.0021.00
##FFFFFF5.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7B703E
Deuteranopia (green-blind)
#706846
Tritanopia (blue-blind)
#00796D
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #187b42;
/* rgb */ color: rgb(24, 123, 66);
/* oklch */ color: oklch(51.4% 0.125 152.4);
Tailwind
colors: {
  custom: {
    50: '#67a277',
    500: '#187b42',
    950: '#000000',
  },
}
SCSS
$custom: #187b42;
$custom-light: #67a277;
$custom-dark: #000000;
JSON
{
  "hex": "#187b42",
  "rgb": {
    "r": 24,
    "g": 123,
    "b": 66
  },
  "hsl": {
    "h": 145.455,
    "s": 67.347,
    "l": 28.824
  },
  "oklch": {
    "l": 0.51449,
    "c": 0.12473,
    "h": 152.4
  },
  "luminance": 0.14753
}

Semantic roles & 50–950 ramp

primary
#187B42
secondary
#B03F80
accent
#3EA1EA
background
#F6FAF7
surface
#EBF4ED
border
#C6CEC8
text
#070F08
muted
#7A7F7B

Preview Lab

Preview with #187B42

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

Preview Lab → · Contrast checker → · Palette generator →

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