#187818#187818

#187818 is a mid, vivid green. Relative luminance 0.137; OKLCH L 50.1% C 0.155 H 142.8°. Best body text is #FFFFFF at 5.62:1 contrast (WCAG AA passes).

Color values

HEX#187818
RGBrgb(24, 120, 24)
HSLhsl(120, 67%, 28%)
HSVhsv(120, 80%, 47%)
CMYKcmyk(80%, 0%, 80%, 52.9%)
CIE-LABlab(43.79, -45.58, 41.85)
CIE-LCHlch(43.79, 61.88, 137.44°)
OKLaboklab(50.05% -0.1237 0.0939)
OKLCHoklch(50.05% 0.155 142.8)
XYZxyz(7.2576, 13.6922, 3.1243)
Luminance0.1369 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#187818 #781878
analogous
#487818 #187818 #187848
triadic
#187818 #181878 #781818
tetradic
#187818 #184878 #781878 #784818
square
#187818 #184878 #781878 #784818
split-complementary
#187818 #481878 #781848
monochromatic
#051A05 #0E450E #187818 #22AB22 #34D634

Accessibility & contrast

On white

5.62
#187818 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.74
#187818 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #187818
5.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##187818#FFFFFF#000000##FFFFFF
##1878181.005.623.745.62
#FFFFFF5.621.0021.001.00
#0000003.7421.001.0021.00
##FFFFFF5.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7B6C02
Deuteranopia (green-blind)
#706523
Tritanopia (blue-blind)
#007466
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #187818;
/* rgb */ color: rgb(24, 120, 24);
/* oklch */ color: oklch(50.1% 0.155 142.8);
Tailwind
colors: {
  custom: {
    50: '#68a05d',
    500: '#187818',
    950: '#000000',
  },
}
SCSS
$custom: #187818;
$custom-light: #68a05d;
$custom-dark: #000000;
JSON
{
  "hex": "#187818",
  "rgb": {
    "r": 24,
    "g": 120,
    "b": 24
  },
  "hsl": {
    "h": 120,
    "s": 66.667,
    "l": 28.235
  },
  "oklch": {
    "l": 0.50051,
    "c": 0.15531,
    "h": 142.8
  },
  "luminance": 0.13693
}

Semantic roles & 50–950 ramp

primary
#187818
secondary
#AD3FAD
accent
#3EEAEA
background
#F6F9F5
surface
#ECF2E9
border
#C7CCC5
text
#070F04
muted
#7A7E79

Preview Lab

Preview with #187818

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

Preview Lab → · Contrast checker → · Palette generator →

#187818 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva