#31B540#31B540

#31B540 is a light, vivid green. Relative luminance 0.341; OKLCH L 67.9% C 0.193 H 144.6°. Best body text is #000000 at 7.81:1 contrast (WCAG AA passes).

Color values

HEX#31B540
RGBrgb(49, 181, 64)
HSLhsl(127, 57%, 45%)
HSVhsv(127, 73%, 71%)
CMYKcmyk(72.9%, 0%, 64.6%, 29%)
CIE-LABlab(65.02, -58.33, 48.15)
CIE-LCHlch(65.02, 75.63, 140.46°)
OKLaboklab(67.91% -0.1577 0.1119)
OKLCHoklch(67.91% 0.193 144.6)
XYZxyz(18.7147, 34.0688, 10.4391)
Luminance0.3407 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31B540 #B531A6
analogous
#64B531 #31B540 #31B582
triadic
#31B540 #4031B5 #B54031
tetradic
#31B540 #3164B5 #B531A6 #B58231
square
#31B540 #3164B5 #B531A6 #B58231
split-complementary
#31B540 #8231B5 #B53164
monochromatic
#17551E #24852F #31B540 #53D061 #83DD8D

Accessibility & contrast

On white

2.69
#31B540 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.81
#31B540 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #31B540
7.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31B540#FFFFFF#000000##000000
##31B5401.002.697.817.81
#FFFFFF2.691.0021.0021.00
#0000007.8121.001.001.00
##0000007.8121.001.001.00

Color blindness preview

Protanopia (red-blind)
#B8A432
Deuteranopia (green-blind)
#A99A4A
Tritanopia (blue-blind)
#00B09D
Achromatopsia (no color)
#9E9E9E

Design tokens & code

CSS
--color: #31b540;
/* rgb */ color: rgb(49, 181, 64);
/* oklch */ color: oklch(67.9% 0.193 144.6);
Tailwind
colors: {
  custom: {
    50: '#7dcc7a',
    500: '#31b540',
    950: '#000000',
  },
}
SCSS
$custom: #31b540;
$custom-light: #7dcc7a;
$custom-dark: #000000;
JSON
{
  "hex": "#31b540",
  "rgb": {
    "r": 49,
    "g": 181,
    "b": 64
  },
  "hsl": {
    "h": 126.818,
    "s": 57.391,
    "l": 45.098
  },
  "oklch": {
    "l": 0.67913,
    "c": 0.19335,
    "h": 144.6
  },
  "luminance": 0.34071
}

Semantic roles & 50–950 ramp

primary
#31B540
secondary
#C77BBE
accent
#47CFE1
background
#F8FCF7
surface
#EFF9EE
border
#CAD2C9
text
#0B1309
muted
#7C827B

Preview Lab

Preview with #31B540

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

Preview Lab → · Contrast checker → · Palette generator →

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