#1F7B22#1F7B22

#1F7B22 is a mid, vivid green. Relative luminance 0.146; OKLCH L 51.2% C 0.151 H 143.4°. Best body text is #FFFFFF at 5.36:1 contrast (WCAG AA passes).

Color values

HEX#1F7B22
RGBrgb(31, 123, 34)
HSLhsl(122, 60%, 30%)
HSVhsv(122, 75%, 48%)
CMYKcmyk(74.8%, 0%, 72.4%, 51.8%)
CIE-LABlab(45.04, -44.57, 39.28)
CIE-LCHlch(45.04, 59.41, 138.62°)
OKLaboklab(51.15% -0.1208 0.0898)
OKLCHoklch(51.15% 0.151 143.4)
XYZxyz(7.9363, 14.5718, 3.9075)
Luminance0.1457 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F7B22 #7B1F78
analogous
#4A7B1F #1F7B22 #1F7B50
triadic
#1F7B22 #221F7B #7B221F
tetradic
#1F7B22 #1F4A7B #7B1F78 #7B501F
square
#1F7B22 #1F4A7B #7B1F78 #7B501F
split-complementary
#1F7B22 #501F7B #7B1F4A
monochromatic
#061907 #134A14 #1F7B22 #2BAC30 #44D049

Accessibility & contrast

On white

5.36
#1F7B22 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.91
#1F7B22 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #1F7B22
5.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F7B22#FFFFFF#000000##FFFFFF
##1F7B221.005.363.915.36
#FFFFFF5.361.0021.001.00
#0000003.9121.001.0021.00
##FFFFFF5.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7E6F14
Deuteranopia (green-blind)
#73682B
Tritanopia (blue-blind)
#007769
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #1f7b22;
/* rgb */ color: rgb(31, 123, 34);
/* oklch */ color: oklch(51.2% 0.151 143.4);
Tailwind
colors: {
  custom: {
    50: '#6aa262',
    500: '#1f7b22',
    950: '#000000',
  },
}
SCSS
$custom: #1f7b22;
$custom-light: #6aa262;
$custom-dark: #000000;
JSON
{
  "hex": "#1f7b22",
  "rgb": {
    "r": 31,
    "g": 123,
    "b": 34
  },
  "hsl": {
    "h": 121.957,
    "s": 59.74,
    "l": 30.196
  },
  "oklch": {
    "l": 0.51154,
    "c": 0.15059,
    "h": 143.4
  },
  "luminance": 0.14573
}

Semantic roles & 50–950 ramp

primary
#1F7B22
secondary
#AE48AB
accent
#45DEE3
background
#F6FAF6
surface
#ECF4EB
border
#C7CEC6
text
#070F05
muted
#7A7F7A

Preview Lab

Preview with #1F7B22

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

Preview Lab → · Contrast checker → · Palette generator →

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