#187B31#187B31

#187B31 is a mid, vivid green. Relative luminance 0.146; OKLCH L 51.2% C 0.141 H 147.1°. Best body text is #FFFFFF at 5.36:1 contrast (WCAG AA passes).

Color values

HEX#187B31
RGBrgb(24, 123, 49)
HSLhsl(135, 67%, 29%)
HSVhsv(135, 80%, 48%)
CMYKcmyk(80.5%, 0%, 60.2%, 51.8%)
CIE-LABlab(45.05, -43.92, 32.26)
CIE-LCHlch(45.05, 54.49, 143.71°)
OKLaboklab(51.17% -0.1181 0.0765)
OKLCHoklch(51.17% 0.141 147.1)
XYZxyz(8.0134, 14.5809, 5.2972)
Luminance0.1458 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#187B31 #7B1862
analogous
#307B18 #187B31 #187B63
triadic
#187B31 #31187B #7B3118
tetradic
#187B31 #18307B #7B1862 #7B6318
square
#187B31 #18307B #7B1862 #7B6318
split-complementary
#187B31 #63187B #7B1830
monochromatic
#051A0A #0E481D #187B31 #22AE45 #36D85F

Accessibility & contrast

On white

5.36
#187B31 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.92
#187B31 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #187B31
5.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##187B31#FFFFFF#000000##FFFFFF
##187B311.005.363.925.36
#FFFFFF5.361.0021.001.00
#0000003.9221.001.0021.00
##FFFFFF5.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7D6F2A
Deuteranopia (green-blind)
#726837
Tritanopia (blue-blind)
#00786B
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #187b31;
/* rgb */ color: rgb(24, 123, 49);
/* oklch */ color: oklch(51.2% 0.141 147.1);
Tailwind
colors: {
  custom: {
    50: '#67a26b',
    500: '#187b31',
    950: '#000000',
  },
}
SCSS
$custom: #187b31;
$custom-light: #67a26b;
$custom-dark: #000000;
JSON
{
  "hex": "#187b31",
  "rgb": {
    "r": 24,
    "g": 123,
    "b": 49
  },
  "hsl": {
    "h": 135.152,
    "s": 67.347,
    "l": 28.824
  },
  "oklch": {
    "l": 0.51174,
    "c": 0.14076,
    "h": 147.1
  },
  "luminance": 0.14582
}

Semantic roles & 50–950 ramp

primary
#187B31
secondary
#B03F93
accent
#3EBFEA
background
#F6FAF6
surface
#EBF4EB
border
#C6CEC6
text
#070F07
muted
#7A7F7A

Preview Lab

Preview with #187B31

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

Preview Lab → · Contrast checker → · Palette generator →

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