#187212#187212

#187212 is a mid, vivid green. Relative luminance 0.123; OKLCH L 48.3% C 0.151 H 142.2°. Best body text is #FFFFFF at 6.08:1 contrast (WCAG AA passes).

Color values

HEX#187212
RGBrgb(24, 114, 18)
HSLhsl(116, 73%, 26%)
HSVhsv(116, 84%, 45%)
CMYKcmyk(78.9%, 0%, 84.2%, 55.3%)
CIE-LABlab(41.64, -43.97, 41.81)
CIE-LCHlch(41.64, 60.67, 136.44°)
OKLaboklab(48.26% -0.1196 0.0929)
OKLCHoklch(48.26% 0.151 142.2)
XYZxyz(6.5028, 12.2717, 2.5981)
Luminance0.1227 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#187212 #6C1272
analogous
#487212 #187212 #12723C
triadic
#187212 #121872 #721218
tetradic
#187212 #124872 #6C1272 #723C12
square
#187212 #124872 #6C1272 #723C12
split-complementary
#187212 #3C1272 #721248
monochromatic
#061A04 #0D3D0A #187212 #23A71A #2EDC23

Accessibility & contrast

On white

6.08
#187212 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.45
#187212 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #187212
6.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##187212#FFFFFF#000000##FFFFFF
##1872121.006.083.456.08
#FFFFFF6.081.0021.001.00
#0000003.4521.001.0021.00
##FFFFFF6.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#756600
Deuteranopia (green-blind)
#6B601E
Tritanopia (blue-blind)
#006E60
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #187212;
/* rgb */ color: rgb(24, 114, 18);
/* oklch */ color: oklch(48.3% 0.151 142.2);
Tailwind
colors: {
  custom: {
    50: '#679c59',
    500: '#187212',
    950: '#000000',
  },
}
SCSS
$custom: #187212;
$custom-light: #679c59;
$custom-dark: #000000;
JSON
{
  "hex": "#187212",
  "rgb": {
    "r": 24,
    "g": 114,
    "b": 18
  },
  "hsl": {
    "h": 116.25,
    "s": 72.727,
    "l": 25.882
  },
  "oklch": {
    "l": 0.48258,
    "c": 0.15147,
    "h": 142.2
  },
  "luminance": 0.12272
}

Semantic roles & 50–950 ramp

primary
#187212
secondary
#A237A9
accent
#38EFE4
background
#F6F9F5
surface
#EBF2E9
border
#C6CCC5
text
#070E04
muted
#7A7E79

Preview Lab

Preview with #187212

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

Preview Lab → · Contrast checker → · Palette generator →

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