#187A21#187A21

#187A21 is a mid, vivid green. Relative luminance 0.142; OKLCH L 50.7% C 0.152 H 144.0°. Best body text is #FFFFFF at 5.46:1 contrast (WCAG AA passes).

Color values

HEX#187A21
RGBrgb(24, 122, 33)
HSLhsl(126, 67%, 29%)
HSVhsv(126, 80%, 48%)
CMYKcmyk(80.3%, 0%, 73%, 52.2%)
CIE-LABlab(44.55, -45.49, 39.14)
CIE-LCHlch(44.55, 60.01, 139.29°)
OKLaboklab(50.7% -0.123 0.0895)
OKLCHoklch(50.7% 0.152 144)
XYZxyz(7.6102, 14.2222, 3.7826)
Luminance0.1422 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#187A21 #7A1871
analogous
#407A18 #187A21 #187A52
triadic
#187A21 #21187A #7A2118
tetradic
#187A21 #18407A #7A1871 #7A5218
square
#187A21 #18407A #7A1871 #7A5218
split-complementary
#187A21 #52187A #7A1840
monochromatic
#051A07 #0E4713 #187A21 #22AD2F #35D744

Accessibility & contrast

On white

5.46
#187A21 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.84
#187A21 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #187A21
5.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##187A21#FFFFFF#000000##FFFFFF
##187A211.005.463.845.46
#FFFFFF5.461.0021.001.00
#0000003.8421.001.0021.00
##FFFFFF5.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7C6E13
Deuteranopia (green-blind)
#72662A
Tritanopia (blue-blind)
#007668
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #187a21;
/* rgb */ color: rgb(24, 122, 33);
/* oklch */ color: oklch(50.7% 0.152 144.0);
Tailwind
colors: {
  custom: {
    50: '#68a162',
    500: '#187a21',
    950: '#000000',
  },
}
SCSS
$custom: #187a21;
$custom-light: #68a162;
$custom-dark: #000000;
JSON
{
  "hex": "#187a21",
  "rgb": {
    "r": 24,
    "g": 122,
    "b": 33
  },
  "hsl": {
    "h": 125.51,
    "s": 67.123,
    "l": 28.627
  },
  "oklch": {
    "l": 0.50704,
    "c": 0.15212,
    "h": 144
  },
  "luminance": 0.14223
}

Semantic roles & 50–950 ramp

primary
#187A21
secondary
#AF3FA5
accent
#3EDAEA
background
#F6FAF6
surface
#ECF3EB
border
#C7CDC6
text
#070F05
muted
#7A7F7A

Preview Lab

Preview with #187A21

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

Preview Lab → · Contrast checker → · Palette generator →

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