#187B1F#187B1F

#187B1F is a mid, vivid green. Relative luminance 0.145; OKLCH L 51.0% C 0.155 H 143.7°. Best body text is #FFFFFF at 5.40:1 contrast (WCAG AA passes).

Color values

HEX#187B1F
RGBrgb(24, 123, 31)
HSLhsl(124, 67%, 29%)
HSVhsv(124, 80%, 48%)
CMYKcmyk(80.5%, 0%, 74.8%, 51.8%)
CIE-LABlab(44.88, -46.02, 40.30)
CIE-LCHlch(44.88, 61.17, 138.79°)
OKLaboklab(50.98% -0.1246 0.0916)
OKLCHoklch(50.98% 0.155 143.7)
XYZxyz(7.7065, 14.4581, 3.6806)
Luminance0.1446 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#187B1F #7B1874
analogous
#437B18 #187B1F #187B51
triadic
#187B1F #1F187B #7B1F18
tetradic
#187B1F #18437B #7B1874 #7B5118
square
#187B1F #18437B #7B1874 #7B5118
split-complementary
#187B1F #51187B #7B1843
monochromatic
#051A06 #0E4812 #187B1F #22AE2C #36D841

Accessibility & contrast

On white

5.40
#187B1F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.89
#187B1F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #187B1F
5.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##187B1F#FFFFFF#000000##FFFFFF
##187B1F1.005.403.895.40
#FFFFFF5.401.0021.001.00
#0000003.8921.001.0021.00
##FFFFFF5.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7E6F0F
Deuteranopia (green-blind)
#736728
Tritanopia (blue-blind)
#007769
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #187b1f;
/* rgb */ color: rgb(24, 123, 31);
/* oklch */ color: oklch(51.0% 0.155 143.7);
Tailwind
colors: {
  custom: {
    50: '#68a261',
    500: '#187b1f',
    950: '#000000',
  },
}
SCSS
$custom: #187b1f;
$custom-light: #68a261;
$custom-dark: #000000;
JSON
{
  "hex": "#187b1f",
  "rgb": {
    "r": 24,
    "g": 123,
    "b": 31
  },
  "hsl": {
    "h": 124.242,
    "s": 67.347,
    "l": 28.824
  },
  "oklch": {
    "l": 0.50976,
    "c": 0.15464,
    "h": 143.7
  },
  "luminance": 0.14459
}

Semantic roles & 50–950 ramp

primary
#187B1F
secondary
#B03FA8
accent
#3EDEEA
background
#F6FAF5
surface
#ECF4EA
border
#C7CEC6
text
#070F05
muted
#7A7F79

Preview Lab

Preview with #187B1F

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

Preview Lab → · Contrast checker → · Palette generator →

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