#187F21#187F21

#187F21 is a mid, vivid green. Relative luminance 0.155; OKLCH L 52.1% C 0.158 H 143.9°. Best body text is #FFFFFF at 5.13:1 contrast (WCAG AA passes).

Color values

HEX#187F21
RGBrgb(24, 127, 33)
HSLhsl(125, 68%, 30%)
HSVhsv(125, 81%, 50%)
CMYKcmyk(81.1%, 0%, 74%, 50.2%)
CIE-LABlab(46.29, -47.19, 40.95)
CIE-LCHlch(46.29, 62.48, 139.05°)
OKLaboklab(52.15% -0.1277 0.0932)
OKLCHoklch(52.15% 0.158 143.9)
XYZxyz(8.2400, 15.4818, 3.9926)
Luminance0.1548 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#187F21 #7F1876
analogous
#427F18 #187F21 #187F55
triadic
#187F21 #21187F #7F2118
tetradic
#187F21 #18427F #7F1876 #7F5518
square
#187F21 #18427F #7F1876 #7F5518
split-complementary
#187F21 #55187F #7F1842
monochromatic
#051A07 #0E4C14 #187F21 #22B22E #38D946

Accessibility & contrast

On white

5.13
#187F21 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.10
#187F21 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #187F21
5.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##187F21#FFFFFF#000000##FFFFFF
##187F211.005.134.105.13
#FFFFFF5.131.0021.001.00
#0000004.1021.001.0021.00
##FFFFFF5.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#827211
Deuteranopia (green-blind)
#766B2B
Tritanopia (blue-blind)
#007B6C
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #187f21;
/* rgb */ color: rgb(24, 127, 33);
/* oklch */ color: oklch(52.1% 0.158 143.9);
Tailwind
colors: {
  custom: {
    50: '#69a562',
    500: '#187f21',
    950: '#000000',
  },
}
SCSS
$custom: #187f21;
$custom-light: #69a562;
$custom-dark: #000000;
JSON
{
  "hex": "#187f21",
  "rgb": {
    "r": 24,
    "g": 127,
    "b": 33
  },
  "hsl": {
    "h": 125.243,
    "s": 68.212,
    "l": 29.608
  },
  "oklch": {
    "l": 0.52148,
    "c": 0.15808,
    "h": 143.9
  },
  "luminance": 0.15483
}

Semantic roles & 50–950 ramp

primary
#187F21
secondary
#B33FA9
accent
#3DDCEB
background
#F6FAF6
surface
#ECF4EB
border
#C7CEC6
text
#070F05
muted
#7A7F7A

Preview Lab

Preview with #187F21

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

Preview Lab → · Contrast checker → · Palette generator →

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