#31A82B#31A82B

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

Color values

HEX#31A82B
RGBrgb(49, 168, 43)
HSLhsl(117, 59%, 41%)
HSVhsv(117, 74%, 66%)
CMYKcmyk(70.8%, 0%, 74.4%, 34.1%)
CIE-LABlab(60.63, -55.94, 51.92)
CIE-LCHlch(60.63, 76.32, 137.14°)
OKLaboklab(64.22% -0.1522 0.1174)
OKLCHoklch(64.22% 0.192 142.4)
XYZxyz(15.7044, 28.8309, 7.0223)
Luminance0.2883 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31A82B #A22BA8
analogous
#70A82B #31A82B #2BA864
triadic
#31A82B #2B31A8 #A82B31
tetradic
#31A82B #2B70A8 #A22BA8 #A8642B
square
#31A82B #2B70A8 #A22BA8 #A8642B
split-complementary
#31A82B #642BA8 #A82B70
monochromatic
#154712 #23771F #31A82B #48CF42 #77DB72

Accessibility & contrast

On white

3.10
#31A82B on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.77
#31A82B on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #31A82B
6.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31A82B#FFFFFF#000000##000000
##31A82B1.003.106.776.77
#FFFFFF3.101.0021.0021.00
#0000006.7721.001.001.00
##0000006.7721.001.001.00

Color blindness preview

Protanopia (red-blind)
#AC9813
Deuteranopia (green-blind)
#9E8F38
Tritanopia (blue-blind)
#0DA390
Achromatopsia (no color)
#929292

Design tokens & code

CSS
--color: #31a82b;
/* rgb */ color: rgb(49, 168, 43);
/* oklch */ color: oklch(64.2% 0.192 142.4);
Tailwind
colors: {
  custom: {
    50: '#7bc36d',
    500: '#31a82b',
    950: '#000000',
  },
}
SCSS
$custom: #31a82b;
$custom-light: #7bc36d;
$custom-dark: #000000;
JSON
{
  "hex": "#31a82b",
  "rgb": {
    "r": 49,
    "g": 168,
    "b": 43
  },
  "hsl": {
    "h": 117.12,
    "s": 59.242,
    "l": 41.373
  },
  "oklch": {
    "l": 0.64223,
    "c": 0.19218,
    "h": 142.4
  },
  "luminance": 0.28833
}

Semantic roles & 50–950 ramp

primary
#31A82B
secondary
#BE6CC2
accent
#45E2DB
background
#F8FCF6
surface
#EFF8EC
border
#CAD1C7
text
#0B1307
muted
#7C827A

Preview Lab

Preview with #31A82B

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

Preview Lab → · Contrast checker → · Palette generator →

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