#1F9837#1F9837

#1F9837 is a mid, vivid green. Relative luminance 0.230; OKLCH L 59.6% C 0.170 H 145.8°. Best body text is #000000 at 5.60:1 contrast (WCAG AA passes).

Color values

HEX#1F9837
RGBrgb(31, 152, 55)
HSLhsl(132, 66%, 36%)
HSVhsv(132, 80%, 60%)
CMYKcmyk(79.6%, 0%, 63.8%, 40.4%)
CIE-LABlab(55.10, -52.30, 40.96)
CIE-LCHlch(55.10, 66.43, 141.93°)
OKLaboklab(59.56% -0.1409 0.0958)
OKLCHoklch(59.56% 0.17 145.8)
XYZxyz(12.4820, 23.0221, 7.3996)
Luminance0.2302 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F9837 #981F80
analogous
#43981F #1F9837 #1F9873
triadic
#1F9837 #371F98 #98371F
tetradic
#1F9837 #1F4398 #981F80 #98731F
square
#1F9837 #1F4398 #981F80 #98731F
split-complementary
#1F9837 #731F98 #981F43
monochromatic
#0A3212 #156525 #1F9837 #29CB49 #55DC70

Accessibility & contrast

On white

3.75
#1F9837 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.60
#1F9837 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #1F9837
5.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F9837#FFFFFF#000000##000000
##1F98371.003.755.605.60
#FFFFFF3.751.0021.0021.00
#0000005.6021.001.001.00
##0000005.6021.001.001.00

Color blindness preview

Protanopia (red-blind)
#9A8A2C
Deuteranopia (green-blind)
#8D803F
Tritanopia (blue-blind)
#009483
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #1f9837;
/* rgb */ color: rgb(31, 152, 55);
/* oklch */ color: oklch(59.6% 0.170 145.8);
Tailwind
colors: {
  custom: {
    50: '#71b772',
    500: '#1f9837',
    950: '#000000',
  },
}
SCSS
$custom: #1f9837;
$custom-light: #71b772;
$custom-dark: #000000;
JSON
{
  "hex": "#1f9837",
  "rgb": {
    "r": 31,
    "g": 152,
    "b": 55
  },
  "hsl": {
    "h": 131.901,
    "s": 66.12,
    "l": 35.882
  },
  "oklch": {
    "l": 0.5956,
    "c": 0.17037,
    "h": 145.8
  },
  "luminance": 0.23024
}

Semantic roles & 50–950 ramp

primary
#1F9837
secondary
#C053AA
accent
#3FC7E9
background
#F7FBF7
surface
#EDF6ED
border
#C8D0C8
text
#091108
muted
#7B807B

Preview Lab

Preview with #1F9837

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

Preview Lab → · Contrast checker → · Palette generator →

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