#31B251#31B251

#31B251 is a light, vivid green. Relative luminance 0.331; OKLCH L 67.3% C 0.176 H 147.6°. Best body text is #000000 at 7.62:1 contrast (WCAG AA passes).

Color values

HEX#31B251
RGBrgb(49, 178, 81)
HSLhsl(135, 57%, 45%)
HSVhsv(135, 72%, 70%)
CMYKcmyk(72.5%, 0%, 54.5%, 30.2%)
CIE-LABlab(64.23, -55.16, 39.38)
CIE-LCHlch(64.23, 67.78, 144.48°)
OKLaboklab(67.32% -0.1485 0.0944)
OKLCHoklch(67.32% 0.176 147.6)
XYZxyz(18.6708, 33.0857, 13.1852)
Luminance0.3309 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31B251 #B23192
analogous
#51B231 #31B251 #31B292
triadic
#31B251 #5131B2 #B25131
tetradic
#31B251 #3151B2 #B23192 #B29231
square
#31B251 #3151B2 #B23192 #B29231
split-complementary
#31B251 #9231B2 #B23151
monochromatic
#175225 #24823B #31B251 #51CF70 #81DC98

Accessibility & contrast

On white

2.76
#31B251 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.62
#31B251 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #31B251
7.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31B251#FFFFFF#000000##000000
##31B2511.002.767.627.62
#FFFFFF2.761.0021.0021.00
#0000007.6221.001.001.00
##0000007.6221.001.001.00

Color blindness preview

Protanopia (red-blind)
#B4A248
Deuteranopia (green-blind)
#A59858
Tritanopia (blue-blind)
#00AE9C
Achromatopsia (no color)
#9C9C9C

Design tokens & code

CSS
--color: #31b251;
/* rgb */ color: rgb(49, 178, 81);
/* oklch */ color: oklch(67.3% 0.176 147.6);
Tailwind
colors: {
  custom: {
    50: '#7cca84',
    500: '#31b251',
    950: '#000000',
  },
}
SCSS
$custom: #31b251;
$custom-light: #7cca84;
$custom-dark: #000000;
JSON
{
  "hex": "#31b251",
  "rgb": {
    "r": 49,
    "g": 178,
    "b": 81
  },
  "hsl": {
    "h": 134.884,
    "s": 56.828,
    "l": 44.51
  },
  "oklch": {
    "l": 0.67319,
    "c": 0.17599,
    "h": 147.6
  },
  "luminance": 0.33088
}

Semantic roles & 50–950 ramp

primary
#31B251
secondary
#C579B3
accent
#48BAE0
background
#F8FCF8
surface
#EFF9EF
border
#CAD2CA
text
#0B130B
muted
#7C827C

Preview Lab

Preview with #31B251

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

Preview Lab → · Contrast checker → · Palette generator →

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