#1F7F22#1F7F22

#1F7F22 is a mid, vivid green. Relative luminance 0.156; OKLCH L 52.3% C 0.155 H 143.3°. Best body text is #FFFFFF at 5.10:1 contrast (WCAG AA passes).

Color values

HEX#1F7F22
RGBrgb(31, 127, 34)
HSLhsl(122, 61%, 31%)
HSVhsv(122, 76%, 50%)
CMYKcmyk(75.6%, 0%, 73.2%, 50.2%)
CIE-LABlab(46.42, -45.98, 40.72)
CIE-LCHlch(46.42, 61.42, 138.47°)
OKLaboklab(52.3% -0.1247 0.0929)
OKLCHoklch(52.3% 0.155 143.3)
XYZxyz(8.4426, 15.5846, 4.0762)
Luminance0.1559 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F7F22 #7F1F7C
analogous
#4C7F1F #1F7F22 #1F7F52
triadic
#1F7F22 #221F7F #7F221F
tetradic
#1F7F22 #1F4C7F #7F1F7C #7F521F
square
#1F7F22 #1F4C7F #7F1F7C #7F521F
split-complementary
#1F7F22 #521F7F #7F1F4C
monochromatic
#071D08 #134E15 #1F7F22 #2BB02F #46D24B

Accessibility & contrast

On white

5.10
#1F7F22 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.12
#1F7F22 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #1F7F22
5.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F7F22#FFFFFF#000000##FFFFFF
##1F7F221.005.104.125.10
#FFFFFF5.101.0021.001.00
#0000004.1221.001.0021.00
##FFFFFF5.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#827313
Deuteranopia (green-blind)
#776B2B
Tritanopia (blue-blind)
#007B6D
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #1f7f22;
/* rgb */ color: rgb(31, 127, 34);
/* oklch */ color: oklch(52.3% 0.155 143.3);
Tailwind
colors: {
  custom: {
    50: '#6ba563',
    500: '#1f7f22',
    950: '#000000',
  },
}
SCSS
$custom: #1f7f22;
$custom-light: #6ba563;
$custom-dark: #000000;
JSON
{
  "hex": "#1f7f22",
  "rgb": {
    "r": 31,
    "g": 127,
    "b": 34
  },
  "hsl": {
    "h": 121.875,
    "s": 60.759,
    "l": 30.98
  },
  "oklch": {
    "l": 0.52302,
    "c": 0.15546,
    "h": 143.3
  },
  "luminance": 0.15586
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #1F7F22

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

Preview Lab → · Contrast checker → · Palette generator →

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