#1F9A42#1F9A42

#1F9A42 is a mid, vivid green. Relative luminance 0.238; OKLCH L 60.3% C 0.164 H 147.8°. Best body text is #000000 at 5.76:1 contrast (WCAG AA passes).

Color values

HEX#1F9A42
RGBrgb(31, 154, 66)
HSLhsl(137, 66%, 36%)
HSVhsv(137, 80%, 60%)
CMYKcmyk(79.9%, 0%, 57.1%, 39.6%)
CIE-LABlab(55.88, -51.54, 36.63)
CIE-LCHlch(55.88, 63.23, 144.60°)
OKLaboklab(60.25% -0.1385 0.0874)
OKLCHoklch(60.25% 0.164 147.8)
XYZxyz(13.1030, 23.7943, 9.0554)
Luminance0.2380 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F9A42 #9A1F77
analogous
#3A9A1F #1F9A42 #1F9A80
triadic
#1F9A42 #421F9A #9A421F
tetradic
#1F9A42 #1F3A9A #9A1F77 #9A801F
square
#1F9A42 #1F3A9A #9A1F77 #9A801F
split-complementary
#1F9A42 #801F9A #9A1F3A
monochromatic
#0A3416 #15672C #1F9A42 #29CD58 #56DD7D

Accessibility & contrast

On white

3.65
#1F9A42 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.76
#1F9A42 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #1F9A42
5.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F9A42#FFFFFF#000000##000000
##1F9A421.003.655.765.76
#FFFFFF3.651.0021.0021.00
#0000005.7621.001.001.00
##0000005.7621.001.001.00

Color blindness preview

Protanopia (red-blind)
#9C8C3A
Deuteranopia (green-blind)
#8E8249
Tritanopia (blue-blind)
#009786
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #1f9a42;
/* rgb */ color: rgb(31, 154, 66);
/* oklch */ color: oklch(60.3% 0.164 147.8);
Tailwind
colors: {
  custom: {
    50: '#71b979',
    500: '#1f9a42',
    950: '#000000',
  },
}
SCSS
$custom: #1f9a42;
$custom-light: #71b979;
$custom-dark: #000000;
JSON
{
  "hex": "#1f9a42",
  "rgb": {
    "r": 31,
    "g": 154,
    "b": 66
  },
  "hsl": {
    "h": 137.073,
    "s": 66.486,
    "l": 36.275
  },
  "oklch": {
    "l": 0.60251,
    "c": 0.16377,
    "h": 147.8
  },
  "luminance": 0.23796
}

Semantic roles & 50–950 ramp

primary
#1F9A42
secondary
#C154A2
accent
#3EB9E9
background
#F7FBF7
surface
#EDF6ED
border
#C8D0C8
text
#091209
muted
#7B817B

Preview Lab

Preview with #1F9A42

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

Preview Lab → · Contrast checker → · Palette generator →

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