#187F18#187F18

#187F18 is a mid, vivid green. Relative luminance 0.154; OKLCH L 52.1% C 0.163 H 142.8°. Best body text is #FFFFFF at 5.14:1 contrast (WCAG AA passes).

Color values

HEX#187F18
RGBrgb(24, 127, 24)
HSLhsl(120, 68%, 30%)
HSVhsv(120, 81%, 50%)
CMYKcmyk(81.1%, 0%, 81.1%, 50.2%)
CIE-LABlab(46.23, -47.92, 44.22)
CIE-LCHlch(46.23, 65.20, 137.30°)
OKLaboklab(52.08% -0.1301 0.0988)
OKLCHoklch(52.08% 0.163 142.8)
XYZxyz(8.1304, 15.4379, 3.4153)
Luminance0.1544 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#187F18 #7F187F
analogous
#4C7F18 #187F18 #187F4C
triadic
#187F18 #18187F #7F1818
tetradic
#187F18 #184C7F #7F187F #7F4C18
square
#187F18 #184C7F #7F187F #7F4C18
split-complementary
#187F18 #4C187F #7F184C
monochromatic
#051A05 #0E4C0E #187F18 #22B222 #38D938

Accessibility & contrast

On white

5.14
#187F18 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.09
#187F18 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #187F18
5.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##187F18#FFFFFF#000000##FFFFFF
##187F181.005.144.095.14
#FFFFFF5.141.0021.001.00
#0000004.0921.001.0021.00
##FFFFFF5.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#827200
Deuteranopia (green-blind)
#776B24
Tritanopia (blue-blind)
#007B6C
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #187f18;
/* rgb */ color: rgb(24, 127, 24);
/* oklch */ color: oklch(52.1% 0.163 142.8);
Tailwind
colors: {
  custom: {
    50: '#6aa55e',
    500: '#187f18',
    950: '#000000',
  },
}
SCSS
$custom: #187f18;
$custom-light: #6aa55e;
$custom-dark: #000000;
JSON
{
  "hex": "#187f18",
  "rgb": {
    "r": 24,
    "g": 127,
    "b": 24
  },
  "hsl": {
    "h": 120,
    "s": 68.212,
    "l": 29.608
  },
  "oklch": {
    "l": 0.5208,
    "c": 0.16333,
    "h": 142.8
  },
  "luminance": 0.15439
}

Semantic roles & 50–950 ramp

primary
#187F18
secondary
#B33FB3
accent
#3DEBEB
background
#F6FAF5
surface
#ECF4E9
border
#C7CEC5
text
#080F05
muted
#7A7F79

Preview Lab

Preview with #187F18

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

Preview Lab → · Contrast checker → · Palette generator →

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