#187D18#187D18

#187D18 is a mid, vivid green. Relative luminance 0.149; OKLCH L 51.5% C 0.161 H 142.8°. Best body text is #FFFFFF at 5.27:1 contrast (WCAG AA passes).

Color values

HEX#187D18
RGBrgb(24, 125, 24)
HSLhsl(120, 68%, 29%)
HSVhsv(120, 81%, 49%)
CMYKcmyk(80.8%, 0%, 80.8%, 51%)
CIE-LABlab(45.53, -47.26, 43.55)
CIE-LCHlch(45.53, 64.26, 137.34°)
OKLaboklab(51.5% -0.1283 0.0974)
OKLCHoklch(51.5% 0.161 142.8)
XYZxyz(7.8747, 14.9264, 3.3300)
Luminance0.1493 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#187D18 #7D187D
analogous
#4B7D18 #187D18 #187D4B
triadic
#187D18 #18187D #7D1818
tetradic
#187D18 #184B7D #7D187D #7D4B18
square
#187D18 #184B7D #7D187D #7D4B18
split-complementary
#187D18 #4B187D #7D184B
monochromatic
#051A05 #0E4A0E #187D18 #22B022 #37D937

Accessibility & contrast

On white

5.27
#187D18 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.99
#187D18 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #187D18
5.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##187D18#FFFFFF#000000##FFFFFF
##187D181.005.273.995.27
#FFFFFF5.271.0021.001.00
#0000003.9921.001.0021.00
##FFFFFF5.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#807000
Deuteranopia (green-blind)
#756924
Tritanopia (blue-blind)
#00796A
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #187d18;
/* rgb */ color: rgb(24, 125, 24);
/* oklch */ color: oklch(51.5% 0.161 142.8);
Tailwind
colors: {
  custom: {
    50: '#69a45e',
    500: '#187d18',
    950: '#000000',
  },
}
SCSS
$custom: #187d18;
$custom-light: #69a45e;
$custom-dark: #000000;
JSON
{
  "hex": "#187d18",
  "rgb": {
    "r": 24,
    "g": 125,
    "b": 24
  },
  "hsl": {
    "h": 120,
    "s": 67.785,
    "l": 29.216
  },
  "oklch": {
    "l": 0.51502,
    "c": 0.16106,
    "h": 142.8
  },
  "luminance": 0.14927
}

Semantic roles & 50–950 ramp

primary
#187D18
secondary
#B23FB2
accent
#3DEBEB
background
#F6FAF5
surface
#ECF4E9
border
#C7CEC5
text
#070F05
muted
#7A7F79

Preview Lab

Preview with #187D18

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

Preview Lab → · Contrast checker → · Palette generator →

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