#31B545#31B545

#31B545 is a light, vivid green. Relative luminance 0.341; OKLCH L 68.0% C 0.190 H 145.3°. Best body text is #000000 at 7.83:1 contrast (WCAG AA passes).

Color values

HEX#31B545
RGBrgb(49, 181, 69)
HSLhsl(129, 57%, 45%)
HSVhsv(129, 73%, 71%)
CMYKcmyk(72.9%, 0%, 61.9%, 29%)
CIE-LABlab(65.06, -57.76, 45.99)
CIE-LCHlch(65.06, 73.84, 141.47°)
OKLaboklab(67.97% -0.1559 0.1078)
OKLCHoklch(67.97% 0.19 145.3)
XYZxyz(18.8634, 34.1283, 11.2223)
Luminance0.3413 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31B545 #B531A1
analogous
#5FB531 #31B545 #31B587
triadic
#31B545 #4531B5 #B54531
tetradic
#31B545 #315FB5 #B531A1 #B58731
square
#31B545 #315FB5 #B531A1 #B58731
split-complementary
#31B545 #8731B5 #B5315F
monochromatic
#175520 #248533 #31B545 #53D066 #83DD91

Accessibility & contrast

On white

2.68
#31B545 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.83
#31B545 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #31B545
7.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31B545#FFFFFF#000000##000000
##31B5451.002.687.837.83
#FFFFFF2.681.0021.0021.00
#0000007.8321.001.001.00
##0000007.8321.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #31b545;
/* rgb */ color: rgb(49, 181, 69);
/* oklch */ color: oklch(68.0% 0.190 145.3);
Tailwind
colors: {
  custom: {
    50: '#7dcc7d',
    500: '#31b545',
    950: '#000000',
  },
}
SCSS
$custom: #31b545;
$custom-light: #7dcc7d;
$custom-dark: #000000;
JSON
{
  "hex": "#31b545",
  "rgb": {
    "r": 49,
    "g": 181,
    "b": 69
  },
  "hsl": {
    "h": 129.091,
    "s": 57.391,
    "l": 45.098
  },
  "oklch": {
    "l": 0.67967,
    "c": 0.18958,
    "h": 145.3
  },
  "luminance": 0.3413
}

Semantic roles & 50–950 ramp

primary
#31B545
secondary
#C77BBB
accent
#47C9E1
background
#F8FCF7
surface
#EFF9EE
border
#CAD2C9
text
#0B130A
muted
#7C827C

Preview Lab

Preview with #31B545

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

Preview Lab → · Contrast checker → · Palette generator →

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