#1F8952#1F8952

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

Color values

HEX#1F8952
RGBrgb(31, 137, 82)
HSLhsl(149, 63%, 33%)
HSVhsv(149, 77%, 54%)
CMYKcmyk(77.4%, 0%, 40.1%, 46.3%)
CIE-LABlab(50.44, -42.48, 21.33)
CIE-LCHlch(50.44, 47.54, 153.34°)
OKLaboklab(55.83% -0.1146 0.0532)
OKLCHoklch(55.83% 0.126 155.1)
XYZxyz(11.0327, 18.7905, 11.0265)
Luminance0.1879 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F8952 #891F56
analogous
#21891F #1F8952 #1F8987
triadic
#1F8952 #521F89 #89521F
tetradic
#1F8952 #1F2189 #891F56 #89871F
square
#1F8952 #1F2189 #891F56 #89871F
split-complementary
#1F8952 #871F89 #891F21
monochromatic
#082516 #145734 #1F8952 #2ABB70 #4CD68F

Accessibility & contrast

On white

4.41
#1F8952 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##1F8952#FFFFFF#000000##000000
##1F89521.004.414.764.76
#FFFFFF4.411.0021.0021.00
#0000004.7621.001.001.00
##0000004.7621.001.001.00

Color blindness preview

Protanopia (red-blind)
#887D4E
Deuteranopia (green-blind)
#7C7456
Tritanopia (blue-blind)
#00877B
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #1f8952;
/* rgb */ color: rgb(31, 137, 82);
/* oklch */ color: oklch(55.8% 0.126 155.1);
Tailwind
colors: {
  custom: {
    50: '#6cac83',
    500: '#1f8952',
    950: '#000000',
  },
}
SCSS
$custom: #1f8952;
$custom-light: #6cac83;
$custom-dark: #000000;
JSON
{
  "hex": "#1f8952",
  "rgb": {
    "r": 31,
    "g": 137,
    "b": 82
  },
  "hsl": {
    "h": 148.868,
    "s": 63.095,
    "l": 32.941
  },
  "oklch": {
    "l": 0.55827,
    "c": 0.12634,
    "h": 155.1
  },
  "luminance": 0.18792
}

Semantic roles & 50–950 ramp

primary
#1F8952
secondary
#B94B84
accent
#4297E6
background
#F7FAF8
surface
#EDF4EF
border
#C8CECA
text
#08100A
muted
#7B7F7C

Preview Lab

Preview with #1F8952

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

Preview Lab → · Contrast checker → · Palette generator →

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