#187F42#187F42

#187F42 is a mid, vivid green. Relative luminance 0.158; OKLCH L 52.6% C 0.130 H 151.6°. Best body text is #FFFFFF at 5.06:1 contrast (WCAG AA passes).

Color values

HEX#187F42
RGBrgb(24, 127, 66)
HSLhsl(144, 68%, 30%)
HSVhsv(144, 81%, 50%)
CMYKcmyk(81.1%, 0%, 48%, 50.2%)
CIE-LABlab(46.66, -42.65, 25.25)
CIE-LCHlch(46.66, 49.56, 149.37°)
OKLaboklab(52.58% -0.1146 0.0619)
OKLCHoklch(52.58% 0.13 151.6)
XYZxyz(8.9486, 15.7652, 7.7246)
Luminance0.1577 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#187F42 #7F1855
analogous
#227F18 #187F42 #187F76
triadic
#187F42 #42187F #7F4218
tetradic
#187F42 #18227F #7F1855 #7F7618
square
#187F42 #18227F #7F1855 #7F7618
split-complementary
#187F42 #76187F #7F1822
monochromatic
#051A0D #0E4C27 #187F42 #22B25D #38D97A

Accessibility & contrast

On white

5.06
#187F42 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.15
#187F42 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #187F42
5.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##187F42#FFFFFF#000000##FFFFFF
##187F421.005.064.155.06
#FFFFFF5.061.0021.001.00
#0000004.1521.001.0021.00
##FFFFFF5.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7F743D
Deuteranopia (green-blind)
#746B46
Tritanopia (blue-blind)
#007D70
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #187f42;
/* rgb */ color: rgb(24, 127, 66);
/* oklch */ color: oklch(52.6% 0.130 151.6);
Tailwind
colors: {
  custom: {
    50: '#68a577',
    500: '#187f42',
    950: '#000000',
  },
}
SCSS
$custom: #187f42;
$custom-light: #68a577;
$custom-dark: #000000;
JSON
{
  "hex": "#187f42",
  "rgb": {
    "r": 24,
    "g": 127,
    "b": 66
  },
  "hsl": {
    "h": 144.466,
    "s": 68.212,
    "l": 29.608
  },
  "oklch": {
    "l": 0.52583,
    "c": 0.13022,
    "h": 151.6
  },
  "luminance": 0.15766
}

Semantic roles & 50–950 ramp

primary
#187F42
secondary
#B33F84
accent
#3DA4EB
background
#F6FAF7
surface
#ECF4ED
border
#C7CEC8
text
#070F09
muted
#7A7F7B

Preview Lab

Preview with #187F42

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

Preview Lab → · Contrast checker → · Palette generator →

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