#1F9820#1F9820

#1F9820 is a mid, vivid green. Relative luminance 0.229; OKLCH L 59.4% C 0.185 H 142.9°. Best body text is #000000 at 5.57:1 contrast (WCAG AA passes).

Color values

HEX#1F9820
RGBrgb(31, 152, 32)
HSLhsl(120, 66%, 36%)
HSVhsv(120, 80%, 60%)
CMYKcmyk(79.6%, 0%, 78.9%, 40.4%)
CIE-LABlab(54.92, -54.48, 49.98)
CIE-LCHlch(54.92, 73.93, 137.46°)
OKLaboklab(59.36% -0.1478 0.1119)
OKLCHoklch(59.36% 0.185 142.9)
XYZxyz(12.0533, 22.8506, 5.1416)
Luminance0.2285 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F9820 #981F97
analogous
#5A981F #1F9820 #1F985C
triadic
#1F9820 #201F98 #98201F
tetradic
#1F9820 #1F5A98 #981F97 #985C1F
square
#1F9820 #1F5A98 #981F97 #985C1F
split-complementary
#1F9820 #5C1F98 #981F5A
monochromatic
#0A320B #156515 #1F9820 #29CB2B #55DC56

Accessibility & contrast

On white

3.77
#1F9820 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.57
#1F9820 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #1F9820
5.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F9820#FFFFFF#000000##000000
##1F98201.003.775.575.57
#FFFFFF3.771.0021.0021.00
#0000005.5721.001.001.00
##0000005.5721.001.001.00

Color blindness preview

Protanopia (red-blind)
#9B8900
Deuteranopia (green-blind)
#8E802E
Tritanopia (blue-blind)
#009382
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #1f9820;
/* rgb */ color: rgb(31, 152, 32);
/* oklch */ color: oklch(59.4% 0.185 142.9);
Tailwind
colors: {
  custom: {
    50: '#72b765',
    500: '#1f9820',
    950: '#000000',
  },
}
SCSS
$custom: #1f9820;
$custom-light: #72b765;
$custom-dark: #000000;
JSON
{
  "hex": "#1f9820",
  "rgb": {
    "r": 31,
    "g": 152,
    "b": 32
  },
  "hsl": {
    "h": 120.496,
    "s": 66.12,
    "l": 35.882
  },
  "oklch": {
    "l": 0.59356,
    "c": 0.18542,
    "h": 142.9
  },
  "luminance": 0.22852
}

Semantic roles & 50–950 ramp

primary
#1F9820
secondary
#C053BF
accent
#3FE8E9
background
#F7FBF6
surface
#EEF6EB
border
#C9D0C6
text
#091106
muted
#7B807A

Preview Lab

Preview with #1F9820

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

Preview Lab → · Contrast checker → · Palette generator →

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