#1F802A#1F802A

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

Color values

HEX#1F802A
RGBrgb(31, 128, 42)
HSLhsl(127, 61%, 31%)
HSVhsv(127, 76%, 50%)
CMYKcmyk(75.8%, 0%, 67.2%, 49.8%)
CIE-LABlab(46.84, -45.50, 37.69)
CIE-LCHlch(46.84, 59.08, 140.36°)
OKLaboklab(52.67% -0.123 0.0875)
OKLCHoklch(52.67% 0.151 144.6)
XYZxyz(8.7016, 15.8958, 4.7996)
Luminance0.1590 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F802A #801F75
analogous
#44801F #1F802A #1F805A
triadic
#1F802A #2A1F80 #802A1F
tetradic
#1F802A #1F4480 #801F75 #805A1F
square
#1F802A #1F4480 #801F75 #805A1F
split-complementary
#1F802A #5A1F80 #801F44
monochromatic
#071D0A #134F1A #1F802A #2BB13A #47D257

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##1F802A#FFFFFF#000000##FFFFFF
##1F802A1.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)
#82741F
Deuteranopia (green-blind)
#776C32
Tritanopia (blue-blind)
#007C6E
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #1f802a;
/* rgb */ color: rgb(31, 128, 42);
/* oklch */ color: oklch(52.7% 0.151 144.6);
Tailwind
colors: {
  custom: {
    50: '#6ba668',
    500: '#1f802a',
    950: '#000000',
  },
}
SCSS
$custom: #1f802a;
$custom-light: #6ba668;
$custom-dark: #000000;
JSON
{
  "hex": "#1f802a",
  "rgb": {
    "r": 31,
    "g": 128,
    "b": 42
  },
  "hsl": {
    "h": 126.804,
    "s": 61.006,
    "l": 31.176
  },
  "oklch": {
    "l": 0.52666,
    "c": 0.15092,
    "h": 144.6
  },
  "luminance": 0.15897
}

Semantic roles & 50–950 ramp

primary
#1F802A
secondary
#B348A7
accent
#44D2E4
background
#F6FAF6
surface
#ECF4EB
border
#C7CEC6
text
#080F06
muted
#7A7F7A

Preview Lab

Preview with #1F802A

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

Preview Lab → · Contrast checker → · Palette generator →

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