#31B840#31B840

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

Color values

HEX#31B840
RGBrgb(49, 184, 64)
HSLhsl(127, 58%, 46%)
HSVhsv(127, 73%, 72%)
CMYKcmyk(73.4%, 0%, 65.2%, 27.8%)
CIE-LABlab(65.98, -59.33, 49.22)
CIE-LCHlch(65.98, 77.09, 140.32°)
OKLaboklab(68.71% -0.1604 0.1142)
OKLCHoklch(68.71% 0.197 144.5)
XYZxyz(19.3312, 35.3019, 10.6447)
Luminance0.3530 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31B840 #B831A9
analogous
#65B831 #31B840 #31B883
triadic
#31B840 #4031B8 #B84031
tetradic
#31B840 #3165B8 #B831A9 #B88331
square
#31B840 #3165B8 #B831A9 #B88331
split-complementary
#31B840 #8331B8 #B83165
monochromatic
#17571E #24882F #31B840 #55D262 #85DE8F

Accessibility & contrast

On white

2.61
#31B840 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.06
#31B840 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #31B840
8.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31B840#FFFFFF#000000##000000
##31B8401.002.618.068.06
#FFFFFF2.611.0021.0021.00
#0000008.0621.001.001.00
##0000008.0621.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #31b840;
/* rgb */ color: rgb(49, 184, 64);
/* oklch */ color: oklch(68.7% 0.197 144.5);
Tailwind
colors: {
  custom: {
    50: '#7ece7a',
    500: '#31b840',
    950: '#000000',
  },
}
SCSS
$custom: #31b840;
$custom-light: #7ece7a;
$custom-dark: #000000;
JSON
{
  "hex": "#31b840",
  "rgb": {
    "r": 49,
    "g": 184,
    "b": 64
  },
  "hsl": {
    "h": 126.667,
    "s": 57.94,
    "l": 45.686
  },
  "oklch": {
    "l": 0.68714,
    "c": 0.19688,
    "h": 144.5
  },
  "luminance": 0.35304
}

Semantic roles & 50–950 ramp

primary
#31B840
secondary
#C87DC0
accent
#47D0E1
background
#F8FCF7
surface
#F0F9EE
border
#CBD2C9
text
#0B1409
muted
#7C827B

Preview Lab

Preview with #31B840

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

Preview Lab → · Contrast checker → · Palette generator →

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