#31AF40#31AF40

#31AF40 is a light, vivid green. Relative luminance 0.317; OKLCH L 66.3% C 0.186 H 144.8°. Best body text is #000000 at 7.34:1 contrast (WCAG AA passes).

Color values

HEX#31AF40
RGBrgb(49, 175, 64)
HSLhsl(127, 56%, 44%)
HSVhsv(127, 72%, 69%)
CMYKcmyk(72%, 0%, 63.4%, 31.4%)
CIE-LABlab(63.08, -56.29, 45.98)
CIE-LCHlch(63.08, 72.69, 140.76°)
OKLaboklab(66.31% -0.1521 0.1073)
OKLCHoklch(66.31% 0.186 144.8)
XYZxyz(17.5208, 31.6811, 10.0412)
Luminance0.3168 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31AF40 #AF31A0
analogous
#61AF31 #31AF40 #31AF7F
triadic
#31AF40 #4031AF #AF4031
tetradic
#31AF40 #3161AF #AF31A0 #AF7F31
square
#31AF40 #3161AF #AF31A0 #AF7F31
split-complementary
#31AF40 #7F31AF #AF3161
monochromatic
#164F1D #247F2F #31AF40 #4FCE5E #7FDB8A

Accessibility & contrast

On white

2.86
#31AF40 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.34
#31AF40 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #31AF40
7.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31AF40#FFFFFF#000000##000000
##31AF401.002.867.347.34
#FFFFFF2.861.0021.0021.00
#0000007.3421.001.001.00
##0000007.3421.001.001.00

Color blindness preview

Protanopia (red-blind)
#B29F33
Deuteranopia (green-blind)
#A3954A
Tritanopia (blue-blind)
#00AA98
Achromatopsia (no color)
#999999

Design tokens & code

CSS
--color: #31af40;
/* rgb */ color: rgb(49, 175, 64);
/* oklch */ color: oklch(66.3% 0.186 144.8);
Tailwind
colors: {
  custom: {
    50: '#7cc879',
    500: '#31af40',
    950: '#000000',
  },
}
SCSS
$custom: #31af40;
$custom-light: #7cc879;
$custom-dark: #000000;
JSON
{
  "hex": "#31af40",
  "rgb": {
    "r": 49,
    "g": 175,
    "b": 64
  },
  "hsl": {
    "h": 127.143,
    "s": 56.25,
    "l": 43.922
  },
  "oklch": {
    "l": 0.66306,
    "c": 0.18618,
    "h": 144.8
  },
  "luminance": 0.31683
}

Semantic roles & 50–950 ramp

primary
#31AF40
secondary
#C478BB
accent
#48CEE0
background
#F8FCF7
surface
#EFF8EE
border
#CAD1C9
text
#0B1309
muted
#7C827B

Preview Lab

Preview with #31AF40

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

Preview Lab → · Contrast checker → · Palette generator →

#31AF40 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva