#1F7922#1F7922

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

Color values

HEX#1F7922
RGBrgb(31, 121, 34)
HSLhsl(122, 59%, 30%)
HSVhsv(122, 74%, 47%)
CMYKcmyk(74.4%, 0%, 71.9%, 52.5%)
CIE-LABlab(44.35, -43.86, 38.54)
CIE-LCHlch(44.35, 58.39, 138.69°)
OKLaboklab(50.58% -0.1189 0.0883)
OKLCHoklch(50.58% 0.148 143.4)
XYZxyz(7.6907, 14.0807, 3.8256)
Luminance0.1408 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F7922 #791F76
analogous
#49791F #1F7922 #1F794F
triadic
#1F7922 #221F79 #79221F
tetradic
#1F7922 #1F4979 #791F76 #794F1F
square
#1F7922 #1F4979 #791F76 #794F1F
split-complementary
#1F7922 #4F1F79 #791F49
monochromatic
#061807 #134814 #1F7922 #2BAA30 #43CF48

Accessibility & contrast

On white

5.50
#1F7922 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.82
#1F7922 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #1F7922
5.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F7922#FFFFFF#000000##FFFFFF
##1F79221.005.503.825.50
#FFFFFF5.501.0021.001.00
#0000003.8221.001.0021.00
##FFFFFF5.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7C6D15
Deuteranopia (green-blind)
#71662A
Tritanopia (blue-blind)
#007568
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #1f7922;
/* rgb */ color: rgb(31, 121, 34);
/* oklch */ color: oklch(50.6% 0.148 143.4);
Tailwind
colors: {
  custom: {
    50: '#6aa162',
    500: '#1f7922',
    950: '#000000',
  },
}
SCSS
$custom: #1f7922;
$custom-light: #6aa162;
$custom-dark: #000000;
JSON
{
  "hex": "#1f7922",
  "rgb": {
    "r": 31,
    "g": 121,
    "b": 34
  },
  "hsl": {
    "h": 122,
    "s": 59.211,
    "l": 29.804
  },
  "oklch": {
    "l": 0.50579,
    "c": 0.14812,
    "h": 143.4
  },
  "luminance": 0.14082
}

Semantic roles & 50–950 ramp

primary
#1F7922
secondary
#AC47A9
accent
#45DDE2
background
#F6FAF6
surface
#ECF3EB
border
#C7CDC6
text
#070F05
muted
#7A7F7A

Preview Lab

Preview with #1F7922

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

Preview Lab → · Contrast checker → · Palette generator →

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