#1F8D40#1F8D40

#1F8D40 is a mid, vivid green. Relative luminance 0.197; OKLCH L 56.6% C 0.149 H 148.5°. Best body text is #000000 at 4.94:1 contrast (WCAG AA passes).

Color values

HEX#1F8D40
RGBrgb(31, 141, 64)
HSLhsl(138, 64%, 34%)
HSVhsv(138, 78%, 55%)
CMYKcmyk(78%, 0%, 54.6%, 44.7%)
CIE-LABlab(51.51, -47.21, 32.37)
CIE-LCHlch(51.51, 57.24, 145.56°)
OKLaboklab(56.62% -0.1269 0.0778)
OKLCHoklch(56.62% 0.149 148.5)
XYZxyz(11.0145, 19.7099, 8.0734)
Luminance0.1971 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F8D40 #8D1F6C
analogous
#358D1F #1F8D40 #1F8D77
triadic
#1F8D40 #401F8D #8D401F
tetradic
#1F8D40 #1F358D #8D1F6C #8D771F
square
#1F8D40 #1F358D #8D1F6C #8D771F
split-complementary
#1F8D40 #771F8D #8D1F35
monochromatic
#092912 #145B29 #1F8D40 #2ABF57 #4ED878

Accessibility & contrast

On white

4.25
#1F8D40 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.94
#1F8D40 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #1F8D40
4.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F8D40#FFFFFF#000000##000000
##1F8D401.004.254.944.94
#FFFFFF4.251.0021.0021.00
#0000004.9421.001.001.00
##0000004.9421.001.001.00

Color blindness preview

Protanopia (red-blind)
#8E8039
Deuteranopia (green-blind)
#827746
Tritanopia (blue-blind)
#008A7B
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #1f8d40;
/* rgb */ color: rgb(31, 141, 64);
/* oklch */ color: oklch(56.6% 0.149 148.5);
Tailwind
colors: {
  custom: {
    50: '#6daf77',
    500: '#1f8d40',
    950: '#000000',
  },
}
SCSS
$custom: #1f8d40;
$custom-light: #6daf77;
$custom-dark: #000000;
JSON
{
  "hex": "#1f8d40",
  "rgb": {
    "r": 31,
    "g": 141,
    "b": 64
  },
  "hsl": {
    "h": 138,
    "s": 63.953,
    "l": 33.725
  },
  "oklch": {
    "l": 0.56618,
    "c": 0.14887,
    "h": 148.5
  },
  "luminance": 0.19711
}

Semantic roles & 50–950 ramp

primary
#1F8D40
secondary
#BB4D9A
accent
#41B5E7
background
#F7FAF7
surface
#EDF5ED
border
#C8CFC8
text
#081009
muted
#7B7F7B

Preview Lab

Preview with #1F8D40

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

Preview Lab → · Contrast checker → · Palette generator →

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