#1F9839#1F9839

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

Color values

HEX#1F9839
RGBrgb(31, 152, 57)
HSLhsl(133, 66%, 36%)
HSVhsv(133, 80%, 60%)
CMYKcmyk(79.6%, 0%, 62.5%, 40.4%)
CIE-LABlab(55.12, -52.05, 40.06)
CIE-LCHlch(55.12, 65.68, 142.42°)
OKLaboklab(59.58% -0.1402 0.094)
OKLCHoklch(59.58% 0.169 146.1)
XYZxyz(12.5309, 23.0417, 7.6572)
Luminance0.2304 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F9839 #981F7E
analogous
#41981F #1F9839 #1F9875
triadic
#1F9839 #391F98 #98391F
tetradic
#1F9839 #1F4198 #981F7E #98751F
square
#1F9839 #1F4198 #981F7E #98751F
split-complementary
#1F9839 #751F98 #981F41
monochromatic
#0A3213 #156526 #1F9839 #29CB4C #55DC72

Accessibility & contrast

On white

3.74
#1F9839 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##1F9839#FFFFFF#000000##000000
##1F98391.003.745.615.61
#FFFFFF3.741.0021.0021.00
#0000005.6121.001.001.00
##0000005.6121.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1f9839;
/* rgb */ color: rgb(31, 152, 57);
/* oklch */ color: oklch(59.6% 0.169 146.1);
Tailwind
colors: {
  custom: {
    50: '#71b773',
    500: '#1f9839',
    950: '#000000',
  },
}
SCSS
$custom: #1f9839;
$custom-light: #71b773;
$custom-dark: #000000;
JSON
{
  "hex": "#1f9839",
  "rgb": {
    "r": 31,
    "g": 152,
    "b": 57
  },
  "hsl": {
    "h": 132.893,
    "s": 66.12,
    "l": 35.882
  },
  "oklch": {
    "l": 0.59583,
    "c": 0.16878,
    "h": 146.1
  },
  "luminance": 0.23043
}

Semantic roles & 50–950 ramp

primary
#1F9839
secondary
#C053A8
accent
#3FC4E9
background
#F7FBF7
surface
#EDF6ED
border
#C8D0C8
text
#091108
muted
#7B807B

Preview Lab

Preview with #1F9839

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

Preview Lab → · Contrast checker → · Palette generator →

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