#31A252#31A252

#31A252 is a light, vivid green. Relative luminance 0.271; OKLCH L 63.1% C 0.154 H 149.1°. Best body text is #000000 at 6.42:1 contrast (WCAG AA passes).

Color values

HEX#31A252
RGBrgb(49, 162, 82)
HSLhsl(138, 54%, 41%)
HSVhsv(138, 70%, 64%)
CMYKcmyk(69.8%, 0%, 49.4%, 36.5%)
CIE-LABlab(59.07, -49.18, 32.53)
CIE-LCHlch(59.07, 58.96, 146.52°)
OKLaboklab(63.06% -0.1325 0.0791)
OKLCHoklch(63.06% 0.154 149.1)
XYZxyz(15.7087, 27.1011, 12.3842)
Luminance0.2710 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31A252 #A23181
analogous
#49A231 #31A252 #31A28B
triadic
#31A252 #5231A2 #A25231
tetradic
#31A252 #3149A2 #A23181 #A28B31
square
#31A252 #3149A2 #A23181 #A28B31
split-complementary
#31A252 #8B31A2 #A23149
monochromatic
#154422 #23733A #31A252 #48C86E #77D693

Accessibility & contrast

On white

3.27
#31A252 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.42
#31A252 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #31A252
6.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31A252#FFFFFF#000000##000000
##31A2521.003.276.426.42
#FFFFFF3.271.0021.0021.00
#0000006.4221.001.001.00
##0000006.4221.001.001.00

Color blindness preview

Protanopia (red-blind)
#A3944B
Deuteranopia (green-blind)
#968A58
Tritanopia (blue-blind)
#009F8F
Achromatopsia (no color)
#8E8E8E

Design tokens & code

CSS
--color: #31a252;
/* rgb */ color: rgb(49, 162, 82);
/* oklch */ color: oklch(63.1% 0.154 149.1);
Tailwind
colors: {
  custom: {
    50: '#78be84',
    500: '#31a252',
    950: '#000000',
  },
}
SCSS
$custom: #31a252;
$custom-light: #78be84;
$custom-dark: #000000;
JSON
{
  "hex": "#31a252",
  "rgb": {
    "r": 49,
    "g": 162,
    "b": 82
  },
  "hsl": {
    "h": 137.522,
    "s": 53.555,
    "l": 41.373
  },
  "oklch": {
    "l": 0.63055,
    "c": 0.1543,
    "h": 149.1
  },
  "luminance": 0.27103
}

Semantic roles & 50–950 ramp

primary
#31A252
secondary
#BE71A8
accent
#4BB2DD
background
#F7FBF8
surface
#EEF7EF
border
#C9D0CA
text
#0A120B
muted
#7C817C

Preview Lab

Preview with #31A252

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

Preview Lab → · Contrast checker → · Palette generator →

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