#1F9742#1F9742

#1F9742 is a mid, vivid green. Relative luminance 0.228; OKLCH L 59.4% C 0.160 H 148.0°. Best body text is #000000 at 5.56:1 contrast (WCAG AA passes).

Color values

HEX#1F9742
RGBrgb(31, 151, 66)
HSLhsl(138, 66%, 36%)
HSVhsv(138, 79%, 59%)
CMYKcmyk(79.5%, 0%, 56.3%, 40.8%)
CIE-LABlab(54.88, -50.49, 35.44)
CIE-LCHlch(54.88, 61.69, 144.93°)
OKLaboklab(59.42% -0.1357 0.0847)
OKLCHoklch(59.42% 0.16 148)
XYZxyz(12.6140, 22.8164, 8.8924)
Luminance0.2282 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F9742 #971F74
analogous
#38971F #1F9742 #1F977E
triadic
#1F9742 #421F97 #97421F
tetradic
#1F9742 #1F3897 #971F74 #977E1F
square
#1F9742 #1F3897 #971F74 #977E1F
split-complementary
#1F9742 #7E1F97 #971F38
monochromatic
#0A3116 #15642C #1F9742 #29CA58 #54DC7C

Accessibility & contrast

On white

3.77
#1F9742 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.56
#1F9742 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #1F9742
5.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F9742#FFFFFF#000000##000000
##1F97421.003.775.565.56
#FFFFFF3.771.0021.0021.00
#0000005.5621.001.001.00
##0000005.5621.001.001.00

Color blindness preview

Protanopia (red-blind)
#99893A
Deuteranopia (green-blind)
#8B8049
Tritanopia (blue-blind)
#009484
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #1f9742;
/* rgb */ color: rgb(31, 151, 66);
/* oklch */ color: oklch(59.4% 0.160 148.0);
Tailwind
colors: {
  custom: {
    50: '#70b779',
    500: '#1f9742',
    950: '#000000',
  },
}
SCSS
$custom: #1f9742;
$custom-light: #70b779;
$custom-dark: #000000;
JSON
{
  "hex": "#1f9742",
  "rgb": {
    "r": 31,
    "g": 151,
    "b": 66
  },
  "hsl": {
    "h": 137.5,
    "s": 65.934,
    "l": 35.686
  },
  "oklch": {
    "l": 0.59423,
    "c": 0.15998,
    "h": 148
  },
  "luminance": 0.22818
}

Semantic roles & 50–950 ramp

primary
#1F9742
secondary
#BF52A0
accent
#3FB7E9
background
#F7FBF7
surface
#EDF6ED
border
#C8D0C8
text
#091109
muted
#7B807B

Preview Lab

Preview with #1F9742

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

Preview Lab → · Contrast checker → · Palette generator →

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