#187A1C#187A1C

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

Color values

HEX#187A1C
RGBrgb(24, 122, 28)
HSLhsl(122, 67%, 29%)
HSVhsv(122, 80%, 48%)
CMYKcmyk(80.3%, 0%, 77%, 52.2%)
CIE-LABlab(44.51, -45.94, 41.10)
CIE-LCHlch(44.51, 61.64, 138.18°)
OKLaboklab(50.66% -0.1245 0.0929)
OKLCHoklch(50.66% 0.155 143.3)
XYZxyz(7.5453, 14.1962, 3.4409)
Luminance0.1420 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#187A1C #7A1876
analogous
#457A18 #187A1C #187A4D
triadic
#187A1C #1C187A #7A1C18
tetradic
#187A1C #18457A #7A1876 #7A4D18
square
#187A1C #18457A #7A1876 #7A4D18
split-complementary
#187A1C #4D187A #7A1845
monochromatic
#051A06 #0E4710 #187A1C #22AD28 #35D73C

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##187A1C#FFFFFF#000000##FFFFFF
##187A1C1.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)
#7D6E09
Deuteranopia (green-blind)
#726626
Tritanopia (blue-blind)
#007668
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #187a1c;
/* rgb */ color: rgb(24, 122, 28);
/* oklch */ color: oklch(50.7% 0.155 143.3);
Tailwind
colors: {
  custom: {
    50: '#68a15f',
    500: '#187a1c',
    950: '#000000',
  },
}
SCSS
$custom: #187a1c;
$custom-light: #68a15f;
$custom-dark: #000000;
JSON
{
  "hex": "#187a1c",
  "rgb": {
    "r": 24,
    "g": 122,
    "b": 28
  },
  "hsl": {
    "h": 122.449,
    "s": 67.123,
    "l": 28.627
  },
  "oklch": {
    "l": 0.50661,
    "c": 0.15534,
    "h": 143.3
  },
  "luminance": 0.14197
}

Semantic roles & 50–950 ramp

primary
#187A1C
secondary
#AF3FAA
accent
#3EE3EA
background
#F6FAF5
surface
#ECF3EA
border
#C7CDC6
text
#070F05
muted
#7A7F79

Preview Lab

Preview with #187A1C

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

Preview Lab → · Contrast checker → · Palette generator →

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