#187F1F#187F1F

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

Color values

HEX#187F1F
RGBrgb(24, 127, 31)
HSLhsl(124, 68%, 30%)
HSVhsv(124, 81%, 50%)
CMYKcmyk(81.1%, 0%, 75.6%, 50.2%)
CIE-LABlab(46.27, -47.37, 41.73)
CIE-LCHlch(46.27, 63.12, 138.62°)
OKLaboklab(52.13% -0.1282 0.0946)
OKLCHoklch(52.13% 0.159 143.6)
XYZxyz(8.2128, 15.4709, 3.8494)
Luminance0.1547 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#187F1F #7F1878
analogous
#447F18 #187F1F #187F53
triadic
#187F1F #1F187F #7F1F18
tetradic
#187F1F #18447F #7F1878 #7F5318
square
#187F1F #18447F #7F1878 #7F5318
split-complementary
#187F1F #53187F #7F1844
monochromatic
#051A06 #0E4C12 #187F1F #22B22C #38D943

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##187F1F#FFFFFF#000000##FFFFFF
##187F1F1.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)
#82720D
Deuteranopia (green-blind)
#776B29
Tritanopia (blue-blind)
#007B6C
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #187f1f;
/* rgb */ color: rgb(24, 127, 31);
/* oklch */ color: oklch(52.1% 0.159 143.6);
Tailwind
colors: {
  custom: {
    50: '#69a561',
    500: '#187f1f',
    950: '#000000',
  },
}
SCSS
$custom: #187f1f;
$custom-light: #69a561;
$custom-dark: #000000;
JSON
{
  "hex": "#187f1f",
  "rgb": {
    "r": 24,
    "g": 127,
    "b": 31
  },
  "hsl": {
    "h": 124.078,
    "s": 68.212,
    "l": 29.608
  },
  "oklch": {
    "l": 0.52131,
    "c": 0.15936,
    "h": 143.6
  },
  "luminance": 0.15472
}

Semantic roles & 50–950 ramp

primary
#187F1F
secondary
#B33FAB
accent
#3DDFEB
background
#F6FAF6
surface
#ECF4EB
border
#C7CEC6
text
#070F05
muted
#7A7F7A

Preview Lab

Preview with #187F1F

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

Preview Lab → · Contrast checker → · Palette generator →

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