#1FA540#1FA540

#1FA540 is a light, vivid green. Relative luminance 0.276; OKLCH L 63.2% C 0.179 H 146.6°. Best body text is #000000 at 6.51:1 contrast (WCAG AA passes).

Color values

HEX#1FA540
RGBrgb(31, 165, 64)
HSLhsl(135, 68%, 38%)
HSVhsv(135, 81%, 65%)
CMYKcmyk(81.2%, 0%, 61.2%, 35.3%)
CIE-LABlab(59.50, -55.56, 41.83)
CIE-LCHlch(59.50, 69.54, 143.02°)
OKLaboklab(63.25% -0.1494 0.0985)
OKLCHoklch(63.25% 0.179 146.6)
XYZxyz(14.9445, 27.5699, 9.3834)
Luminance0.2757 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1FA540 #A51F84
analogous
#41A51F #1FA540 #1FA583
triadic
#1FA540 #401FA5 #A5401F
tetradic
#1FA540 #1F41A5 #A51F84 #A5831F
square
#1FA540 #1F41A5 #A51F84 #A5831F
split-complementary
#1FA540 #831FA5 #A51F41
monochromatic
#0C3E18 #15712C #1FA540 #2AD755 #5EE17E

Accessibility & contrast

On white

3.22
#1FA540 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.51
#1FA540 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #1FA540
6.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1FA540#FFFFFF#000000##000000
##1FA5401.003.226.516.51
#FFFFFF3.221.0021.0021.00
#0000006.5121.001.001.00
##0000006.5121.001.001.00

Color blindness preview

Protanopia (red-blind)
#A79535
Deuteranopia (green-blind)
#998B48
Tritanopia (blue-blind)
#00A18F
Achromatopsia (no color)
#8F8F8F

Design tokens & code

CSS
--color: #1fa540;
/* rgb */ color: rgb(31, 165, 64);
/* oklch */ color: oklch(63.2% 0.179 146.6);
Tailwind
colors: {
  custom: {
    50: '#74c178',
    500: '#1fa540',
    950: '#000000',
  },
}
SCSS
$custom: #1fa540;
$custom-light: #74c178;
$custom-dark: #000000;
JSON
{
  "hex": "#1fa540",
  "rgb": {
    "r": 31,
    "g": 165,
    "b": 64
  },
  "hsl": {
    "h": 134.776,
    "s": 68.367,
    "l": 38.431
  },
  "oklch": {
    "l": 0.63245,
    "c": 0.17897,
    "h": 146.6
  },
  "luminance": 0.27572
}

Semantic roles & 50–950 ramp

primary
#1FA540
secondary
#C55BAB
accent
#3DC0EB
background
#F7FCF7
surface
#EEF8ED
border
#C9D1C8
text
#0A1209
muted
#7C817B

Preview Lab

Preview with #1FA540

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

Preview Lab → · Contrast checker → · Palette generator →

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