#1F8D22#1F8D22

#1F8D22 is a mid, vivid green. Relative luminance 0.195; OKLCH L 56.3% C 0.172 H 143.2°. Best body text is #000000 at 4.89:1 contrast (WCAG AA passes).

Color values

HEX#1F8D22
RGBrgb(31, 141, 34)
HSLhsl(122, 64%, 34%)
HSVhsv(122, 78%, 55%)
CMYKcmyk(78%, 0%, 75.9%, 44.7%)
CIE-LABlab(51.22, -50.74, 45.63)
CIE-LCHlch(51.22, 68.24, 138.04°)
OKLaboklab(56.28% -0.1376 0.1031)
OKLCHoklch(56.28% 0.172 143.2)
XYZxyz(10.3780, 19.4553, 4.7214)
Luminance0.1946 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F8D22 #8D1F8A
analogous
#538D1F #1F8D22 #1F8D59
triadic
#1F8D22 #221F8D #8D221F
tetradic
#1F8D22 #1F538D #8D1F8A #8D591F
square
#1F8D22 #1F538D #8D1F8A #8D591F
split-complementary
#1F8D22 #591F8D #8D1F53
monochromatic
#09290A #145B16 #1F8D22 #2ABF2E #4ED852

Accessibility & contrast

On white

4.29
#1F8D22 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.89
#1F8D22 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #1F8D22
4.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F8D22#FFFFFF#000000##000000
##1F8D221.004.294.894.89
#FFFFFF4.291.0021.0021.00
#0000004.8921.001.001.00
##0000004.8921.001.001.00

Color blindness preview

Protanopia (red-blind)
#907F0D
Deuteranopia (green-blind)
#84772D
Tritanopia (blue-blind)
#008978
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #1f8d22;
/* rgb */ color: rgb(31, 141, 34);
/* oklch */ color: oklch(56.3% 0.172 143.2);
Tailwind
colors: {
  custom: {
    50: '#6faf65',
    500: '#1f8d22',
    950: '#000000',
  },
}
SCSS
$custom: #1f8d22;
$custom-light: #6faf65;
$custom-dark: #000000;
JSON
{
  "hex": "#1f8d22",
  "rgb": {
    "r": 31,
    "g": 141,
    "b": 34
  },
  "hsl": {
    "h": 121.636,
    "s": 63.953,
    "l": 33.725
  },
  "oklch": {
    "l": 0.56281,
    "c": 0.17195,
    "h": 143.2
  },
  "luminance": 0.19457
}

Semantic roles & 50–950 ramp

primary
#1F8D22
secondary
#BB4DB8
accent
#41E2E7
background
#F7FAF6
surface
#EDF5EB
border
#C8CFC6
text
#091006
muted
#7B7F7A

Preview Lab

Preview with #1F8D22

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

Preview Lab → · Contrast checker → · Palette generator →

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