#31A828#31A828

#31A828 is a light, vivid green. Relative luminance 0.288; OKLCH L 64.2% C 0.194 H 142.1°. Best body text is #000000 at 6.76:1 contrast (WCAG AA passes).

Color values

HEX#31A828
RGBrgb(49, 168, 40)
HSLhsl(116, 62%, 41%)
HSVhsv(116, 76%, 66%)
CMYKcmyk(70.8%, 0%, 76.2%, 34.1%)
CIE-LABlab(60.61, -56.17, 52.96)
CIE-LCHlch(60.61, 77.20, 136.68°)
OKLaboklab(64.2% -0.1529 0.1191)
OKLCHoklch(64.2% 0.194 142.1)
XYZxyz(15.6514, 28.8097, 6.7431)
Luminance0.2881 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31A828 #9F28A8
analogous
#71A828 #31A828 #28A85F
triadic
#31A828 #2831A8 #A82831
tetradic
#31A828 #2871A8 #9F28A8 #A85F28
square
#31A828 #2871A8 #9F28A8 #A85F28
split-complementary
#31A828 #5F28A8 #A82871
monochromatic
#144510 #23771C #31A828 #47D13D #76DC6E

Accessibility & contrast

On white

3.11
#31A828 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.76
#31A828 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #31A828
6.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31A828#FFFFFF#000000##000000
##31A8281.003.116.766.76
#FFFFFF3.111.0021.0021.00
#0000006.7621.001.001.00
##0000006.7621.001.001.00

Color blindness preview

Protanopia (red-blind)
#AC980B
Deuteranopia (green-blind)
#9E8F36
Tritanopia (blue-blind)
#0FA390
Achromatopsia (no color)
#929292

Design tokens & code

CSS
--color: #31a828;
/* rgb */ color: rgb(49, 168, 40);
/* oklch */ color: oklch(64.2% 0.194 142.1);
Tailwind
colors: {
  custom: {
    50: '#7bc36b',
    500: '#31a828',
    950: '#000000',
  },
}
SCSS
$custom: #31a828;
$custom-light: #7bc36b;
$custom-dark: #000000;
JSON
{
  "hex": "#31a828",
  "rgb": {
    "r": 49,
    "g": 168,
    "b": 40
  },
  "hsl": {
    "h": 115.781,
    "s": 61.538,
    "l": 40.784
  },
  "oklch": {
    "l": 0.64202,
    "c": 0.19387,
    "h": 142.1
  },
  "luminance": 0.28811
}

Semantic roles & 50–950 ramp

primary
#31A828
secondary
#BD69C3
accent
#43E5D9
background
#F8FCF6
surface
#EFF8EC
border
#CAD1C7
text
#0B1307
muted
#7C827A

Preview Lab

Preview with #31A828

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

Preview Lab → · Contrast checker → · Palette generator →

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