#187F1B#187F1B

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

Color values

HEX#187F1B
RGBrgb(24, 127, 27)
HSLhsl(122, 68%, 30%)
HSVhsv(122, 81%, 50%)
CMYKcmyk(81.1%, 0%, 78.7%, 50.2%)
CIE-LABlab(46.25, -47.70, 43.20)
CIE-LCHlch(46.25, 64.35, 137.84°)
OKLaboklab(52.1% -0.1293 0.0971)
OKLCHoklch(52.1% 0.162 143.1)
XYZxyz(8.1634, 15.4511, 3.5888)
Luminance0.1545 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#187F1B #7F187C
analogous
#487F18 #187F1B #187F4F
triadic
#187F1B #1B187F #7F1B18
tetradic
#187F1B #18487F #7F187C #7F4F18
square
#187F1B #18487F #7F187C #7F4F18
split-complementary
#187F1B #4F187F #7F1848
monochromatic
#051A05 #0E4C10 #187F1B #22B226 #38D93D

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##187F1B#FFFFFF#000000##FFFFFF
##187F1B1.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)
#827204
Deuteranopia (green-blind)
#776B26
Tritanopia (blue-blind)
#007B6C
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #187f1b;
/* rgb */ color: rgb(24, 127, 27);
/* oklch */ color: oklch(52.1% 0.162 143.1);
Tailwind
colors: {
  custom: {
    50: '#6aa55f',
    500: '#187f1b',
    950: '#000000',
  },
}
SCSS
$custom: #187f1b;
$custom-light: #6aa55f;
$custom-dark: #000000;
JSON
{
  "hex": "#187f1b",
  "rgb": {
    "r": 24,
    "g": 127,
    "b": 27
  },
  "hsl": {
    "h": 121.748,
    "s": 68.212,
    "l": 29.608
  },
  "oklch": {
    "l": 0.521,
    "c": 0.16173,
    "h": 143.1
  },
  "luminance": 0.15452
}

Semantic roles & 50–950 ramp

primary
#187F1B
secondary
#B33FB0
accent
#3DE6EB
background
#F6FAF5
surface
#ECF4EA
border
#C7CEC6
text
#080F05
muted
#7A7F79

Preview Lab

Preview with #187F1B

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

Preview Lab → · Contrast checker → · Palette generator →

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