#31BA42#31BA42

#31BA42 is a light, vivid green. Relative luminance 0.362; OKLCH L 69.3% C 0.198 H 144.8°. Best body text is #000000 at 8.23:1 contrast (WCAG AA passes).

Color values

HEX#31BA42
RGBrgb(49, 186, 66)
HSLhsl(127, 58%, 46%)
HSVhsv(127, 74%, 73%)
CMYKcmyk(73.7%, 0%, 64.5%, 27.1%)
CIE-LABlab(66.64, -59.78, 49.09)
CIE-LCHlch(66.64, 77.36, 140.61°)
OKLaboklab(69.27% -0.1615 0.1141)
OKLCHoklch(69.27% 0.198 144.8)
XYZxyz(19.8076, 36.1619, 11.0892)
Luminance0.3616 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31BA42 #BA31A9
analogous
#64BA31 #31BA42 #31BA86
triadic
#31BA42 #4231BA #BA4231
tetradic
#31BA42 #3164BA #BA31A9 #BA8631
square
#31BA42 #3164BA #BA31A9 #BA8631
split-complementary
#31BA42 #8631BA #BA3164
monochromatic
#175920 #248A31 #31BA42 #56D265 #86DF91

Accessibility & contrast

On white

2.55
#31BA42 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.23
#31BA42 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #31BA42
8.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31BA42#FFFFFF#000000##000000
##31BA421.002.558.238.23
#FFFFFF2.551.0021.0021.00
#0000008.2321.001.001.00
##0000008.2321.001.001.00

Color blindness preview

Protanopia (red-blind)
#BDA933
Deuteranopia (green-blind)
#AE9E4D
Tritanopia (blue-blind)
#00B5A1
Achromatopsia (no color)
#A2A2A2

Design tokens & code

CSS
--color: #31ba42;
/* rgb */ color: rgb(49, 186, 66);
/* oklch */ color: oklch(69.3% 0.198 144.8);
Tailwind
colors: {
  custom: {
    50: '#7ed07b',
    500: '#31ba42',
    950: '#000000',
  },
}
SCSS
$custom: #31ba42;
$custom-light: #7ed07b;
$custom-dark: #000000;
JSON
{
  "hex": "#31ba42",
  "rgb": {
    "r": 49,
    "g": 186,
    "b": 66
  },
  "hsl": {
    "h": 127.445,
    "s": 58.298,
    "l": 46.078
  },
  "oklch": {
    "l": 0.69268,
    "c": 0.19777,
    "h": 144.8
  },
  "luminance": 0.36164
}

Semantic roles & 50–950 ramp

primary
#31BA42
secondary
#C97EC0
accent
#46CEE2
background
#F8FCF7
surface
#F0F9EE
border
#CBD2C9
text
#0B140A
muted
#7C827C

Preview Lab

Preview with #31BA42

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

Preview Lab → · Contrast checker → · Palette generator →

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