#31B842#31B842

#31B842 is a light, vivid green. Relative luminance 0.353; OKLCH L 68.7% C 0.195 H 144.8°. Best body text is #000000 at 8.07:1 contrast (WCAG AA passes).

Color values

HEX#31B842
RGBrgb(49, 184, 66)
HSLhsl(128, 58%, 46%)
HSVhsv(128, 73%, 72%)
CMYKcmyk(73.4%, 0%, 64.1%, 27.8%)
CIE-LABlab(66.00, -59.12, 48.37)
CIE-LCHlch(66.00, 76.39, 140.71°)
OKLaboklab(68.74% -0.1597 0.1126)
OKLCHoklch(68.74% 0.195 144.8)
XYZxyz(19.3892, 35.3251, 10.9498)
Luminance0.3533 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31B842 #B831A7
analogous
#63B831 #31B842 #31B886
triadic
#31B842 #4231B8 #B84231
tetradic
#31B842 #3163B8 #B831A7 #B88631
square
#31B842 #3163B8 #B831A7 #B88631
split-complementary
#31B842 #8631B8 #B83163
monochromatic
#17571F #248831 #31B842 #55D264 #85DE90

Accessibility & contrast

On white

2.60
#31B842 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.07
#31B842 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #31B842
8.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31B842#FFFFFF#000000##000000
##31B8421.002.608.078.07
#FFFFFF2.601.0021.0021.00
#0000008.0721.001.001.00
##0000008.0721.001.001.00

Color blindness preview

Protanopia (red-blind)
#BBA734
Deuteranopia (green-blind)
#AC9C4C
Tritanopia (blue-blind)
#00B39F
Achromatopsia (no color)
#A0A0A0

Design tokens & code

CSS
--color: #31b842;
/* rgb */ color: rgb(49, 184, 66);
/* oklch */ color: oklch(68.7% 0.195 144.8);
Tailwind
colors: {
  custom: {
    50: '#7ece7b',
    500: '#31b842',
    950: '#000000',
  },
}
SCSS
$custom: #31b842;
$custom-light: #7ece7b;
$custom-dark: #000000;
JSON
{
  "hex": "#31b842",
  "rgb": {
    "r": 49,
    "g": 184,
    "b": 66
  },
  "hsl": {
    "h": 127.556,
    "s": 57.94,
    "l": 45.686
  },
  "oklch": {
    "l": 0.68735,
    "c": 0.19542,
    "h": 144.8
  },
  "luminance": 0.35327
}

Semantic roles & 50–950 ramp

primary
#31B842
secondary
#C87DBE
accent
#47CEE1
background
#F8FCF7
surface
#EFF9EE
border
#CAD2C9
text
#0B140A
muted
#7C827C

Preview Lab

Preview with #31B842

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

Preview Lab → · Contrast checker → · Palette generator →

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