#1F7A22#1F7A22

#1F7A22 is a mid, vivid green. Relative luminance 0.143; OKLCH L 50.9% C 0.149 H 143.4°. Best body text is #FFFFFF at 5.43:1 contrast (WCAG AA passes).

Color values

HEX#1F7A22
RGBrgb(31, 122, 34)
HSLhsl(122, 59%, 30%)
HSVhsv(122, 75%, 48%)
CMYKcmyk(74.6%, 0%, 72.1%, 52.2%)
CIE-LABlab(44.70, -44.22, 38.91)
CIE-LCHlch(44.70, 58.90, 138.65°)
OKLaboklab(50.87% -0.1199 0.0891)
OKLCHoklch(50.87% 0.149 143.4)
XYZxyz(7.8129, 14.3250, 3.8663)
Luminance0.1433 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F7A22 #7A1F77
analogous
#4A7A1F #1F7A22 #1F7A4F
triadic
#1F7A22 #221F7A #7A221F
tetradic
#1F7A22 #1F4A7A #7A1F77 #7A4F1F
square
#1F7A22 #1F4A7A #7A1F77 #7A4F1F
split-complementary
#1F7A22 #4F1F7A #7A1F4A
monochromatic
#061807 #134914 #1F7A22 #2BAB30 #44CF49

Accessibility & contrast

On white

5.43
#1F7A22 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.87
#1F7A22 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #1F7A22
5.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F7A22#FFFFFF#000000##FFFFFF
##1F7A221.005.433.875.43
#FFFFFF5.431.0021.001.00
#0000003.8721.001.0021.00
##FFFFFF5.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7D6E15
Deuteranopia (green-blind)
#72672B
Tritanopia (blue-blind)
#007668
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #1f7a22;
/* rgb */ color: rgb(31, 122, 34);
/* oklch */ color: oklch(50.9% 0.149 143.4);
Tailwind
colors: {
  custom: {
    50: '#6aa162',
    500: '#1f7a22',
    950: '#000000',
  },
}
SCSS
$custom: #1f7a22;
$custom-light: #6aa162;
$custom-dark: #000000;
JSON
{
  "hex": "#1f7a22",
  "rgb": {
    "r": 31,
    "g": 122,
    "b": 34
  },
  "hsl": {
    "h": 121.978,
    "s": 59.477,
    "l": 30
  },
  "oklch": {
    "l": 0.50867,
    "c": 0.14936,
    "h": 143.4
  },
  "luminance": 0.14326
}

Semantic roles & 50–950 ramp

primary
#1F7A22
secondary
#AD47AA
accent
#45DDE3
background
#F6FAF6
surface
#ECF3EB
border
#C7CDC6
text
#070F05
muted
#7A7F7A

Preview Lab

Preview with #1F7A22

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

Preview Lab → · Contrast checker → · Palette generator →

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