#31A42A#31A42A

#31A42A is a light, vivid green. Relative luminance 0.274; OKLCH L 63.1% C 0.188 H 142.3°. Best body text is #000000 at 6.47:1 contrast (WCAG AA passes).

Color values

HEX#31A42A
RGBrgb(49, 164, 42)
HSLhsl(117, 59%, 40%)
HSVhsv(117, 74%, 64%)
CMYKcmyk(70.1%, 0%, 74.4%, 35.7%)
CIE-LABlab(59.31, -54.68, 50.95)
CIE-LCHlch(59.31, 74.74, 137.02°)
OKLaboklab(63.13% -0.1488 0.1152)
OKLCHoklch(63.13% 0.188 142.3)
XYZxyz(14.9591, 27.3694, 6.6845)
Luminance0.2737 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31A42A #9D2AA4
analogous
#6EA42A #31A42A #2AA460
triadic
#31A42A #2A31A4 #A42A31
tetradic
#31A42A #2A6EA4 #9D2AA4 #A4602A
square
#31A42A #2A6EA4 #9D2AA4 #A4602A
split-complementary
#31A42A #602AA4 #A42A6E
monochromatic
#144311 #22731E #31A42A #46CD3E #75DA6E

Accessibility & contrast

On white

3.24
#31A42A on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.47
#31A42A on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #31A42A
6.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31A42A#FFFFFF#000000##000000
##31A42A1.003.246.476.47
#FFFFFF3.241.0021.0021.00
#0000006.4721.001.001.00
##0000006.4721.001.001.00

Color blindness preview

Protanopia (red-blind)
#A89413
Deuteranopia (green-blind)
#9B8B37
Tritanopia (blue-blind)
#129F8C
Achromatopsia (no color)
#8F8F8F

Design tokens & code

CSS
--color: #31a42a;
/* rgb */ color: rgb(49, 164, 42);
/* oklch */ color: oklch(63.1% 0.188 142.3);
Tailwind
colors: {
  custom: {
    50: '#7ac06c',
    500: '#31a42a',
    950: '#000000',
  },
}
SCSS
$custom: #31a42a;
$custom-light: #7ac06c;
$custom-dark: #000000;
JSON
{
  "hex": "#31a42a",
  "rgb": {
    "r": 49,
    "g": 164,
    "b": 42
  },
  "hsl": {
    "h": 116.557,
    "s": 59.223,
    "l": 40.392
  },
  "oklch": {
    "l": 0.63128,
    "c": 0.18819,
    "h": 142.3
  },
  "luminance": 0.27371
}

Semantic roles & 50–950 ramp

primary
#31A42A
secondary
#BC69C1
accent
#45E2D9
background
#F8FBF6
surface
#EFF7EC
border
#CAD0C7
text
#0B1207
muted
#7C817A

Preview Lab

Preview with #31A42A

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

Preview Lab → · Contrast checker → · Palette generator →

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