#31A940#31A940

#31A940 is a light, vivid green. Relative luminance 0.294; OKLCH L 64.7% C 0.179 H 145.0°. Best body text is #000000 at 6.88:1 contrast (WCAG AA passes).

Color values

HEX#31A940
RGBrgb(49, 169, 64)
HSLhsl(128, 55%, 43%)
HSVhsv(128, 71%, 66%)
CMYKcmyk(71%, 0%, 62.1%, 33.7%)
CIE-LABlab(61.13, -54.22, 43.78)
CIE-LCHlch(61.13, 69.69, 141.08°)
OKLaboklab(64.69% -0.1465 0.1026)
OKLCHoklch(64.69% 0.179 145)
XYZxyz(16.3789, 29.3973, 9.6605)
Luminance0.2940 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31A940 #A9319A
analogous
#5EA931 #31A940 #31A97C
triadic
#31A940 #4031A9 #A94031
tetradic
#31A940 #315EA9 #A9319A #A97C31
square
#31A940 #315EA9 #A9319A #A97C31
split-complementary
#31A940 #7C31A9 #A9315E
monochromatic
#154A1C #237A2E #31A940 #4CCB5C #7CD987

Accessibility & contrast

On white

3.05
#31A940 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.88
#31A940 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #31A940
6.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31A940#FFFFFF#000000##000000
##31A9401.003.056.886.88
#FFFFFF3.051.0021.0021.00
#0000006.8821.001.001.00
##0000006.8821.001.001.00

Color blindness preview

Protanopia (red-blind)
#AC9934
Deuteranopia (green-blind)
#9E9049
Tritanopia (blue-blind)
#00A593
Achromatopsia (no color)
#949494

Design tokens & code

CSS
--color: #31a940;
/* rgb */ color: rgb(49, 169, 64);
/* oklch */ color: oklch(64.7% 0.179 145.0);
Tailwind
colors: {
  custom: {
    50: '#7ac479',
    500: '#31a940',
    950: '#000000',
  },
}
SCSS
$custom: #31a940;
$custom-light: #7ac479;
$custom-dark: #000000;
JSON
{
  "hex": "#31a940",
  "rgb": {
    "r": 49,
    "g": 169,
    "b": 64
  },
  "hsl": {
    "h": 127.5,
    "s": 55.046,
    "l": 42.745
  },
  "oklch": {
    "l": 0.64692,
    "c": 0.17888,
    "h": 145
  },
  "luminance": 0.29399
}

Semantic roles & 50–950 ramp

primary
#31A940
secondary
#C174B8
accent
#49CCDE
background
#F8FCF7
surface
#EFF8EE
border
#CAD1C9
text
#0B1309
muted
#7C827B

Preview Lab

Preview with #31A940

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

Preview Lab → · Contrast checker → · Palette generator →

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