#1F7D22#1F7D22

#1F7D22 is a mid, vivid green. Relative luminance 0.151; OKLCH L 51.7% C 0.153 H 143.3°. Best body text is #FFFFFF at 5.23:1 contrast (WCAG AA passes).

Color values

HEX#1F7D22
RGBrgb(31, 125, 34)
HSLhsl(122, 60%, 31%)
HSVhsv(122, 75%, 49%)
CMYKcmyk(75.2%, 0%, 72.8%, 51%)
CIE-LABlab(45.73, -45.28, 40.00)
CIE-LCHlch(45.73, 60.42, 138.54°)
OKLaboklab(51.73% -0.1228 0.0914)
OKLCHoklch(51.73% 0.153 143.3)
XYZxyz(8.1869, 15.0731, 3.9910)
Luminance0.1507 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F7D22 #7D1F7A
analogous
#4B7D1F #1F7D22 #1F7D51
triadic
#1F7D22 #221F7D #7D221F
tetradic
#1F7D22 #1F4B7D #7D1F7A #7D511F
square
#1F7D22 #1F4B7D #7D1F7A #7D511F
split-complementary
#1F7D22 #511F7D #7D1F4B
monochromatic
#071B07 #134C15 #1F7D22 #2BAE2F #45D14A

Accessibility & contrast

On white

5.23
#1F7D22 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.01
#1F7D22 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #1F7D22
5.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F7D22#FFFFFF#000000##FFFFFF
##1F7D221.005.234.015.23
#FFFFFF5.231.0021.001.00
#0000004.0121.001.0021.00
##FFFFFF5.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#807114
Deuteranopia (green-blind)
#75692B
Tritanopia (blue-blind)
#00796B
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #1f7d22;
/* rgb */ color: rgb(31, 125, 34);
/* oklch */ color: oklch(51.7% 0.153 143.3);
Tailwind
colors: {
  custom: {
    50: '#6ba463',
    500: '#1f7d22',
    950: '#000000',
  },
}
SCSS
$custom: #1f7d22;
$custom-light: #6ba463;
$custom-dark: #000000;
JSON
{
  "hex": "#1f7d22",
  "rgb": {
    "r": 31,
    "g": 125,
    "b": 34
  },
  "hsl": {
    "h": 121.915,
    "s": 60.256,
    "l": 30.588
  },
  "oklch": {
    "l": 0.51729,
    "c": 0.15303,
    "h": 143.3
  },
  "luminance": 0.15074
}

Semantic roles & 50–950 ramp

primary
#1F7D22
secondary
#B048AD
accent
#44DEE3
background
#F6FAF6
surface
#ECF4EB
border
#C7CEC6
text
#080F05
muted
#7A7F7A

Preview Lab

Preview with #1F7D22

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

Preview Lab → · Contrast checker → · Palette generator →

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