#1F802E#1F802E

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

Color values

HEX#1F802E
RGBrgb(31, 128, 46)
HSLhsl(129, 61%, 31%)
HSVhsv(129, 76%, 50%)
CMYKcmyk(75.8%, 0%, 64.1%, 49.8%)
CIE-LABlab(46.88, -45.03, 35.87)
CIE-LCHlch(46.88, 57.56, 141.46°)
OKLaboklab(52.71% -0.1215 0.084)
OKLCHoklch(52.71% 0.148 145.3)
XYZxyz(8.7768, 15.9259, 5.1957)
Luminance0.1593 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F802E #801F71
analogous
#40801F #1F802E #1F805E
triadic
#1F802E #2E1F80 #802E1F
tetradic
#1F802E #1F4080 #801F71 #805E1F
square
#1F802E #1F4080 #801F71 #805E1F
split-complementary
#1F802E #5E1F80 #801F40
monochromatic
#071D0B #134F1C #1F802E #2BB140 #47D25D

Accessibility & contrast

On white

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

On black

4.19
#1F802E on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##1F802E#FFFFFF#000000##FFFFFF
##1F802E1.005.024.195.02
#FFFFFF5.021.0021.001.00
#0000004.1921.001.0021.00
##FFFFFF5.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#827425
Deuteranopia (green-blind)
#776C35
Tritanopia (blue-blind)
#007D6F
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #1f802e;
/* rgb */ color: rgb(31, 128, 46);
/* oklch */ color: oklch(52.7% 0.148 145.3);
Tailwind
colors: {
  custom: {
    50: '#6ba66a',
    500: '#1f802e',
    950: '#000000',
  },
}
SCSS
$custom: #1f802e;
$custom-light: #6ba66a;
$custom-dark: #000000;
JSON
{
  "hex": "#1f802e",
  "rgb": {
    "r": 31,
    "g": 128,
    "b": 46
  },
  "hsl": {
    "h": 129.278,
    "s": 61.006,
    "l": 31.176
  },
  "oklch": {
    "l": 0.52712,
    "c": 0.14773,
    "h": 145.3
  },
  "luminance": 0.15927
}

Semantic roles & 50–950 ramp

primary
#1F802E
secondary
#B348A2
accent
#44CBE4
background
#F6FAF6
surface
#ECF4EB
border
#C7CEC6
text
#080F07
muted
#7A7F7A

Preview Lab

Preview with #1F802E

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

Preview Lab → · Contrast checker → · Palette generator →

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