#31B948#31B948

#31B948 is a light, vivid green. Relative luminance 0.358; OKLCH L 69.1% C 0.192 H 145.6°. Best body text is #000000 at 8.16:1 contrast (WCAG AA passes).

Color values

HEX#31B948
RGBrgb(49, 185, 72)
HSLhsl(130, 58%, 46%)
HSVhsv(130, 74%, 73%)
CMYKcmyk(73.5%, 0%, 61.1%, 27.5%)
CIE-LABlab(66.38, -58.76, 46.14)
CIE-LCHlch(66.38, 74.72, 141.86°)
OKLaboklab(69.07% -0.1585 0.1084)
OKLCHoklch(69.07% 0.192 145.6)
XYZxyz(19.7839, 35.8165, 12.0003)
Luminance0.3582 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31B948 #B931A2
analogous
#5EB931 #31B948 #31B98C
triadic
#31B948 #4831B9 #B94831
tetradic
#31B948 #315EB9 #B931A2 #B98C31
square
#31B948 #315EB9 #B931A2 #B98C31
split-complementary
#31B948 #8C31B9 #B9315E
monochromatic
#175822 #248935 #31B948 #55D26A #86DF95

Accessibility & contrast

On white

2.57
#31B948 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.16
#31B948 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #31B948
8.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31B948#FFFFFF#000000##000000
##31B9481.002.578.168.16
#FFFFFF2.571.0021.0021.00
#0000008.1621.001.001.00
##0000008.1621.001.001.00

Color blindness preview

Protanopia (red-blind)
#BCA83C
Deuteranopia (green-blind)
#AC9D51
Tritanopia (blue-blind)
#00B4A1
Achromatopsia (no color)
#A1A1A1

Design tokens & code

CSS
--color: #31b948;
/* rgb */ color: rgb(49, 185, 72);
/* oklch */ color: oklch(69.1% 0.192 145.6);
Tailwind
colors: {
  custom: {
    50: '#7ecf7f',
    500: '#31b948',
    950: '#000000',
  },
}
SCSS
$custom: #31b948;
$custom-light: #7ecf7f;
$custom-dark: #000000;
JSON
{
  "hex": "#31b948",
  "rgb": {
    "r": 49,
    "g": 185,
    "b": 72
  },
  "hsl": {
    "h": 130.147,
    "s": 58.12,
    "l": 45.882
  },
  "oklch": {
    "l": 0.69067,
    "c": 0.19205,
    "h": 145.6
  },
  "luminance": 0.35819
}

Semantic roles & 50–950 ramp

primary
#31B948
secondary
#C87DBC
accent
#46C7E1
background
#F8FCF7
surface
#EFF9EE
border
#CAD2C9
text
#0B140A
muted
#7C827C

Preview Lab

Preview with #31B948

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

Preview Lab → · Contrast checker → · Palette generator →

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