#1F8951#1F8951

#1F8951 is a mid, vivid green. Relative luminance 0.188; OKLCH L 55.8% C 0.127 H 154.7°. Best body text is #000000 at 4.76:1 contrast (WCAG AA passes).

Color values

HEX#1F8951
RGBrgb(31, 137, 81)
HSLhsl(148, 63%, 33%)
HSVhsv(148, 77%, 54%)
CMYKcmyk(77.4%, 0%, 40.9%, 46.3%)
CIE-LABlab(50.42, -42.68, 21.86)
CIE-LCHlch(50.42, 47.96, 152.88°)
OKLaboklab(55.81% -0.1151 0.0545)
OKLCHoklch(55.81% 0.127 154.7)
XYZxyz(10.9949, 18.7754, 10.8275)
Luminance0.1878 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F8951 #891F57
analogous
#22891F #1F8951 #1F8986
triadic
#1F8951 #511F89 #89511F
tetradic
#1F8951 #1F2289 #891F57 #89861F
square
#1F8951 #1F2289 #891F57 #89861F
split-complementary
#1F8951 #861F89 #891F22
monochromatic
#082516 #145733 #1F8951 #2ABB6F #4CD68D

Accessibility & contrast

On white

4.42
#1F8951 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.76
#1F8951 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #1F8951
4.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F8951#FFFFFF#000000##000000
##1F89511.004.424.764.76
#FFFFFF4.421.0021.0021.00
#0000004.7621.001.001.00
##0000004.7621.001.001.00

Color blindness preview

Protanopia (red-blind)
#897D4D
Deuteranopia (green-blind)
#7C7455
Tritanopia (blue-blind)
#00877B
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #1f8951;
/* rgb */ color: rgb(31, 137, 81);
/* oklch */ color: oklch(55.8% 0.127 154.7);
Tailwind
colors: {
  custom: {
    50: '#6cac82',
    500: '#1f8951',
    950: '#000000',
  },
}
SCSS
$custom: #1f8951;
$custom-light: #6cac82;
$custom-dark: #000000;
JSON
{
  "hex": "#1f8951",
  "rgb": {
    "r": 31,
    "g": 137,
    "b": 81
  },
  "hsl": {
    "h": 148.302,
    "s": 63.095,
    "l": 32.941
  },
  "oklch": {
    "l": 0.55806,
    "c": 0.12731,
    "h": 154.7
  },
  "luminance": 0.18777
}

Semantic roles & 50–950 ramp

primary
#1F8951
secondary
#B94B85
accent
#4299E6
background
#F7FAF8
surface
#EDF4EF
border
#C8CECA
text
#08100A
muted
#7B7F7C

Preview Lab

Preview with #1F8951

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

Preview Lab → · Contrast checker → · Palette generator →

#1F8951 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva