#187A1B#187A1B

#187A1B is a mid, vivid green. Relative luminance 0.142; OKLCH L 50.7% C 0.156 H 143.2°. Best body text is #FFFFFF at 5.47:1 contrast (WCAG AA passes).

Color values

HEX#187A1B
RGBrgb(24, 122, 27)
HSLhsl(122, 67%, 29%)
HSVhsv(122, 80%, 48%)
CMYKcmyk(80.3%, 0%, 77.9%, 52.2%)
CIE-LABlab(44.51, -46.02, 41.47)
CIE-LCHlch(44.51, 61.95, 137.98°)
OKLaboklab(50.65% -0.1248 0.0935)
OKLCHoklch(50.65% 0.156 143.2)
XYZxyz(7.5336, 14.1915, 3.3789)
Luminance0.1419 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#187A1B #7A1877
analogous
#467A18 #187A1B #187A4C
triadic
#187A1B #1B187A #7A1B18
tetradic
#187A1B #18467A #7A1877 #7A4C18
square
#187A1B #18467A #7A1877 #7A4C18
split-complementary
#187A1B #4C187A #7A1846
monochromatic
#051A06 #0E4710 #187A1B #22AD26 #35D73A

Accessibility & contrast

On white

5.47
#187A1B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.84
#187A1B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #187A1B
5.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##187A1B#FFFFFF#000000##FFFFFF
##187A1B1.005.473.845.47
#FFFFFF5.471.0021.001.00
#0000003.8421.001.0021.00
##FFFFFF5.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7D6E07
Deuteranopia (green-blind)
#726625
Tritanopia (blue-blind)
#007668
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #187a1b;
/* rgb */ color: rgb(24, 122, 27);
/* oklch */ color: oklch(50.7% 0.156 143.2);
Tailwind
colors: {
  custom: {
    50: '#68a15f',
    500: '#187a1b',
    950: '#000000',
  },
}
SCSS
$custom: #187a1b;
$custom-light: #68a15f;
$custom-dark: #000000;
JSON
{
  "hex": "#187a1b",
  "rgb": {
    "r": 24,
    "g": 122,
    "b": 27
  },
  "hsl": {
    "h": 121.837,
    "s": 67.123,
    "l": 28.627
  },
  "oklch": {
    "l": 0.50654,
    "c": 0.15593,
    "h": 143.2
  },
  "luminance": 0.14192
}

Semantic roles & 50–950 ramp

primary
#187A1B
secondary
#AF3FAB
accent
#3EE5EA
background
#F6FAF5
surface
#ECF3E9
border
#C7CDC5
text
#070F05
muted
#7A7F79

Preview Lab

Preview with #187A1B

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

Preview Lab → · Contrast checker → · Palette generator →

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