#31A42B#31A42B

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

Color values

HEX#31A42B
RGBrgb(49, 164, 43)
HSLhsl(117, 58%, 41%)
HSVhsv(117, 74%, 64%)
CMYKcmyk(70.1%, 0%, 73.8%, 35.7%)
CIE-LABlab(59.32, -54.60, 50.59)
CIE-LCHlch(59.32, 74.43, 137.18°)
OKLaboklab(63.14% -0.1485 0.1146)
OKLCHoklch(63.14% 0.188 142.4)
XYZxyz(14.9773, 27.3767, 6.7799)
Luminance0.2738 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31A42B #9E2BA4
analogous
#6DA42B #31A42B #2BA461
triadic
#31A42B #2B31A4 #A42B31
tetradic
#31A42B #2B6DA4 #9E2BA4 #A4612B
square
#31A42B #2B6DA4 #9E2BA4 #A4612B
split-complementary
#31A42B #612BA4 #A42B6D
monochromatic
#144312 #23741E #31A42B #46CD3F #75D970

Accessibility & contrast

On white

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

On black

6.48
#31A42B on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #31A42B
6.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31A42B#FFFFFF#000000##000000
##31A42B1.003.246.486.48
#FFFFFF3.241.0021.0021.00
#0000006.4821.001.001.00
##0000006.4821.001.001.00

Color blindness preview

Protanopia (red-blind)
#A89415
Deuteranopia (green-blind)
#9A8B38
Tritanopia (blue-blind)
#119F8C
Achromatopsia (no color)
#8F8F8F

Design tokens & code

CSS
--color: #31a42b;
/* rgb */ color: rgb(49, 164, 43);
/* oklch */ color: oklch(63.1% 0.188 142.4);
Tailwind
colors: {
  custom: {
    50: '#7ac06c',
    500: '#31a42b',
    950: '#000000',
  },
}
SCSS
$custom: #31a42b;
$custom-light: #7ac06c;
$custom-dark: #000000;
JSON
{
  "hex": "#31a42b",
  "rgb": {
    "r": 49,
    "g": 164,
    "b": 43
  },
  "hsl": {
    "h": 117.025,
    "s": 58.454,
    "l": 40.588
  },
  "oklch": {
    "l": 0.63136,
    "c": 0.1876,
    "h": 142.4
  },
  "luminance": 0.27378
}

Semantic roles & 50–950 ramp

primary
#31A42B
secondary
#BC6AC1
accent
#46E2DA
background
#F8FBF6
surface
#EFF7EC
border
#CAD0C7
text
#0B1207
muted
#7C817A

Preview Lab

Preview with #31A42B

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

Preview Lab → · Contrast checker → · Palette generator →

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