#1FA842#1FA842

#1FA842 is a light, vivid green. Relative luminance 0.287; OKLCH L 64.1% C 0.181 H 146.8°. Best body text is #000000 at 6.74:1 contrast (WCAG AA passes).

Color values

HEX#1FA842
RGBrgb(31, 168, 66)
HSLhsl(135, 69%, 39%)
HSVhsv(135, 82%, 66%)
CMYKcmyk(81.5%, 0%, 60.7%, 34.1%)
CIE-LABlab(60.51, -56.30, 42.06)
CIE-LCHlch(60.51, 70.28, 143.24°)
OKLaboklab(64.09% -0.1514 0.0992)
OKLCHoklch(64.09% 0.181 146.8)
XYZxyz(15.5499, 28.6880, 9.8710)
Luminance0.2869 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1FA842 #A81F85
analogous
#41A81F #1FA842 #1FA887
triadic
#1FA842 #421FA8 #A8421F
tetradic
#1FA842 #1F41A8 #A81F85 #A8871F
square
#1FA842 #1F41A8 #A81F85 #A8871F
split-complementary
#1FA842 #871FA8 #A81F41
monochromatic
#0C4119 #15742E #1FA842 #2CD858 #60E281

Accessibility & contrast

On white

3.12
#1FA842 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.74
#1FA842 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #1FA842
6.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1FA842#FFFFFF#000000##000000
##1FA8421.003.126.746.74
#FFFFFF3.121.0021.0021.00
#0000006.7421.001.001.00
##0000006.7421.001.001.00

Color blindness preview

Protanopia (red-blind)
#AA9837
Deuteranopia (green-blind)
#9B8E4B
Tritanopia (blue-blind)
#00A492
Achromatopsia (no color)
#929292

Design tokens & code

CSS
--color: #1fa842;
/* rgb */ color: rgb(31, 168, 66);
/* oklch */ color: oklch(64.1% 0.181 146.8);
Tailwind
colors: {
  custom: {
    50: '#74c37a',
    500: '#1fa842',
    950: '#000000',
  },
}
SCSS
$custom: #1fa842;
$custom-light: #74c37a;
$custom-dark: #000000;
JSON
{
  "hex": "#1fa842",
  "rgb": {
    "r": 31,
    "g": 168,
    "b": 66
  },
  "hsl": {
    "h": 135.328,
    "s": 68.844,
    "l": 39.02
  },
  "oklch": {
    "l": 0.64088,
    "c": 0.18098,
    "h": 146.8
  },
  "luminance": 0.2869
}

Semantic roles & 50–950 ramp

primary
#1FA842
secondary
#C65DAB
accent
#3CBFEC
background
#F7FCF7
surface
#EEF8EE
border
#C9D1C9
text
#0A1309
muted
#7C827B

Preview Lab

Preview with #1FA842

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

Preview Lab → · Contrast checker → · Palette generator →

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