#31B252#31B252

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

Color values

HEX#31B252
RGBrgb(49, 178, 82)
HSLhsl(135, 57%, 45%)
HSVhsv(135, 72%, 70%)
CMYKcmyk(72.5%, 0%, 53.9%, 30.2%)
CIE-LABlab(64.24, -55.02, 38.91)
CIE-LCHlch(64.24, 67.39, 144.74°)
OKLaboklab(67.33% -0.1481 0.0934)
OKLCHoklch(67.33% 0.175 147.8)
XYZxyz(18.7086, 33.1008, 13.3841)
Luminance0.3310 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31B252 #B23191
analogous
#51B231 #31B252 #31B293
triadic
#31B252 #5231B2 #B25231
tetradic
#31B252 #3151B2 #B23191 #B29331
square
#31B252 #3151B2 #B23191 #B29331
split-complementary
#31B252 #9331B2 #B23151
monochromatic
#175226 #24823C #31B252 #51CF71 #81DC98

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##31B252#FFFFFF#000000##000000
##31B2521.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)
#B4A249
Deuteranopia (green-blind)
#A59859
Tritanopia (blue-blind)
#00AE9C
Achromatopsia (no color)
#9C9C9C

Design tokens & code

CSS
--color: #31b252;
/* rgb */ color: rgb(49, 178, 82);
/* oklch */ color: oklch(67.3% 0.175 147.8);
Tailwind
colors: {
  custom: {
    50: '#7cca85',
    500: '#31b252',
    950: '#000000',
  },
}
SCSS
$custom: #31b252;
$custom-light: #7cca85;
$custom-dark: #000000;
JSON
{
  "hex": "#31b252",
  "rgb": {
    "r": 49,
    "g": 178,
    "b": 82
  },
  "hsl": {
    "h": 135.349,
    "s": 56.828,
    "l": 44.51
  },
  "oklch": {
    "l": 0.67333,
    "c": 0.17512,
    "h": 147.8
  },
  "luminance": 0.33103
}

Semantic roles & 50–950 ramp

primary
#31B252
secondary
#C579B2
accent
#48B9E0
background
#F8FCF8
surface
#EFF8EF
border
#CAD1CA
text
#0B130B
muted
#7C827C

Preview Lab

Preview with #31B252

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

Preview Lab → · Contrast checker → · Palette generator →

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