#1F8D21#1F8D21

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

Color values

HEX#1F8D21
RGBrgb(31, 141, 33)
HSLhsl(121, 64%, 34%)
HSVhsv(121, 78%, 55%)
CMYKcmyk(78%, 0%, 76.6%, 44.7%)
CIE-LABlab(51.21, -50.82, 45.99)
CIE-LCHlch(51.21, 68.54, 137.86°)
OKLaboklab(56.27% -0.1379 0.1037)
OKLCHoklch(56.27% 0.173 143)
XYZxyz(10.3638, 19.4497, 4.6465)
Luminance0.1945 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F8D21 #8D1F8B
analogous
#548D1F #1F8D21 #1F8D58
triadic
#1F8D21 #211F8D #8D211F
tetradic
#1F8D21 #1F548D #8D1F8B #8D581F
square
#1F8D21 #1F548D #8D1F8B #8D581F
split-complementary
#1F8D21 #581F8D #8D1F54
monochromatic
#09290A #145B15 #1F8D21 #2ABF2D #4ED851

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##1F8D21#FFFFFF#000000##000000
##1F8D211.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)
#907F0A
Deuteranopia (green-blind)
#84772D
Tritanopia (blue-blind)
#008978
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #1f8d21;
/* rgb */ color: rgb(31, 141, 33);
/* oklch */ color: oklch(56.3% 0.173 143.0);
Tailwind
colors: {
  custom: {
    50: '#6faf64',
    500: '#1f8d21',
    950: '#000000',
  },
}
SCSS
$custom: #1f8d21;
$custom-light: #6faf64;
$custom-dark: #000000;
JSON
{
  "hex": "#1f8d21",
  "rgb": {
    "r": 31,
    "g": 141,
    "b": 33
  },
  "hsl": {
    "h": 121.091,
    "s": 63.953,
    "l": 33.725
  },
  "oklch": {
    "l": 0.56274,
    "c": 0.17253,
    "h": 143
  },
  "luminance": 0.19451
}

Semantic roles & 50–950 ramp

primary
#1F8D21
secondary
#BB4DB9
accent
#41E4E7
background
#F7FAF6
surface
#EDF5EB
border
#C8CFC6
text
#091006
muted
#7B7F7A

Preview Lab

Preview with #1F8D21

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

Preview Lab → · Contrast checker → · Palette generator →

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