#187F2F#187F2F

#187F2F is a mid, vivid green. Relative luminance 0.156; OKLCH L 52.3% C 0.148 H 146.3°. Best body text is #FFFFFF at 5.10:1 contrast (WCAG AA passes).

Color values

HEX#187F2F
RGBrgb(24, 127, 47)
HSLhsl(133, 68%, 30%)
HSVhsv(133, 81%, 50%)
CMYKcmyk(81.1%, 0%, 63%, 50.2%)
CIE-LABlab(46.41, -45.62, 34.82)
CIE-LCHlch(46.41, 57.39, 142.65°)
OKLaboklab(52.3% -0.1228 0.0819)
OKLCHoklch(52.3% 0.148 146.3)
XYZxyz(8.4785, 15.5772, 5.2486)
Luminance0.1558 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#187F2F #7F1868
analogous
#357F18 #187F2F #187F63
triadic
#187F2F #2F187F #7F2F18
tetradic
#187F2F #18357F #7F1868 #7F6318
square
#187F2F #18357F #7F1868 #7F6318
split-complementary
#187F2F #63187F #7F1835
monochromatic
#051A0A #0E4C1C #187F2F #22B242 #38D95C

Accessibility & contrast

On white

5.10
#187F2F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.12
#187F2F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #187F2F
5.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##187F2F#FFFFFF#000000##FFFFFF
##187F2F1.005.104.125.10
#FFFFFF5.101.0021.001.00
#0000004.1221.001.0021.00
##FFFFFF5.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#817326
Deuteranopia (green-blind)
#766B36
Tritanopia (blue-blind)
#007C6E
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #187f2f;
/* rgb */ color: rgb(24, 127, 47);
/* oklch */ color: oklch(52.3% 0.148 146.3);
Tailwind
colors: {
  custom: {
    50: '#68a56a',
    500: '#187f2f',
    950: '#000000',
  },
}
SCSS
$custom: #187f2f;
$custom-light: #68a56a;
$custom-dark: #000000;
JSON
{
  "hex": "#187f2f",
  "rgb": {
    "r": 24,
    "g": 127,
    "b": 47
  },
  "hsl": {
    "h": 133.398,
    "s": 68.212,
    "l": 29.608
  },
  "oklch": {
    "l": 0.52295,
    "c": 0.14762,
    "h": 146.3
  },
  "luminance": 0.15578
}

Semantic roles & 50–950 ramp

primary
#187F2F
secondary
#B33F99
accent
#3DC4EB
background
#F6FAF6
surface
#ECF4EB
border
#C7CEC6
text
#070F07
muted
#7A7F7A

Preview Lab

Preview with #187F2F

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

Preview Lab → · Contrast checker → · Palette generator →

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