#31B248#31B248

#31B248 is a light, vivid green. Relative luminance 0.330; OKLCH L 67.2% C 0.184 H 145.9°. Best body text is #000000 at 7.59:1 contrast (WCAG AA passes).

Color values

HEX#31B248
RGBrgb(49, 178, 72)
HSLhsl(131, 57%, 45%)
HSVhsv(131, 72%, 70%)
CMYKcmyk(72.5%, 0%, 59.6%, 30.2%)
CIE-LABlab(64.13, -56.37, 43.55)
CIE-LCHlch(64.13, 71.23, 142.31°)
OKLaboklab(67.2% -0.152 0.1028)
OKLCHoklch(67.2% 0.184 145.9)
XYZxyz(18.3554, 32.9596, 11.5241)
Luminance0.3296 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31B248 #B2319B
analogous
#5AB231 #31B248 #31B289
triadic
#31B248 #4831B2 #B24831
tetradic
#31B248 #315AB2 #B2319B #B28931
square
#31B248 #315AB2 #B2319B #B28931
split-complementary
#31B248 #8931B2 #B2315A
monochromatic
#175221 #248235 #31B248 #51CF68 #81DC91

Accessibility & contrast

On white

2.77
#31B248 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.59
#31B248 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #31B248
7.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31B248#FFFFFF#000000##000000
##31B2481.002.777.597.59
#FFFFFF2.771.0021.0021.00
#0000007.5921.001.001.00
##0000007.5921.001.001.00

Color blindness preview

Protanopia (red-blind)
#B5A23D
Deuteranopia (green-blind)
#A69751
Tritanopia (blue-blind)
#00AE9B
Achromatopsia (no color)
#9B9B9B

Design tokens & code

CSS
--color: #31b248;
/* rgb */ color: rgb(49, 178, 72);
/* oklch */ color: oklch(67.2% 0.184 145.9);
Tailwind
colors: {
  custom: {
    50: '#7cca7e',
    500: '#31b248',
    950: '#000000',
  },
}
SCSS
$custom: #31b248;
$custom-light: #7cca7e;
$custom-dark: #000000;
JSON
{
  "hex": "#31b248",
  "rgb": {
    "r": 49,
    "g": 178,
    "b": 72
  },
  "hsl": {
    "h": 130.698,
    "s": 56.828,
    "l": 44.51
  },
  "oklch": {
    "l": 0.67201,
    "c": 0.18354,
    "h": 145.9
  },
  "luminance": 0.32962
}

Semantic roles & 50–950 ramp

primary
#31B248
secondary
#C579B8
accent
#48C5E0
background
#F8FCF7
surface
#EFF9EE
border
#CAD2C9
text
#0B130A
muted
#7C827C

Preview Lab

Preview with #31B248

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

Preview Lab → · Contrast checker → · Palette generator →

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