#31A532#31A532

#31A532 is a light, vivid green. Relative luminance 0.278; OKLCH L 63.5% C 0.184 H 143.1°. Best body text is #000000 at 6.56:1 contrast (WCAG AA passes).

Color values

HEX#31A532
RGBrgb(49, 165, 50)
HSLhsl(121, 54%, 42%)
HSVhsv(121, 70%, 65%)
CMYKcmyk(70.3%, 0%, 69.7%, 35.3%)
CIE-LABlab(59.70, -54.32, 48.26)
CIE-LCHlch(59.70, 72.66, 138.38°)
OKLaboklab(63.47% -0.1474 0.1106)
OKLCHoklch(63.47% 0.184 143.1)
XYZxyz(15.2966, 27.7919, 7.5752)
Luminance0.2779 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31A532 #A531A4
analogous
#6AA531 #31A532 #31A56C
triadic
#31A532 #3231A5 #A53231
tetradic
#31A532 #316AA5 #A531A4 #A56C31
square
#31A532 #316AA5 #A531A4 #A56C31
split-complementary
#31A532 #6C31A5 #A5316A
monochromatic
#154715 #237624 #31A532 #4AC94B #79D77A

Accessibility & contrast

On white

3.20
#31A532 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.56
#31A532 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #31A532
6.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31A532#FFFFFF#000000##000000
##31A5321.003.206.566.56
#FFFFFF3.201.0021.0021.00
#0000006.5621.001.001.00
##0000006.5621.001.001.00

Color blindness preview

Protanopia (red-blind)
#A99521
Deuteranopia (green-blind)
#9B8C3D
Tritanopia (blue-blind)
#0DA08E
Achromatopsia (no color)
#909090

Design tokens & code

CSS
--color: #31a532;
/* rgb */ color: rgb(49, 165, 50);
/* oklch */ color: oklch(63.5% 0.184 143.1);
Tailwind
colors: {
  custom: {
    50: '#7ac170',
    500: '#31a532',
    950: '#000000',
  },
}
SCSS
$custom: #31a532;
$custom-light: #7ac170;
$custom-dark: #000000;
JSON
{
  "hex": "#31a532",
  "rgb": {
    "r": 49,
    "g": 165,
    "b": 50
  },
  "hsl": {
    "h": 120.517,
    "s": 54.206,
    "l": 41.961
  },
  "oklch": {
    "l": 0.63467,
    "c": 0.18431,
    "h": 143.1
  },
  "luminance": 0.27794
}

Semantic roles & 50–950 ramp

primary
#31A532
secondary
#C072BF
accent
#4ADCDE
background
#F8FCF7
surface
#EFF8ED
border
#CAD1C8
text
#0B1208
muted
#7C817B

Preview Lab

Preview with #31A532

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

Preview Lab → · Contrast checker → · Palette generator →

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