#31A040#31A040

#31A040 is a light, vivid green. Relative luminance 0.262; OKLCH L 62.3% C 0.168 H 145.3°. Best body text is #000000 at 6.23:1 contrast (WCAG AA passes).

Color values

HEX#31A040
RGBrgb(49, 160, 64)
HSLhsl(128, 53%, 41%)
HSVhsv(128, 69%, 63%)
CMYKcmyk(69.4%, 0%, 60%, 37.3%)
CIE-LABlab(58.19, -51.03, 40.41)
CIE-LCHlch(58.19, 65.09, 141.63°)
OKLaboklab(62.26% -0.1379 0.0954)
OKLCHoklch(62.26% 0.168 145.3)
XYZxyz(14.7619, 26.1632, 9.1215)
Luminance0.2616 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31A040 #A03191
analogous
#59A031 #31A040 #31A077
triadic
#31A040 #4031A0 #A04031
tetradic
#31A040 #3159A0 #A03191 #A07731
square
#31A040 #3159A0 #A03191 #A07731
split-complementary
#31A040 #7731A0 #A03159
monochromatic
#14421B #23712D #31A040 #47C759 #76D583

Accessibility & contrast

On white

3.37
#31A040 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.23
#31A040 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #31A040
6.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31A040#FFFFFF#000000##000000
##31A0401.003.376.236.23
#FFFFFF3.371.0021.0021.00
#0000006.2321.001.001.00
##0000006.2321.001.001.00

Color blindness preview

Protanopia (red-blind)
#A39136
Deuteranopia (green-blind)
#958848
Tritanopia (blue-blind)
#089C8B
Achromatopsia (no color)
#8C8C8C

Design tokens & code

CSS
--color: #31a040;
/* rgb */ color: rgb(49, 160, 64);
/* oklch */ color: oklch(62.3% 0.168 145.3);
Tailwind
colors: {
  custom: {
    50: '#78bd78',
    500: '#31a040',
    950: '#000000',
  },
}
SCSS
$custom: #31a040;
$custom-light: #78bd78;
$custom-dark: #000000;
JSON
{
  "hex": "#31a040",
  "rgb": {
    "r": 49,
    "g": 160,
    "b": 64
  },
  "hsl": {
    "h": 128.108,
    "s": 53.11,
    "l": 40.98
  },
  "oklch": {
    "l": 0.62259,
    "c": 0.16763,
    "h": 145.3
  },
  "luminance": 0.26165
}

Semantic roles & 50–950 ramp

primary
#31A040
secondary
#BD70B3
accent
#4BC9DD
background
#F7FBF7
surface
#EEF7ED
border
#C9D0C8
text
#0A1209
muted
#7C817B

Preview Lab

Preview with #31A040

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

Preview Lab → · Contrast checker → · Palette generator →

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