#187B18#187B18

#187B18 is a mid, vivid green. Relative luminance 0.144; OKLCH L 50.9% C 0.159 H 142.8°. Best body text is #FFFFFF at 5.41:1 contrast (WCAG AA passes).

Color values

HEX#187B18
RGBrgb(24, 123, 24)
HSLhsl(120, 67%, 29%)
HSVhsv(120, 80%, 48%)
CMYKcmyk(80.5%, 0%, 80.5%, 51.8%)
CIE-LABlab(44.84, -46.59, 42.87)
CIE-LCHlch(44.84, 63.32, 137.38°)
OKLaboklab(50.92% -0.1265 0.096)
OKLCHoklch(50.92% 0.159 142.8)
XYZxyz(7.6240, 14.4252, 3.2465)
Luminance0.1443 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#187B18 #7B187B
analogous
#4A7B18 #187B18 #187B4A
triadic
#187B18 #18187B #7B1818
tetradic
#187B18 #184A7B #7B187B #7B4A18
square
#187B18 #184A7B #7B187B #7B4A18
split-complementary
#187B18 #4A187B #7B184A
monochromatic
#051A05 #0E480E #187B18 #22AE22 #36D836

Accessibility & contrast

On white

5.41
#187B18 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.89
#187B18 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #187B18
5.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##187B18#FFFFFF#000000##FFFFFF
##187B181.005.413.895.41
#FFFFFF5.411.0021.001.00
#0000003.8921.001.0021.00
##FFFFFF5.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7E6F00
Deuteranopia (green-blind)
#736724
Tritanopia (blue-blind)
#007768
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #187b18;
/* rgb */ color: rgb(24, 123, 24);
/* oklch */ color: oklch(50.9% 0.159 142.8);
Tailwind
colors: {
  custom: {
    50: '#69a25d',
    500: '#187b18',
    950: '#000000',
  },
}
SCSS
$custom: #187b18;
$custom-light: #69a25d;
$custom-dark: #000000;
JSON
{
  "hex": "#187b18",
  "rgb": {
    "r": 24,
    "g": 123,
    "b": 24
  },
  "hsl": {
    "h": 120,
    "s": 67.347,
    "l": 28.824
  },
  "oklch": {
    "l": 0.50922,
    "c": 0.15877,
    "h": 142.8
  },
  "luminance": 0.14426
}

Semantic roles & 50–950 ramp

primary
#187B18
secondary
#B03FB0
accent
#3EEAEA
background
#F6FAF5
surface
#ECF4E9
border
#C7CEC5
text
#070F05
muted
#7A7F79

Preview Lab

Preview with #187B18

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

Preview Lab → · Contrast checker → · Palette generator →

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