#187F1C#187F1C

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

Color values

HEX#187F1C
RGBrgb(24, 127, 28)
HSLhsl(122, 68%, 30%)
HSVhsv(122, 81%, 50%)
CMYKcmyk(81.1%, 0%, 78%, 50.2%)
CIE-LABlab(46.25, -47.62, 42.84)
CIE-LCHlch(46.25, 64.05, 138.02°)
OKLaboklab(52.11% -0.1291 0.0965)
OKLCHoklch(52.11% 0.161 143.2)
XYZxyz(8.1751, 15.4558, 3.6508)
Luminance0.1546 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#187F1C #7F187B
analogous
#487F18 #187F1C #187F50
triadic
#187F1C #1C187F #7F1C18
tetradic
#187F1C #18487F #7F187B #7F5018
square
#187F1C #18487F #7F187B #7F5018
split-complementary
#187F1C #50187F #7F1848
monochromatic
#051A06 #0E4C11 #187F1C #22B227 #38D93E

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##187F1C#FFFFFF#000000##FFFFFF
##187F1C1.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)
#827206
Deuteranopia (green-blind)
#776B27
Tritanopia (blue-blind)
#007B6C
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #187f1c;
/* rgb */ color: rgb(24, 127, 28);
/* oklch */ color: oklch(52.1% 0.161 143.2);
Tailwind
colors: {
  custom: {
    50: '#69a560',
    500: '#187f1c',
    950: '#000000',
  },
}
SCSS
$custom: #187f1c;
$custom-light: #69a560;
$custom-dark: #000000;
JSON
{
  "hex": "#187f1c",
  "rgb": {
    "r": 24,
    "g": 127,
    "b": 28
  },
  "hsl": {
    "h": 122.33,
    "s": 68.212,
    "l": 29.608
  },
  "oklch": {
    "l": 0.52108,
    "c": 0.16116,
    "h": 143.2
  },
  "luminance": 0.15457
}

Semantic roles & 50–950 ramp

primary
#187F1C
secondary
#B33FAF
accent
#3DE4EB
background
#F6FAF5
surface
#ECF4EA
border
#C7CEC6
text
#070F05
muted
#7A7F79

Preview Lab

Preview with #187F1C

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

Preview Lab → · Contrast checker → · Palette generator →

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