#1F8F28#1F8F28

#1F8F28 is a mid, vivid green. Relative luminance 0.201; OKLCH L 56.9% C 0.171 H 143.9°. Best body text is #000000 at 5.02:1 contrast (WCAG AA passes).

Color values

HEX#1F8F28
RGBrgb(31, 143, 40)
HSLhsl(125, 64%, 34%)
HSVhsv(125, 78%, 56%)
CMYKcmyk(78.3%, 0%, 72%, 43.9%)
CIE-LABlab(51.94, -50.88, 44.03)
CIE-LCHlch(51.94, 67.29, 139.13°)
OKLaboklab(56.89% -0.1377 0.1006)
OKLCHoklch(56.89% 0.171 143.9)
XYZxyz(10.7698, 20.0882, 5.3169)
Luminance0.2009 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F8F28 #8F1F86
analogous
#4E8F1F #1F8F28 #1F8F60
triadic
#1F8F28 #281F8F #8F281F
tetradic
#1F8F28 #1F4E8F #8F1F86 #8F601F
square
#1F8F28 #1F4E8F #8F1F86 #8F601F
split-complementary
#1F8F28 #601F8F #8F1F4E
monochromatic
#092A0C #145D1A #1F8F28 #2AC136 #4FD95B

Accessibility & contrast

On white

4.19
#1F8F28 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.02
#1F8F28 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #1F8F28
5.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F8F28#FFFFFF#000000##000000
##1F8F281.004.195.025.02
#FFFFFF4.191.0021.0021.00
#0000005.0221.001.001.00
##0000005.0221.001.001.00

Color blindness preview

Protanopia (red-blind)
#928118
Deuteranopia (green-blind)
#867932
Tritanopia (blue-blind)
#008B7B
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #1f8f28;
/* rgb */ color: rgb(31, 143, 40);
/* oklch */ color: oklch(56.9% 0.171 143.9);
Tailwind
colors: {
  custom: {
    50: '#6fb168',
    500: '#1f8f28',
    950: '#000000',
  },
}
SCSS
$custom: #1f8f28;
$custom-light: #6fb168;
$custom-dark: #000000;
JSON
{
  "hex": "#1f8f28",
  "rgb": {
    "r": 31,
    "g": 143,
    "b": 40
  },
  "hsl": {
    "h": 124.821,
    "s": 64.368,
    "l": 34.118
  },
  "oklch": {
    "l": 0.56894,
    "c": 0.17051,
    "h": 143.9
  },
  "luminance": 0.20089
}

Semantic roles & 50–950 ramp

primary
#1F8F28
secondary
#BC4EB3
accent
#40DAE7
background
#F7FBF6
surface
#EDF6EB
border
#C8D0C6
text
#091106
muted
#7B807A

Preview Lab

Preview with #1F8F28

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

Preview Lab → · Contrast checker → · Palette generator →

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