#31B258#31B258

#31B258 is a light, vivid green. Relative luminance 0.332; OKLCH L 67.4% C 0.170 H 149.1°. Best body text is #000000 at 7.64:1 contrast (WCAG AA passes).

Color values

HEX#31B258
RGBrgb(49, 178, 88)
HSLhsl(138, 57%, 45%)
HSVhsv(138, 72%, 70%)
CMYKcmyk(72.5%, 0%, 50.6%, 30.2%)
CIE-LABlab(64.32, -54.12, 36.02)
CIE-LCHlch(64.32, 65.01, 146.35°)
OKLaboklab(67.42% -0.1456 0.0873)
OKLCHoklch(67.42% 0.17 149.1)
XYZxyz(18.9470, 33.1962, 14.6396)
Luminance0.3320 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31B258 #B2318B
analogous
#4AB231 #31B258 #31B299
triadic
#31B258 #5831B2 #B25831
tetradic
#31B258 #314AB2 #B2318B #B29931
square
#31B258 #314AB2 #B2318B #B29931
split-complementary
#31B258 #9931B2 #B2314A
monochromatic
#175229 #248240 #31B258 #51CF77 #81DC9D

Accessibility & contrast

On white

2.75
#31B258 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.64
#31B258 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #31B258
7.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31B258#FFFFFF#000000##000000
##31B2581.002.757.647.64
#FFFFFF2.751.0021.0021.00
#0000007.6421.001.001.00
##0000007.6421.001.001.00

Color blindness preview

Protanopia (red-blind)
#B3A250
Deuteranopia (green-blind)
#A4985F
Tritanopia (blue-blind)
#00AF9D
Achromatopsia (no color)
#9C9C9C

Design tokens & code

CSS
--color: #31b258;
/* rgb */ color: rgb(49, 178, 88);
/* oklch */ color: oklch(67.4% 0.170 149.1);
Tailwind
colors: {
  custom: {
    50: '#7bca89',
    500: '#31b258',
    950: '#000000',
  },
}
SCSS
$custom: #31b258;
$custom-light: #7bca89;
$custom-dark: #000000;
JSON
{
  "hex": "#31b258",
  "rgb": {
    "r": 49,
    "g": 178,
    "b": 88
  },
  "hsl": {
    "h": 138.14,
    "s": 56.828,
    "l": 44.51
  },
  "oklch": {
    "l": 0.67422,
    "c": 0.1698,
    "h": 149.1
  },
  "luminance": 0.33198
}

Semantic roles & 50–950 ramp

primary
#31B258
secondary
#C579AE
accent
#48B2E0
background
#F8FCF8
surface
#EFF8F0
border
#CAD1CB
text
#0B130B
muted
#7C827C

Preview Lab

Preview with #31B258

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

Preview Lab → · Contrast checker → · Palette generator →

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