#1F8E28#1F8E28

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

Color values

HEX#1F8E28
RGBrgb(31, 142, 40)
HSLhsl(125, 64%, 34%)
HSVhsv(125, 78%, 56%)
CMYKcmyk(78.2%, 0%, 71.8%, 44.3%)
CIE-LABlab(51.60, -50.54, 43.68)
CIE-LCHlch(51.60, 66.80, 139.17°)
OKLaboklab(56.61% -0.1368 0.0998)
OKLCHoklch(56.61% 0.169 143.9)
XYZxyz(10.6204, 19.7893, 5.2671)
Luminance0.1979 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F8E28 #8E1F85
analogous
#4E8E1F #1F8E28 #1F8E60
triadic
#1F8E28 #281F8E #8E281F
tetradic
#1F8E28 #1F4E8E #8E1F85 #8E601F
square
#1F8E28 #1F4E8E #8E1F85 #8E601F
split-complementary
#1F8E28 #601F8E #8E1F4E
monochromatic
#092A0C #145C1A #1F8E28 #2AC036 #4FD95A

Accessibility & contrast

On white

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

On black

4.96
#1F8E28 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #1F8E28
4.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F8E28#FFFFFF#000000##000000
##1F8E281.004.244.964.96
#FFFFFF4.241.0021.0021.00
#0000004.9621.001.001.00
##0000004.9621.001.001.00

Color blindness preview

Protanopia (red-blind)
#918018
Deuteranopia (green-blind)
#857832
Tritanopia (blue-blind)
#008A7A
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #1f8e28;
/* rgb */ color: rgb(31, 142, 40);
/* oklch */ color: oklch(56.6% 0.169 143.9);
Tailwind
colors: {
  custom: {
    50: '#6fb068',
    500: '#1f8e28',
    950: '#000000',
  },
}
SCSS
$custom: #1f8e28;
$custom-light: #6fb068;
$custom-dark: #000000;
JSON
{
  "hex": "#1f8e28",
  "rgb": {
    "r": 31,
    "g": 142,
    "b": 40
  },
  "hsl": {
    "h": 124.865,
    "s": 64.162,
    "l": 33.922
  },
  "oklch": {
    "l": 0.56613,
    "c": 0.16933,
    "h": 143.9
  },
  "luminance": 0.19791
}

Semantic roles & 50–950 ramp

primary
#1F8E28
secondary
#BB4DB3
accent
#41DAE7
background
#F7FBF6
surface
#EDF6EB
border
#C8D0C6
text
#091106
muted
#7B807A

Preview Lab

Preview with #1F8E28

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

Preview Lab → · Contrast checker → · Palette generator →

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