#1FA840#1FA840

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

Color values

HEX#1FA840
RGBrgb(31, 168, 64)
HSLhsl(134, 69%, 39%)
HSVhsv(134, 82%, 66%)
CMYKcmyk(81.5%, 0%, 61.9%, 34.1%)
CIE-LABlab(60.48, -56.55, 42.96)
CIE-LCHlch(60.48, 71.02, 142.78°)
OKLaboklab(64.06% -0.1521 0.1009)
OKLCHoklch(64.06% 0.183 146.4)
XYZxyz(15.4919, 28.6648, 9.5659)
Luminance0.2867 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1FA840 #A81F87
analogous
#42A81F #1FA840 #1FA885
triadic
#1FA840 #401FA8 #A8401F
tetradic
#1FA840 #1F42A8 #A81F87 #A8851F
square
#1FA840 #1F42A8 #A81F87 #A8851F
split-complementary
#1FA840 #851FA8 #A81F42
monochromatic
#0C4119 #15742C #1FA840 #2CD856 #60E27F

Accessibility & contrast

On white

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

On black

6.73
#1FA840 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #1FA840
6.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1FA840#FFFFFF#000000##000000
##1FA8401.003.126.736.73
#FFFFFF3.121.0021.0021.00
#0000006.7321.001.001.00
##0000006.7321.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1fa840;
/* rgb */ color: rgb(31, 168, 64);
/* oklch */ color: oklch(64.1% 0.183 146.4);
Tailwind
colors: {
  custom: {
    50: '#74c379',
    500: '#1fa840',
    950: '#000000',
  },
}
SCSS
$custom: #1fa840;
$custom-light: #74c379;
$custom-dark: #000000;
JSON
{
  "hex": "#1fa840",
  "rgb": {
    "r": 31,
    "g": 168,
    "b": 64
  },
  "hsl": {
    "h": 134.453,
    "s": 68.844,
    "l": 39.02
  },
  "oklch": {
    "l": 0.64064,
    "c": 0.18256,
    "h": 146.4
  },
  "luminance": 0.28667
}

Semantic roles & 50–950 ramp

primary
#1FA840
secondary
#C65DAD
accent
#3CC1EC
background
#F7FCF7
surface
#EEF8ED
border
#C9D1C8
text
#0A1309
muted
#7C827B

Preview Lab

Preview with #1FA840

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

Preview Lab → · Contrast checker → · Palette generator →

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