#1F8022#1F8022

#1F8022 is a mid, vivid green. Relative luminance 0.158; OKLCH L 52.6% C 0.157 H 143.3°. Best body text is #FFFFFF at 5.04:1 contrast (WCAG AA passes).

Color values

HEX#1F8022
RGBrgb(31, 128, 34)
HSLhsl(122, 61%, 31%)
HSVhsv(122, 76%, 50%)
CMYKcmyk(75.8%, 0%, 73.4%, 49.8%)
CIE-LABlab(46.77, -46.33, 41.08)
CIE-LCHlch(46.77, 61.92, 138.44°)
OKLaboklab(52.59% -0.1256 0.0936)
OKLCHoklch(52.59% 0.157 143.3)
XYZxyz(8.5724, 15.8442, 4.1195)
Luminance0.1585 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F8022 #801F7D
analogous
#4C801F #1F8022 #1F8052
triadic
#1F8022 #221F80 #80221F
tetradic
#1F8022 #1F4C80 #801F7D #80521F
square
#1F8022 #1F4C80 #801F7D #80521F
split-complementary
#1F8022 #521F80 #801F4C
monochromatic
#071D08 #134F15 #1F8022 #2BB12F #47D24B

Accessibility & contrast

On white

5.04
#1F8022 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.17
#1F8022 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #1F8022
5.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F8022#FFFFFF#000000##FFFFFF
##1F80221.005.044.175.04
#FFFFFF5.041.0021.001.00
#0000004.1721.001.0021.00
##FFFFFF5.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#837313
Deuteranopia (green-blind)
#786C2B
Tritanopia (blue-blind)
#007C6D
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #1f8022;
/* rgb */ color: rgb(31, 128, 34);
/* oklch */ color: oklch(52.6% 0.157 143.3);
Tailwind
colors: {
  custom: {
    50: '#6ca663',
    500: '#1f8022',
    950: '#000000',
  },
}
SCSS
$custom: #1f8022;
$custom-light: #6ca663;
$custom-dark: #000000;
JSON
{
  "hex": "#1f8022",
  "rgb": {
    "r": 31,
    "g": 128,
    "b": 34
  },
  "hsl": {
    "h": 121.856,
    "s": 61.006,
    "l": 31.176
  },
  "oklch": {
    "l": 0.52588,
    "c": 0.15667,
    "h": 143.3
  },
  "luminance": 0.15845
}

Semantic roles & 50–950 ramp

primary
#1F8022
secondary
#B348B0
accent
#44DFE4
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#080F05
muted
#7B7F7A

Preview Lab

Preview with #1F8022

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

Preview Lab → · Contrast checker → · Palette generator →

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