#31A754#31A754

#31A754 is a light, vivid green. Relative luminance 0.289; OKLCH L 64.4% C 0.159 H 149.2°. Best body text is #000000 at 6.79:1 contrast (WCAG AA passes).

Color values

HEX#31A754
RGBrgb(49, 167, 84)
HSLhsl(138, 55%, 42%)
HSVhsv(138, 71%, 65%)
CMYKcmyk(70.7%, 0%, 49.7%, 34.5%)
CIE-LABlab(60.72, -50.73, 33.56)
CIE-LCHlch(60.72, 60.82, 146.51°)
OKLaboklab(64.43% -0.1366 0.0816)
OKLCHoklch(64.43% 0.159 149.2)
XYZxyz(16.6843, 28.9286, 13.0903)
Luminance0.2893 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31A754 #A73184
analogous
#49A731 #31A754 #31A78F
triadic
#31A754 #5431A7 #A75431
tetradic
#31A754 #3149A7 #A73184 #A78F31
square
#31A754 #3149A7 #A73184 #A78F31
split-complementary
#31A754 #8F31A7 #A73149
monochromatic
#154824 #23783C #31A754 #4BCA71 #7AD896

Accessibility & contrast

On white

3.09
#31A754 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.79
#31A754 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #31A754
6.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31A754#FFFFFF#000000##000000
##31A7541.003.096.796.79
#FFFFFF3.091.0021.0021.00
#0000006.7921.001.001.00
##0000006.7921.001.001.00

Color blindness preview

Protanopia (red-blind)
#A8984D
Deuteranopia (green-blind)
#9A8F5A
Tritanopia (blue-blind)
#00A494
Achromatopsia (no color)
#929292

Design tokens & code

CSS
--color: #31a754;
/* rgb */ color: rgb(49, 167, 84);
/* oklch */ color: oklch(64.4% 0.159 149.2);
Tailwind
colors: {
  custom: {
    50: '#79c286',
    500: '#31a754',
    950: '#000000',
  },
}
SCSS
$custom: #31a754;
$custom-light: #79c286;
$custom-dark: #000000;
JSON
{
  "hex": "#31a754",
  "rgb": {
    "r": 49,
    "g": 167,
    "b": 84
  },
  "hsl": {
    "h": 137.797,
    "s": 54.63,
    "l": 42.353
  },
  "oklch": {
    "l": 0.64428,
    "c": 0.15909,
    "h": 149.2
  },
  "luminance": 0.2893
}

Semantic roles & 50–950 ramp

primary
#31A754
secondary
#C173AA
accent
#4AB2DE
background
#F7FCF8
surface
#EEF8EF
border
#C9D1CA
text
#0A120B
muted
#7C817C

Preview Lab

Preview with #31A754

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

Preview Lab → · Contrast checker → · Palette generator →

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