#187F1A#187F1A

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

Color values

HEX#187F1A
RGBrgb(24, 127, 26)
HSLhsl(121, 68%, 30%)
HSVhsv(121, 81%, 50%)
CMYKcmyk(81.1%, 0%, 79.5%, 50.2%)
CIE-LABlab(46.24, -47.77, 43.54)
CIE-LCHlch(46.24, 64.64, 137.65°)
OKLaboklab(52.09% -0.1296 0.0977)
OKLCHoklch(52.09% 0.162 143)
XYZxyz(8.1520, 15.4465, 3.5289)
Luminance0.1545 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#187F1A #7F187D
analogous
#4A7F18 #187F1A #187F4E
triadic
#187F1A #1A187F #7F1A18
tetradic
#187F1A #184A7F #7F187D #7F4E18
square
#187F1A #184A7F #7F187D #7F4E18
split-complementary
#187F1A #4E187F #7F184A
monochromatic
#051A05 #0E4C0F #187F1A #22B225 #38D93B

Accessibility & contrast

On white

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

On black

4.09
#187F1A on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##187F1A#FFFFFF#000000##FFFFFF
##187F1A1.005.134.095.13
#FFFFFF5.131.0021.001.00
#0000004.0921.001.0021.00
##FFFFFF5.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#827202
Deuteranopia (green-blind)
#776B26
Tritanopia (blue-blind)
#007B6C
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #187f1a;
/* rgb */ color: rgb(24, 127, 26);
/* oklch */ color: oklch(52.1% 0.162 143.0);
Tailwind
colors: {
  custom: {
    50: '#6aa55f',
    500: '#187f1a',
    950: '#000000',
  },
}
SCSS
$custom: #187f1a;
$custom-light: #6aa55f;
$custom-dark: #000000;
JSON
{
  "hex": "#187f1a",
  "rgb": {
    "r": 24,
    "g": 127,
    "b": 26
  },
  "hsl": {
    "h": 121.165,
    "s": 68.212,
    "l": 29.608
  },
  "oklch": {
    "l": 0.52093,
    "c": 0.16228,
    "h": 143
  },
  "luminance": 0.15448
}

Semantic roles & 50–950 ramp

primary
#187F1A
secondary
#B33FB1
accent
#3DE8EB
background
#F6FAF5
surface
#ECF4EA
border
#C7CEC6
text
#080F05
muted
#7A7F79

Preview Lab

Preview with #187F1A

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

Preview Lab → · Contrast checker → · Palette generator →

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