#31AF52#31AF52

#31AF52 is a light, vivid green. Relative luminance 0.319; OKLCH L 66.5% C 0.171 H 148.0°. Best body text is #000000 at 7.38:1 contrast (WCAG AA passes).

Color values

HEX#31AF52
RGBrgb(49, 175, 82)
HSLhsl(136, 56%, 44%)
HSVhsv(136, 72%, 69%)
CMYKcmyk(72%, 0%, 53.1%, 31.4%)
CIE-LABlab(63.28, -53.95, 37.73)
CIE-LCHlch(63.28, 65.84, 145.03°)
OKLaboklab(66.53% -0.1453 0.0908)
OKLCHoklch(66.53% 0.171 148)
XYZxyz(18.1182, 31.9201, 13.1873)
Luminance0.3192 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31AF52 #AF318E
analogous
#4FAF31 #31AF52 #31AF91
triadic
#31AF52 #5231AF #AF5231
tetradic
#31AF52 #314FAF #AF318E #AF9131
square
#31AF52 #314FAF #AF318E #AF9131
split-complementary
#31AF52 #9131AF #AF314F
monochromatic
#164F25 #247F3C #31AF52 #4FCE70 #7FDB97

Accessibility & contrast

On white

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

On black

7.38
#31AF52 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #31AF52
7.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31AF52#FFFFFF#000000##000000
##31AF521.002.847.387.38
#FFFFFF2.841.0021.0021.00
#0000007.3821.001.001.00
##0000007.3821.001.001.00

Color blindness preview

Protanopia (red-blind)
#B19F4A
Deuteranopia (green-blind)
#A29559
Tritanopia (blue-blind)
#00AB9A
Achromatopsia (no color)
#999999

Design tokens & code

CSS
--color: #31af52;
/* rgb */ color: rgb(49, 175, 82);
/* oklch */ color: oklch(66.5% 0.171 148.0);
Tailwind
colors: {
  custom: {
    50: '#7bc885',
    500: '#31af52',
    950: '#000000',
  },
}
SCSS
$custom: #31af52;
$custom-light: #7bc885;
$custom-dark: #000000;
JSON
{
  "hex": "#31af52",
  "rgb": {
    "r": 49,
    "g": 175,
    "b": 82
  },
  "hsl": {
    "h": 135.714,
    "s": 56.25,
    "l": 43.922
  },
  "oklch": {
    "l": 0.66534,
    "c": 0.1713,
    "h": 148
  },
  "luminance": 0.31922
}

Semantic roles & 50–950 ramp

primary
#31AF52
secondary
#C478B0
accent
#48B8E0
background
#F8FCF8
surface
#EFF8EF
border
#CAD1CA
text
#0B130B
muted
#7C827C

Preview Lab

Preview with #31AF52

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

Preview Lab → · Contrast checker → · Palette generator →

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