#1F8740#1F8740

#1F8740 is a mid, vivid green. Relative luminance 0.180; OKLCH L 54.9% C 0.141 H 149.1°. Best body text is #000000 at 4.60:1 contrast (WCAG AA passes).

Color values

HEX#1F8740
RGBrgb(31, 135, 64)
HSLhsl(139, 63%, 33%)
HSVhsv(139, 77%, 53%)
CMYKcmyk(77%, 0%, 52.6%, 47.1%)
CIE-LABlab(49.48, -45.00, 29.88)
CIE-LCHlch(49.48, 54.02, 146.41°)
OKLaboklab(54.94% -0.121 0.0723)
OKLCHoklch(54.94% 0.141 149.1)
XYZxyz(10.1536, 17.9882, 7.7864)
Luminance0.1799 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F8740 #871F66
analogous
#32871F #1F8740 #1F8774
triadic
#1F8740 #401F87 #87401F
tetradic
#1F8740 #1F3287 #871F66 #87741F
square
#1F8740 #1F3287 #871F66 #87741F
split-complementary
#1F8740 #741F87 #871F32
monochromatic
#082311 #145528 #1F8740 #2AB958 #4BD677

Accessibility & contrast

On white

4.57
#1F8740 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.60
#1F8740 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #1F8740
4.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F8740#FFFFFF#000000##000000
##1F87401.004.574.604.60
#FFFFFF4.571.0021.0021.00
#0000004.6021.001.001.00
##0000004.6021.001.001.00

Color blindness preview

Protanopia (red-blind)
#887B3A
Deuteranopia (green-blind)
#7C7245
Tritanopia (blue-blind)
#008477
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #1f8740;
/* rgb */ color: rgb(31, 135, 64);
/* oklch */ color: oklch(54.9% 0.141 149.1);
Tailwind
colors: {
  custom: {
    50: '#6cab76',
    500: '#1f8740',
    950: '#000000',
  },
}
SCSS
$custom: #1f8740;
$custom-light: #6cab76;
$custom-dark: #000000;
JSON
{
  "hex": "#1f8740",
  "rgb": {
    "r": 31,
    "g": 135,
    "b": 64
  },
  "hsl": {
    "h": 139.038,
    "s": 62.651,
    "l": 32.549
  },
  "oklch": {
    "l": 0.5494,
    "c": 0.14094,
    "h": 149.1
  },
  "luminance": 0.17989
}

Semantic roles & 50–950 ramp

primary
#1F8740
secondary
#B84A95
accent
#42B2E6
background
#F7FAF7
surface
#EDF4ED
border
#C8CEC8
text
#081008
muted
#7B7F7B

Preview Lab

Preview with #1F8740

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

Preview Lab → · Contrast checker → · Palette generator →

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