#1F7C22#1F7C22

#1F7C22 is a mid, vivid green. Relative luminance 0.148; OKLCH L 51.4% C 0.152 H 143.4°. Best body text is #FFFFFF at 5.30:1 contrast (WCAG AA passes).

Color values

HEX#1F7C22
RGBrgb(31, 124, 34)
HSLhsl(122, 60%, 30%)
HSVhsv(122, 75%, 49%)
CMYKcmyk(75%, 0%, 72.6%, 51.4%)
CIE-LABlab(45.39, -44.93, 39.64)
CIE-LCHlch(45.39, 59.91, 138.58°)
OKLaboklab(51.44% -0.1218 0.0906)
OKLCHoklch(51.44% 0.152 143.4)
XYZxyz(8.0610, 14.8212, 3.9490)
Luminance0.1482 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F7C22 #7C1F79
analogous
#4B7C1F #1F7C22 #1F7C50
triadic
#1F7C22 #221F7C #7C221F
tetradic
#1F7C22 #1F4B7C #7C1F79 #7C501F
square
#1F7C22 #1F4B7C #7C1F79 #7C501F
split-complementary
#1F7C22 #501F7C #7C1F4B
monochromatic
#071A07 #134B15 #1F7C22 #2BAD2F #45D049

Accessibility & contrast

On white

5.30
#1F7C22 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.96
#1F7C22 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #1F7C22
5.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F7C22#FFFFFF#000000##FFFFFF
##1F7C221.005.303.965.30
#FFFFFF5.301.0021.001.00
#0000003.9621.001.0021.00
##FFFFFF5.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7F7014
Deuteranopia (green-blind)
#74692B
Tritanopia (blue-blind)
#00786A
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #1f7c22;
/* rgb */ color: rgb(31, 124, 34);
/* oklch */ color: oklch(51.4% 0.152 143.4);
Tailwind
colors: {
  custom: {
    50: '#6ba362',
    500: '#1f7c22',
    950: '#000000',
  },
}
SCSS
$custom: #1f7c22;
$custom-light: #6ba362;
$custom-dark: #000000;
JSON
{
  "hex": "#1f7c22",
  "rgb": {
    "r": 31,
    "g": 124,
    "b": 34
  },
  "hsl": {
    "h": 121.935,
    "s": 60,
    "l": 30.392
  },
  "oklch": {
    "l": 0.51442,
    "c": 0.15181,
    "h": 143.4
  },
  "luminance": 0.14822
}

Semantic roles & 50–950 ramp

primary
#1F7C22
secondary
#AF48AC
accent
#45DEE3
background
#F6FAF6
surface
#ECF4EB
border
#C7CEC6
text
#080F05
muted
#7A7F7A

Preview Lab

Preview with #1F7C22

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

Preview Lab → · Contrast checker → · Palette generator →

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