#187A42#187A42

#187A42 is a mid, vivid green. Relative luminance 0.145; OKLCH L 51.2% C 0.123 H 152.6°. Best body text is #FFFFFF at 5.38:1 contrast (WCAG AA passes).

Color values

HEX#187A42
RGBrgb(24, 122, 66)
HSLhsl(146, 67%, 29%)
HSVhsv(146, 80%, 48%)
CMYKcmyk(80.3%, 0%, 45.9%, 52.2%)
CIE-LABlab(44.95, -40.72, 23.05)
CIE-LCHlch(44.95, 46.79, 150.49°)
OKLaboklab(51.17% -0.1095 0.0568)
OKLCHoklch(51.17% 0.123 152.6)
XYZxyz(8.3188, 14.5056, 7.5146)
Luminance0.1451 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#187A42 #7A1850
analogous
#1F7A18 #187A42 #187A73
triadic
#187A42 #42187A #7A4218
tetradic
#187A42 #181F7A #7A1850 #7A7318
square
#187A42 #181F7A #7A1850 #7A7318
split-complementary
#187A42 #73187A #7A181F
monochromatic
#051A0E #0E4726 #187A42 #22AD5E #35D77B

Accessibility & contrast

On white

5.38
#187A42 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #187A42
5.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##187A42#FFFFFF#000000##FFFFFF
##187A421.005.383.905.38
#FFFFFF5.381.0021.001.00
#0000003.9021.001.0021.00
##FFFFFF5.381.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #187a42;
/* rgb */ color: rgb(24, 122, 66);
/* oklch */ color: oklch(51.2% 0.123 152.6);
Tailwind
colors: {
  custom: {
    50: '#66a177',
    500: '#187a42',
    950: '#000000',
  },
}
SCSS
$custom: #187a42;
$custom-light: #66a177;
$custom-dark: #000000;
JSON
{
  "hex": "#187a42",
  "rgb": {
    "r": 24,
    "g": 122,
    "b": 66
  },
  "hsl": {
    "h": 145.714,
    "s": 67.123,
    "l": 28.627
  },
  "oklch": {
    "l": 0.51165,
    "c": 0.12334,
    "h": 152.6
  },
  "luminance": 0.14507
}

Semantic roles & 50–950 ramp

primary
#187A42
secondary
#AF3F7F
accent
#3EA0EA
background
#F6FAF7
surface
#EBF3ED
border
#C6CDC8
text
#070F08
muted
#7A7F7B

Preview Lab

Preview with #187A42

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

Preview Lab → · Contrast checker → · Palette generator →

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