#1F7E22#1F7E22

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

Color values

HEX#1F7E22
RGBrgb(31, 126, 34)
HSLhsl(122, 61%, 31%)
HSVhsv(122, 75%, 49%)
CMYKcmyk(75.4%, 0%, 73%, 50.6%)
CIE-LABlab(46.08, -45.63, 40.36)
CIE-LCHlch(46.08, 60.92, 138.51°)
OKLaboklab(52.02% -0.1237 0.0921)
OKLCHoklch(52.02% 0.154 143.3)
XYZxyz(8.3141, 15.3276, 4.0334)
Luminance0.1533 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F7E22 #7E1F7B
analogous
#4B7E1F #1F7E22 #1F7E51
triadic
#1F7E22 #221F7E #7E221F
tetradic
#1F7E22 #1F4B7E #7E1F7B #7E511F
square
#1F7E22 #1F4B7E #7E1F7B #7E511F
split-complementary
#1F7E22 #511F7E #7E1F4B
monochromatic
#071C07 #134D15 #1F7E22 #2BAF2F #46D14A

Accessibility & contrast

On white

5.17
#1F7E22 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.07
#1F7E22 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #1F7E22
5.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F7E22#FFFFFF#000000##FFFFFF
##1F7E221.005.174.075.17
#FFFFFF5.171.0021.001.00
#0000004.0721.001.0021.00
##FFFFFF5.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#817213
Deuteranopia (green-blind)
#766A2B
Tritanopia (blue-blind)
#007A6C
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #1f7e22;
/* rgb */ color: rgb(31, 126, 34);
/* oklch */ color: oklch(52.0% 0.154 143.3);
Tailwind
colors: {
  custom: {
    50: '#6ba463',
    500: '#1f7e22',
    950: '#000000',
  },
}
SCSS
$custom: #1f7e22;
$custom-light: #6ba463;
$custom-dark: #000000;
JSON
{
  "hex": "#1f7e22",
  "rgb": {
    "r": 31,
    "g": 126,
    "b": 34
  },
  "hsl": {
    "h": 121.895,
    "s": 60.51,
    "l": 30.784
  },
  "oklch": {
    "l": 0.52015,
    "c": 0.15425,
    "h": 143.3
  },
  "luminance": 0.15329
}

Semantic roles & 50–950 ramp

primary
#1F7E22
secondary
#B148AE
accent
#44DFE4
background
#F6FAF6
surface
#ECF4EB
border
#C7CEC6
text
#080F05
muted
#7A7F7A

Preview Lab

Preview with #1F7E22

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

Preview Lab → · Contrast checker → · Palette generator →

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