#1F981E#1F981E

#1F981E is a mid, vivid green. Relative luminance 0.228; OKLCH L 59.3% C 0.186 H 142.7°. Best body text is #000000 at 5.57:1 contrast (WCAG AA passes).

Color values

HEX#1F981E
RGBrgb(31, 152, 30)
HSLhsl(120, 67%, 36%)
HSVhsv(120, 80%, 60%)
CMYKcmyk(79.6%, 0%, 80.3%, 40.4%)
CIE-LABlab(54.91, -54.61, 50.62)
CIE-LCHlch(54.91, 74.47, 137.17°)
OKLaboklab(59.34% -0.1483 0.113)
OKLCHoklch(59.34% 0.186 142.7)
XYZxyz(12.0269, 22.8401, 5.0028)
Luminance0.2284 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F981E #971E98
analogous
#5C981E #1F981E #1E985A
triadic
#1F981E #1E1F98 #981E1F
tetradic
#1F981E #1E5C98 #971E98 #985A1E
square
#1F981E #1E5C98 #971E98 #985A1E
split-complementary
#1F981E #5A1E98 #981E5C
monochromatic
#0A320A #156514 #1F981E #29CB28 #54DD53

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##1F981E#FFFFFF#000000##000000
##1F981E1.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)
#8E802D
Tritanopia (blue-blind)
#009381
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #1f981e;
/* rgb */ color: rgb(31, 152, 30);
/* oklch */ color: oklch(59.3% 0.186 142.7);
Tailwind
colors: {
  custom: {
    50: '#72b764',
    500: '#1f981e',
    950: '#000000',
  },
}
SCSS
$custom: #1f981e;
$custom-light: #72b764;
$custom-dark: #000000;
JSON
{
  "hex": "#1f981e",
  "rgb": {
    "r": 31,
    "g": 152,
    "b": 30
  },
  "hsl": {
    "h": 119.508,
    "s": 67.033,
    "l": 35.686
  },
  "oklch": {
    "l": 0.59343,
    "c": 0.18641,
    "h": 142.7
  },
  "luminance": 0.22842
}

Semantic roles & 50–950 ramp

primary
#1F981E
secondary
#BF51C0
accent
#3EEAE9
background
#F7FBF6
surface
#EEF6EB
border
#C9D0C6
text
#091106
muted
#7B807A

Preview Lab

Preview with #1F981E

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

Preview Lab → · Contrast checker → · Palette generator →

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