#31B548#31B548

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

Color values

HEX#31B548
RGBrgb(49, 181, 72)
HSLhsl(130, 57%, 45%)
HSVhsv(130, 73%, 71%)
CMYKcmyk(72.9%, 0%, 60.2%, 29%)
CIE-LABlab(65.09, -57.40, 44.67)
CIE-LCHlch(65.09, 72.73, 142.11°)
OKLaboklab(68% -0.1548 0.1052)
OKLCHoklch(68% 0.187 145.8)
XYZxyz(18.9589, 34.1664, 11.7253)
Luminance0.3417 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31B548 #B5319E
analogous
#5CB531 #31B548 #31B58A
triadic
#31B548 #4831B5 #B54831
tetradic
#31B548 #315CB5 #B5319E #B58A31
square
#31B548 #315CB5 #B5319E #B58A31
split-complementary
#31B548 #8A31B5 #B5315C
monochromatic
#175522 #248535 #31B548 #53D069 #83DD93

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##31B548#FFFFFF#000000##000000
##31B5481.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)
#B8A43C
Deuteranopia (green-blind)
#A99A51
Tritanopia (blue-blind)
#00B19D
Achromatopsia (no color)
#9E9E9E

Design tokens & code

CSS
--color: #31b548;
/* rgb */ color: rgb(49, 181, 72);
/* oklch */ color: oklch(68.0% 0.187 145.8);
Tailwind
colors: {
  custom: {
    50: '#7dcc7f',
    500: '#31b548',
    950: '#000000',
  },
}
SCSS
$custom: #31b548;
$custom-light: #7dcc7f;
$custom-dark: #000000;
JSON
{
  "hex": "#31b548",
  "rgb": {
    "r": 49,
    "g": 181,
    "b": 72
  },
  "hsl": {
    "h": 130.455,
    "s": 57.391,
    "l": 45.098
  },
  "oklch": {
    "l": 0.68002,
    "c": 0.18721,
    "h": 145.8
  },
  "luminance": 0.34169
}

Semantic roles & 50–950 ramp

primary
#31B548
secondary
#C77BBA
accent
#47C6E1
background
#F8FCF7
surface
#EFF9EE
border
#CAD2C9
text
#0B130A
muted
#7C827C

Preview Lab

Preview with #31B548

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

Preview Lab → · Contrast checker → · Palette generator →

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