#31AF57#31AF57

#31AF57 is a light, vivid green. Relative luminance 0.320; OKLCH L 66.6% C 0.167 H 149.1°. Best body text is #000000 at 7.40:1 contrast (WCAG AA passes).

Color values

HEX#31AF57
RGBrgb(49, 175, 87)
HSLhsl(138, 56%, 44%)
HSVhsv(138, 72%, 69%)
CMYKcmyk(72%, 0%, 50.3%, 31.4%)
CIE-LABlab(63.34, -53.19, 35.31)
CIE-LCHlch(63.34, 63.85, 146.42°)
OKLaboklab(66.61% -0.1431 0.0857)
OKLCHoklch(66.61% 0.167 149.1)
XYZxyz(18.3154, 31.9990, 14.2261)
Luminance0.3200 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31AF57 #AF3189
analogous
#4AAF31 #31AF57 #31AF96
triadic
#31AF57 #5731AF #AF5731
tetradic
#31AF57 #314AAF #AF3189 #AF9631
square
#31AF57 #314AAF #AF3189 #AF9631
split-complementary
#31AF57 #9631AF #AF314A
monochromatic
#164F27 #247F3F #31AF57 #4FCE76 #7FDB9B

Accessibility & contrast

On white

2.84
#31AF57 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.40
#31AF57 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #31AF57
7.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31AF57#FFFFFF#000000##000000
##31AF571.002.847.407.40
#FFFFFF2.841.0021.0021.00
#0000007.4021.001.001.00
##0000007.4021.001.001.00

Color blindness preview

Protanopia (red-blind)
#B0A050
Deuteranopia (green-blind)
#A1955D
Tritanopia (blue-blind)
#00AC9B
Achromatopsia (no color)
#999999

Design tokens & code

CSS
--color: #31af57;
/* rgb */ color: rgb(49, 175, 87);
/* oklch */ color: oklch(66.6% 0.167 149.1);
Tailwind
colors: {
  custom: {
    50: '#7bc888',
    500: '#31af57',
    950: '#000000',
  },
}
SCSS
$custom: #31af57;
$custom-light: #7bc888;
$custom-dark: #000000;
JSON
{
  "hex": "#31af57",
  "rgb": {
    "r": 49,
    "g": 175,
    "b": 87
  },
  "hsl": {
    "h": 138.095,
    "s": 56.25,
    "l": 43.922
  },
  "oklch": {
    "l": 0.66609,
    "c": 0.16682,
    "h": 149.1
  },
  "luminance": 0.32001
}

Semantic roles & 50–950 ramp

primary
#31AF57
secondary
#C478AD
accent
#48B2E0
background
#F8FCF8
surface
#EFF8F0
border
#CAD1CB
text
#0B130B
muted
#7C827C

Preview Lab

Preview with #31AF57

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

Preview Lab → · Contrast checker → · Palette generator →

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