#1F802B#1F802B

#1F802B is a mid, vivid green. Relative luminance 0.159; OKLCH L 52.7% C 0.150 H 144.8°. Best body text is #FFFFFF at 5.02:1 contrast (WCAG AA passes).

Color values

HEX#1F802B
RGBrgb(31, 128, 43)
HSLhsl(127, 61%, 31%)
HSVhsv(127, 76%, 50%)
CMYKcmyk(75.8%, 0%, 66.4%, 49.8%)
CIE-LABlab(46.85, -45.39, 37.24)
CIE-LCHlch(46.85, 58.71, 140.63°)
OKLaboklab(52.68% -0.1226 0.0866)
OKLCHoklch(52.68% 0.15 144.8)
XYZxyz(8.7197, 15.9031, 4.8951)
Luminance0.1590 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F802B #801F74
analogous
#43801F #1F802B #1F805B
triadic
#1F802B #2B1F80 #802B1F
tetradic
#1F802B #1F4380 #801F74 #805B1F
square
#1F802B #1F4380 #801F74 #805B1F
split-complementary
#1F802B #5B1F80 #801F43
monochromatic
#071D0A #134F1A #1F802B #2BB13C #47D258

Accessibility & contrast

On white

5.02
#1F802B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.18
#1F802B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #1F802B
5.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F802B#FFFFFF#000000##FFFFFF
##1F802B1.005.024.185.02
#FFFFFF5.021.0021.001.00
#0000004.1821.001.0021.00
##FFFFFF5.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#827421
Deuteranopia (green-blind)
#776C33
Tritanopia (blue-blind)
#007D6E
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #1f802b;
/* rgb */ color: rgb(31, 128, 43);
/* oklch */ color: oklch(52.7% 0.150 144.8);
Tailwind
colors: {
  custom: {
    50: '#6ba668',
    500: '#1f802b',
    950: '#000000',
  },
}
SCSS
$custom: #1f802b;
$custom-light: #6ba668;
$custom-dark: #000000;
JSON
{
  "hex": "#1f802b",
  "rgb": {
    "r": 31,
    "g": 128,
    "b": 43
  },
  "hsl": {
    "h": 127.423,
    "s": 61.006,
    "l": 31.176
  },
  "oklch": {
    "l": 0.52677,
    "c": 0.15014,
    "h": 144.8
  },
  "luminance": 0.15904
}

Semantic roles & 50–950 ramp

primary
#1F802B
secondary
#B348A6
accent
#44D0E4
background
#F6FAF6
surface
#ECF4EB
border
#C7CEC6
text
#080F06
muted
#7A7F7A

Preview Lab

Preview with #1F802B

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

Preview Lab → · Contrast checker → · Palette generator →

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