#1F8D28#1F8D28

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

Color values

HEX#1F8D28
RGBrgb(31, 141, 40)
HSLhsl(125, 64%, 34%)
HSVhsv(125, 78%, 55%)
CMYKcmyk(78%, 0%, 71.6%, 44.7%)
CIE-LABlab(51.26, -50.21, 43.32)
CIE-LCHlch(51.26, 66.31, 139.21°)
OKLaboklab(56.33% -0.1359 0.0991)
OKLCHoklch(56.33% 0.168 143.9)
XYZxyz(10.4723, 19.4930, 5.2177)
Luminance0.1949 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F8D28 #8D1F84
analogous
#4D8D1F #1F8D28 #1F8D5F
triadic
#1F8D28 #281F8D #8D281F
tetradic
#1F8D28 #1F4D8D #8D1F84 #8D5F1F
square
#1F8D28 #1F4D8D #8D1F84 #8D5F1F
split-complementary
#1F8D28 #5F1F8D #8D1F4D
monochromatic
#09290C #145B1A #1F8D28 #2ABF36 #4ED85A

Accessibility & contrast

On white

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

On black

4.90
#1F8D28 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #1F8D28
4.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F8D28#FFFFFF#000000##000000
##1F8D281.004.294.904.90
#FFFFFF4.291.0021.0021.00
#0000004.9021.001.001.00
##0000004.9021.001.001.00

Color blindness preview

Protanopia (red-blind)
#907F19
Deuteranopia (green-blind)
#847732
Tritanopia (blue-blind)
#008979
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #1f8d28;
/* rgb */ color: rgb(31, 141, 40);
/* oklch */ color: oklch(56.3% 0.168 143.9);
Tailwind
colors: {
  custom: {
    50: '#6faf68',
    500: '#1f8d28',
    950: '#000000',
  },
}
SCSS
$custom: #1f8d28;
$custom-light: #6faf68;
$custom-dark: #000000;
JSON
{
  "hex": "#1f8d28",
  "rgb": {
    "r": 31,
    "g": 141,
    "b": 40
  },
  "hsl": {
    "h": 124.909,
    "s": 63.953,
    "l": 33.725
  },
  "oklch": {
    "l": 0.56331,
    "c": 0.16816,
    "h": 143.9
  },
  "luminance": 0.19494
}

Semantic roles & 50–950 ramp

primary
#1F8D28
secondary
#BB4DB2
accent
#41D9E7
background
#F7FAF6
surface
#EDF5EB
border
#C8CFC6
text
#081006
muted
#7B7F7A

Preview Lab

Preview with #1F8D28

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

Preview Lab → · Contrast checker → · Palette generator →

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