#187F28#187F28

#187F28 is a mid, vivid green. Relative luminance 0.155; OKLCH L 52.2% C 0.153 H 145.0°. Best body text is #FFFFFF at 5.12:1 contrast (WCAG AA passes).

Color values

HEX#187F28
RGBrgb(24, 127, 40)
HSLhsl(129, 68%, 30%)
HSVhsv(129, 81%, 50%)
CMYKcmyk(81.1%, 0%, 68.5%, 50.2%)
CIE-LABlab(46.35, -46.47, 38.02)
CIE-LCHlch(46.35, 60.04, 140.71°)
OKLaboklab(52.22% -0.1254 0.088)
OKLCHoklch(52.22% 0.153 145)
XYZxyz(8.3485, 15.5251, 4.5637)
Luminance0.1553 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#187F28 #7F186F
analogous
#3C7F18 #187F28 #187F5B
triadic
#187F28 #28187F #7F2818
tetradic
#187F28 #183C7F #7F186F #7F5B18
square
#187F28 #183C7F #7F186F #7F5B18
split-complementary
#187F28 #5B187F #7F183C
monochromatic
#051A08 #0E4C18 #187F28 #22B238 #38D951

Accessibility & contrast

On white

5.12
#187F28 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.11
#187F28 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #187F28
5.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##187F28#FFFFFF#000000##FFFFFF
##187F281.005.124.115.12
#FFFFFF5.121.0021.001.00
#0000004.1121.001.0021.00
##FFFFFF5.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#81731D
Deuteranopia (green-blind)
#766B30
Tritanopia (blue-blind)
#007C6D
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #187f28;
/* rgb */ color: rgb(24, 127, 40);
/* oklch */ color: oklch(52.2% 0.153 145.0);
Tailwind
colors: {
  custom: {
    50: '#69a566',
    500: '#187f28',
    950: '#000000',
  },
}
SCSS
$custom: #187f28;
$custom-light: #69a566;
$custom-dark: #000000;
JSON
{
  "hex": "#187f28",
  "rgb": {
    "r": 24,
    "g": 127,
    "b": 40
  },
  "hsl": {
    "h": 129.32,
    "s": 68.212,
    "l": 29.608
  },
  "oklch": {
    "l": 0.52215,
    "c": 0.15317,
    "h": 145
  },
  "luminance": 0.15526
}

Semantic roles & 50–950 ramp

primary
#187F28
secondary
#B33FA1
accent
#3DD0EB
background
#F6FAF6
surface
#ECF4EB
border
#C7CEC6
text
#070F06
muted
#7A7F7A

Preview Lab

Preview with #187F28

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

Preview Lab → · Contrast checker → · Palette generator →

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