#1F8E22#1F8E22

#1F8E22 is a mid, vivid green. Relative luminance 0.198; OKLCH L 56.6% C 0.173 H 143.1°. Best body text is #000000 at 4.95:1 contrast (WCAG AA passes).

Color values

HEX#1F8E22
RGBrgb(31, 142, 34)
HSLhsl(122, 64%, 34%)
HSVhsv(122, 78%, 56%)
CMYKcmyk(78.2%, 0%, 76.1%, 44.3%)
CIE-LABlab(51.56, -51.07, 45.97)
CIE-LCHlch(51.56, 68.71, 138.01°)
OKLaboklab(56.56% -0.1385 0.1038)
OKLCHoklch(56.56% 0.173 143.1)
XYZxyz(10.5261, 19.7516, 4.7707)
Luminance0.1975 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F8E22 #8E1F8B
analogous
#548E1F #1F8E22 #1F8E5A
triadic
#1F8E22 #221F8E #8E221F
tetradic
#1F8E22 #1F548E #8E1F8B #8E5A1F
square
#1F8E22 #1F548E #8E1F8B #8E5A1F
split-complementary
#1F8E22 #5A1F8E #8E1F54
monochromatic
#092A0A #145C16 #1F8E22 #2AC02E #4FD953

Accessibility & contrast

On white

4.24
#1F8E22 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.95
#1F8E22 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #1F8E22
4.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F8E22#FFFFFF#000000##000000
##1F8E221.004.244.954.95
#FFFFFF4.241.0021.0021.00
#0000004.9521.001.001.00
##0000004.9521.001.001.00

Color blindness preview

Protanopia (red-blind)
#91800C
Deuteranopia (green-blind)
#85782E
Tritanopia (blue-blind)
#008A79
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #1f8e22;
/* rgb */ color: rgb(31, 142, 34);
/* oklch */ color: oklch(56.6% 0.173 143.1);
Tailwind
colors: {
  custom: {
    50: '#6fb065',
    500: '#1f8e22',
    950: '#000000',
  },
}
SCSS
$custom: #1f8e22;
$custom-light: #6fb065;
$custom-dark: #000000;
JSON
{
  "hex": "#1f8e22",
  "rgb": {
    "r": 31,
    "g": 142,
    "b": 34
  },
  "hsl": {
    "h": 121.622,
    "s": 64.162,
    "l": 33.922
  },
  "oklch": {
    "l": 0.56564,
    "c": 0.1731,
    "h": 143.1
  },
  "luminance": 0.19753
}

Semantic roles & 50–950 ramp

primary
#1F8E22
secondary
#BB4DB8
accent
#41E3E7
background
#F7FBF6
surface
#EDF6EB
border
#C8D0C6
text
#091106
muted
#7B807A

Preview Lab

Preview with #1F8E22

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

Preview Lab → · Contrast checker → · Palette generator →

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