#1F8742#1F8742

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

Color values

HEX#1F8742
RGBrgb(31, 135, 66)
HSLhsl(140, 63%, 33%)
HSVhsv(140, 77%, 53%)
CMYKcmyk(77%, 0%, 51.1%, 47.1%)
CIE-LABlab(49.51, -44.67, 28.86)
CIE-LCHlch(49.51, 53.19, 147.13°)
OKLaboklab(54.97% -0.1201 0.0701)
OKLCHoklch(54.97% 0.139 149.7)
XYZxyz(10.2116, 18.0114, 8.0916)
Luminance0.1801 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F8742 #871F64
analogous
#30871F #1F8742 #1F8776
triadic
#1F8742 #421F87 #87421F
tetradic
#1F8742 #1F3087 #871F64 #87761F
square
#1F8742 #1F3087 #871F64 #87761F
split-complementary
#1F8742 #761F87 #871F30
monochromatic
#082311 #14552A #1F8742 #2AB95A #4BD67A

Accessibility & contrast

On white

4.56
#1F8742 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##1F8742#FFFFFF#000000##000000
##1F87421.004.564.604.60
#FFFFFF4.561.0021.0021.00
#0000004.6021.001.001.00
##0000004.6021.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1f8742;
/* rgb */ color: rgb(31, 135, 66);
/* oklch */ color: oklch(55.0% 0.139 149.7);
Tailwind
colors: {
  custom: {
    50: '#6cab78',
    500: '#1f8742',
    950: '#000000',
  },
}
SCSS
$custom: #1f8742;
$custom-light: #6cab78;
$custom-dark: #000000;
JSON
{
  "hex": "#1f8742",
  "rgb": {
    "r": 31,
    "g": 135,
    "b": 66
  },
  "hsl": {
    "h": 140.192,
    "s": 62.651,
    "l": 32.549
  },
  "oklch": {
    "l": 0.54973,
    "c": 0.13906,
    "h": 149.7
  },
  "luminance": 0.18013
}

Semantic roles & 50–950 ramp

primary
#1F8742
secondary
#B84A93
accent
#42AFE6
background
#F7FAF7
surface
#EDF4ED
border
#C8CEC8
text
#081009
muted
#7B7F7B

Preview Lab

Preview with #1F8742

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

Preview Lab → · Contrast checker → · Palette generator →

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