#1FAF42#1FAF42

#1FAF42 is a light, vivid green. Relative luminance 0.313; OKLCH L 66.0% C 0.189 H 146.4°. Best body text is #000000 at 7.27:1 contrast (WCAG AA passes).

Color values

HEX#1FAF42
RGBrgb(31, 175, 66)
HSLhsl(135, 70%, 40%)
HSVhsv(135, 82%, 69%)
CMYKcmyk(82.3%, 0%, 62.3%, 31.4%)
CIE-LABlab(62.80, -58.60, 44.69)
CIE-LCHlch(62.80, 73.70, 142.67°)
OKLaboklab(65.99% -0.1576 0.1048)
OKLCHoklch(65.99% 0.189 146.4)
XYZxyz(16.8771, 31.3425, 10.3134)
Luminance0.3135 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1FAF42 #AF1F8C
analogous
#44AF1F #1FAF42 #1FAF8A
triadic
#1FAF42 #421FAF #AF421F
tetradic
#1FAF42 #1F44AF #AF1F8C #AF8A1F
square
#1FAF42 #1F44AF #AF1F8C #AF8A1F
split-complementary
#1FAF42 #8A1FAF #AF1F44
monochromatic
#0D471B #167B2E #1FAF42 #31DA5A #65E484

Accessibility & contrast

On white

2.89
#1FAF42 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.27
#1FAF42 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #1FAF42
7.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1FAF42#FFFFFF#000000##000000
##1FAF421.002.897.277.27
#FFFFFF2.891.0021.0021.00
#0000007.2721.001.001.00
##0000007.2721.001.001.00

Color blindness preview

Protanopia (red-blind)
#B19E36
Deuteranopia (green-blind)
#A2944B
Tritanopia (blue-blind)
#00AB98
Achromatopsia (no color)
#989898

Design tokens & code

CSS
--color: #1faf42;
/* rgb */ color: rgb(31, 175, 66);
/* oklch */ color: oklch(66.0% 0.189 146.4);
Tailwind
colors: {
  custom: {
    50: '#76c87a',
    500: '#1faf42',
    950: '#000000',
  },
}
SCSS
$custom: #1faf42;
$custom-light: #76c87a;
$custom-dark: #000000;
JSON
{
  "hex": "#1faf42",
  "rgb": {
    "r": 31,
    "g": 175,
    "b": 66
  },
  "hsl": {
    "h": 134.583,
    "s": 69.903,
    "l": 40.392
  },
  "oklch": {
    "l": 0.6599,
    "c": 0.1893,
    "h": 146.4
  },
  "luminance": 0.31345
}

Semantic roles & 50–950 ramp

primary
#1FAF42
secondary
#C961B0
accent
#3BC2ED
background
#F7FCF7
surface
#EEF8EE
border
#C9D1C9
text
#0A1309
muted
#7C827B

Preview Lab

Preview with #1FAF42

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

Preview Lab → · Contrast checker → · Palette generator →

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