#1F7822#1F7822

#1F7822 is a mid, vivid green. Relative luminance 0.138; OKLCH L 50.3% C 0.147 H 143.4°. Best body text is #FFFFFF at 5.57:1 contrast (WCAG AA passes).

Color values

HEX#1F7822
RGBrgb(31, 120, 34)
HSLhsl(122, 59%, 30%)
HSVhsv(122, 74%, 47%)
CMYKcmyk(74.2%, 0%, 71.7%, 52.9%)
CIE-LABlab(44.00, -43.50, 38.18)
CIE-LCHlch(44.00, 57.88, 138.73°)
OKLaboklab(50.29% -0.1179 0.0875)
OKLCHoklch(50.29% 0.147 143.4)
XYZxyz(7.5698, 13.8389, 3.7853)
Luminance0.1384 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F7822 #781F75
analogous
#49781F #1F7822 #1F784E
triadic
#1F7822 #221F78 #78221F
tetradic
#1F7822 #1F4978 #781F75 #784E1F
square
#1F7822 #1F4978 #781F75 #784E1F
split-complementary
#1F7822 #4E1F78 #781F49
monochromatic
#061807 #124714 #1F7822 #2CA930 #43CE48

Accessibility & contrast

On white

5.57
#1F7822 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.77
#1F7822 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #1F7822
5.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F7822#FFFFFF#000000##FFFFFF
##1F78221.005.573.775.57
#FFFFFF5.571.0021.001.00
#0000003.7721.001.0021.00
##FFFFFF5.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7B6C15
Deuteranopia (green-blind)
#70652A
Tritanopia (blue-blind)
#007467
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #1f7822;
/* rgb */ color: rgb(31, 120, 34);
/* oklch */ color: oklch(50.3% 0.147 143.4);
Tailwind
colors: {
  custom: {
    50: '#6aa062',
    500: '#1f7822',
    950: '#000000',
  },
}
SCSS
$custom: #1f7822;
$custom-light: #6aa062;
$custom-dark: #000000;
JSON
{
  "hex": "#1f7822",
  "rgb": {
    "r": 31,
    "g": 120,
    "b": 34
  },
  "hsl": {
    "h": 122.022,
    "s": 58.94,
    "l": 29.608
  },
  "oklch": {
    "l": 0.50291,
    "c": 0.14688,
    "h": 143.4
  },
  "luminance": 0.1384
}

Semantic roles & 50–950 ramp

primary
#1F7822
secondary
#AB47A8
accent
#46DDE2
background
#F6F9F6
surface
#ECF2EB
border
#C7CCC6
text
#070F05
muted
#7A7E7A

Preview Lab

Preview with #1F7822

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

Preview Lab → · Contrast checker → · Palette generator →

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