#1F8A21#1F8A21

#1F8A21 is a mid, vivid green. Relative luminance 0.186; OKLCH L 55.4% C 0.169 H 143.1°. Best body text is #000000 at 4.72:1 contrast (WCAG AA passes).

Color values

HEX#1F8A21
RGBrgb(31, 138, 33)
HSLhsl(121, 63%, 33%)
HSVhsv(121, 78%, 54%)
CMYKcmyk(77.5%, 0%, 76.1%, 45.9%)
CIE-LABlab(50.19, -49.83, 44.96)
CIE-LCHlch(50.19, 67.11, 137.94°)
OKLaboklab(55.43% -0.1351 0.1016)
OKLCHoklch(55.43% 0.169 143.1)
XYZxyz(9.9274, 18.5769, 4.5011)
Luminance0.1858 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F8A21 #8A1F88
analogous
#538A1F #1F8A21 #1F8A56
triadic
#1F8A21 #211F8A #8A211F
tetradic
#1F8A21 #1F538A #8A1F88 #8A561F
square
#1F8A21 #1F538A #8A1F88 #8A561F
split-complementary
#1F8A21 #561F8A #8A1F53
monochromatic
#092609 #145815 #1F8A21 #2ABC2D #4CD74F

Accessibility & contrast

On white

4.45
#1F8A21 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.72
#1F8A21 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #1F8A21
4.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F8A21#FFFFFF#000000##000000
##1F8A211.004.454.724.72
#FFFFFF4.451.0021.0021.00
#0000004.7221.001.001.00
##0000004.7221.001.001.00

Color blindness preview

Protanopia (red-blind)
#8D7C0C
Deuteranopia (green-blind)
#81742C
Tritanopia (blue-blind)
#008676
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #1f8a21;
/* rgb */ color: rgb(31, 138, 33);
/* oklch */ color: oklch(55.4% 0.169 143.1);
Tailwind
colors: {
  custom: {
    50: '#6ead64',
    500: '#1f8a21',
    950: '#000000',
  },
}
SCSS
$custom: #1f8a21;
$custom-light: #6ead64;
$custom-dark: #000000;
JSON
{
  "hex": "#1f8a21",
  "rgb": {
    "r": 31,
    "g": 138,
    "b": 33
  },
  "hsl": {
    "h": 121.121,
    "s": 63.314,
    "l": 33.137
  },
  "oklch": {
    "l": 0.55426,
    "c": 0.16908,
    "h": 143.1
  },
  "luminance": 0.18578
}

Semantic roles & 50–950 ramp

primary
#1F8A21
secondary
#BA4BB8
accent
#41E3E6
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#081006
muted
#7B7F7A

Preview Lab

Preview with #1F8A21

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

Preview Lab → · Contrast checker → · Palette generator →

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