#31A254#31A254

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

Color values

HEX#31A254
RGBrgb(49, 162, 84)
HSLhsl(139, 54%, 41%)
HSVhsv(139, 70%, 64%)
CMYKcmyk(69.8%, 0%, 48.1%, 36.5%)
CIE-LABlab(59.10, -48.85, 31.53)
CIE-LCHlch(59.10, 58.14, 147.16°)
OKLaboklab(63.09% -0.1316 0.077)
OKLCHoklch(63.09% 0.152 149.7)
XYZxyz(15.7859, 27.1320, 12.7908)
Luminance0.2713 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31A254 #A2317F
analogous
#47A231 #31A254 #31A28D
triadic
#31A254 #5431A2 #A25431
tetradic
#31A254 #3147A2 #A2317F #A28D31
square
#31A254 #3147A2 #A2317F #A28D31
split-complementary
#31A254 #8D31A2 #A23147
monochromatic
#154423 #23733C #31A254 #48C870 #77D695

Accessibility & contrast

On white

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

On black

6.43
#31A254 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #31A254
6.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31A254#FFFFFF#000000##000000
##31A2541.003.276.436.43
#FFFFFF3.271.0021.0021.00
#0000006.4321.001.001.00
##0000006.4321.001.001.00

Color blindness preview

Protanopia (red-blind)
#A3944E
Deuteranopia (green-blind)
#958A59
Tritanopia (blue-blind)
#009F90
Achromatopsia (no color)
#8E8E8E

Design tokens & code

CSS
--color: #31a254;
/* rgb */ color: rgb(49, 162, 84);
/* oklch */ color: oklch(63.1% 0.152 149.7);
Tailwind
colors: {
  custom: {
    50: '#78be85',
    500: '#31a254',
    950: '#000000',
  },
}
SCSS
$custom: #31a254;
$custom-light: #78be85;
$custom-dark: #000000;
JSON
{
  "hex": "#31a254",
  "rgb": {
    "r": 49,
    "g": 162,
    "b": 84
  },
  "hsl": {
    "h": 138.584,
    "s": 53.555,
    "l": 41.373
  },
  "oklch": {
    "l": 0.63088,
    "c": 0.15243,
    "h": 149.7
  },
  "luminance": 0.27134
}

Semantic roles & 50–950 ramp

primary
#31A254
secondary
#BE71A6
accent
#4BB0DD
background
#F7FBF8
surface
#EEF7EF
border
#C9D0CA
text
#0A120B
muted
#7C817C

Preview Lab

Preview with #31A254

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

Preview Lab → · Contrast checker → · Palette generator →

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