#1F9838#1F9838

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

Color values

HEX#1F9838
RGBrgb(31, 152, 56)
HSLhsl(132, 66%, 36%)
HSVhsv(132, 80%, 60%)
CMYKcmyk(79.6%, 0%, 63.2%, 40.4%)
CIE-LABlab(55.11, -52.18, 40.51)
CIE-LCHlch(55.11, 66.06, 142.17°)
OKLaboklab(59.57% -0.1405 0.0949)
OKLCHoklch(59.57% 0.17 146)
XYZxyz(12.5062, 23.0318, 7.5271)
Luminance0.2303 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F9838 #981F7F
analogous
#42981F #1F9838 #1F9874
triadic
#1F9838 #381F98 #98381F
tetradic
#1F9838 #1F4298 #981F7F #98741F
square
#1F9838 #1F4298 #981F7F #98741F
split-complementary
#1F9838 #741F98 #981F42
monochromatic
#0A3213 #156525 #1F9838 #29CB4B #55DC71

Accessibility & contrast

On white

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

On black

5.61
#1F9838 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #1F9838
5.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F9838#FFFFFF#000000##000000
##1F98381.003.755.615.61
#FFFFFF3.751.0021.0021.00
#0000005.6121.001.001.00
##0000005.6121.001.001.00

Color blindness preview

Protanopia (red-blind)
#9A8A2D
Deuteranopia (green-blind)
#8D8040
Tritanopia (blue-blind)
#009484
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #1f9838;
/* rgb */ color: rgb(31, 152, 56);
/* oklch */ color: oklch(59.6% 0.170 146.0);
Tailwind
colors: {
  custom: {
    50: '#71b772',
    500: '#1f9838',
    950: '#000000',
  },
}
SCSS
$custom: #1f9838;
$custom-light: #71b772;
$custom-dark: #000000;
JSON
{
  "hex": "#1f9838",
  "rgb": {
    "r": 31,
    "g": 152,
    "b": 56
  },
  "hsl": {
    "h": 132.397,
    "s": 66.12,
    "l": 35.882
  },
  "oklch": {
    "l": 0.59571,
    "c": 0.16958,
    "h": 146
  },
  "luminance": 0.23033
}

Semantic roles & 50–950 ramp

primary
#1F9838
secondary
#C053A9
accent
#3FC6E9
background
#F7FBF7
surface
#EDF6ED
border
#C8D0C8
text
#091108
muted
#7B807B

Preview Lab

Preview with #1F9838

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

Preview Lab → · Contrast checker → · Palette generator →

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