#187A1F#187A1F

#187A1F is a mid, vivid green. Relative luminance 0.142; OKLCH L 50.7% C 0.153 H 143.7°. Best body text is #FFFFFF at 5.47:1 contrast (WCAG AA passes).

Color values

HEX#187A1F
RGBrgb(24, 122, 31)
HSLhsl(124, 67%, 29%)
HSVhsv(124, 80%, 48%)
CMYKcmyk(80.3%, 0%, 74.6%, 52.2%)
CIE-LABlab(44.53, -45.68, 39.94)
CIE-LCHlch(44.53, 60.68, 138.83°)
OKLaboklab(50.69% -0.1236 0.0909)
OKLCHoklch(50.69% 0.153 143.7)
XYZxyz(7.5830, 14.2113, 3.6395)
Luminance0.1421 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#187A1F #7A1873
analogous
#427A18 #187A1F #187A50
triadic
#187A1F #1F187A #7A1F18
tetradic
#187A1F #18427A #7A1873 #7A5018
square
#187A1F #18427A #7A1873 #7A5018
split-complementary
#187A1F #50187A #7A1842
monochromatic
#051A06 #0E4712 #187A1F #22AD2C #35D741

Accessibility & contrast

On white

5.47
#187A1F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.84
#187A1F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #187A1F
5.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##187A1F#FFFFFF#000000##FFFFFF
##187A1F1.005.473.845.47
#FFFFFF5.471.0021.001.00
#0000003.8421.001.0021.00
##FFFFFF5.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7D6E10
Deuteranopia (green-blind)
#726628
Tritanopia (blue-blind)
#007668
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #187a1f;
/* rgb */ color: rgb(24, 122, 31);
/* oklch */ color: oklch(50.7% 0.153 143.7);
Tailwind
colors: {
  custom: {
    50: '#68a161',
    500: '#187a1f',
    950: '#000000',
  },
}
SCSS
$custom: #187a1f;
$custom-light: #68a161;
$custom-dark: #000000;
JSON
{
  "hex": "#187a1f",
  "rgb": {
    "r": 24,
    "g": 122,
    "b": 31
  },
  "hsl": {
    "h": 124.286,
    "s": 67.123,
    "l": 28.627
  },
  "oklch": {
    "l": 0.50686,
    "c": 0.15346,
    "h": 143.7
  },
  "luminance": 0.14212
}

Semantic roles & 50–950 ramp

primary
#187A1F
secondary
#AF3FA7
accent
#3EDEEA
background
#F6FAF5
surface
#ECF3EA
border
#C7CDC6
text
#070F05
muted
#7A7F79

Preview Lab

Preview with #187A1F

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

Preview Lab → · Contrast checker → · Palette generator →

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