#31BA52#31BA52

#31BA52 is a light, vivid green. Relative luminance 0.364; OKLCH L 69.5% C 0.185 H 147.2°. Best body text is #000000 at 8.28:1 contrast (WCAG AA passes).

Color values

HEX#31BA52
RGBrgb(49, 186, 82)
HSLhsl(134, 58%, 46%)
HSVhsv(134, 74%, 73%)
CMYKcmyk(73.7%, 0%, 55.9%, 27.1%)
CIE-LABlab(66.81, -57.82, 41.99)
CIE-LCHlch(66.81, 71.46, 144.01°)
OKLaboklab(69.46% -0.1557 0.1002)
OKLCHoklch(69.46% 0.185 147.2)
XYZxyz(20.3470, 36.3776, 13.9303)
Luminance0.3638 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31BA52 #BA3199
analogous
#54BA31 #31BA52 #31BA96
triadic
#31BA52 #5231BA #BA5231
tetradic
#31BA52 #3154BA #BA3199 #BA9631
square
#31BA52 #3154BA #BA3199 #BA9631
split-complementary
#31BA52 #9631BA #BA3154
monochromatic
#175927 #248A3D #31BA52 #56D274 #86DF9C

Accessibility & contrast

On white

2.54
#31BA52 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.28
#31BA52 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #31BA52
8.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31BA52#FFFFFF#000000##000000
##31BA521.002.548.288.28
#FFFFFF2.541.0021.0021.00
#0000008.2821.001.001.00
##0000008.2821.001.001.00

Color blindness preview

Protanopia (red-blind)
#BCA948
Deuteranopia (green-blind)
#AC9E5A
Tritanopia (blue-blind)
#00B6A3
Achromatopsia (no color)
#A3A3A3

Design tokens & code

CSS
--color: #31ba52;
/* rgb */ color: rgb(49, 186, 82);
/* oklch */ color: oklch(69.5% 0.185 147.2);
Tailwind
colors: {
  custom: {
    50: '#7dd085',
    500: '#31ba52',
    950: '#000000',
  },
}
SCSS
$custom: #31ba52;
$custom-light: #7dd085;
$custom-dark: #000000;
JSON
{
  "hex": "#31ba52",
  "rgb": {
    "r": 49,
    "g": 186,
    "b": 82
  },
  "hsl": {
    "h": 134.453,
    "s": 58.298,
    "l": 46.078
  },
  "oklch": {
    "l": 0.69457,
    "c": 0.18514,
    "h": 147.2
  },
  "luminance": 0.3638
}

Semantic roles & 50–950 ramp

primary
#31BA52
secondary
#C97EB7
accent
#46BCE2
background
#F8FCF8
surface
#EFF9EF
border
#CAD2CA
text
#0B140B
muted
#7C827C

Preview Lab

Preview with #31BA52

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

Preview Lab → · Contrast checker → · Palette generator →

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