#31B040#31B040

#31B040 is a light, vivid green. Relative luminance 0.321; OKLCH L 66.6% C 0.187 H 144.8°. Best body text is #000000 at 7.41:1 contrast (WCAG AA passes).

Color values

HEX#31B040
RGBrgb(49, 176, 64)
HSLhsl(127, 56%, 44%)
HSVhsv(127, 72%, 69%)
CMYKcmyk(72.2%, 0%, 63.6%, 31%)
CIE-LABlab(63.40, -56.64, 46.35)
CIE-LCHlch(63.40, 73.18, 140.71°)
OKLaboklab(66.57% -0.1531 0.1081)
OKLCHoklch(66.57% 0.187 144.8)
XYZxyz(17.7162, 32.0718, 10.1063)
Luminance0.3207 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31B040 #B031A1
analogous
#62B031 #31B040 #31B080
triadic
#31B040 #4031B0 #B04031
tetradic
#31B040 #3162B0 #B031A1 #B08031
square
#31B040 #3162B0 #B031A1 #B08031
split-complementary
#31B040 #8031B0 #B03162
monochromatic
#16501D #24802F #31B040 #50CE5F #80DC8B

Accessibility & contrast

On white

2.83
#31B040 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.41
#31B040 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #31B040
7.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31B040#FFFFFF#000000##000000
##31B0401.002.837.417.41
#FFFFFF2.831.0021.0021.00
#0000007.4121.001.001.00
##0000007.4121.001.001.00

Color blindness preview

Protanopia (red-blind)
#B3A033
Deuteranopia (green-blind)
#A4964A
Tritanopia (blue-blind)
#00AB98
Achromatopsia (no color)
#999999

Design tokens & code

CSS
--color: #31b040;
/* rgb */ color: rgb(49, 176, 64);
/* oklch */ color: oklch(66.6% 0.187 144.8);
Tailwind
colors: {
  custom: {
    50: '#7cc979',
    500: '#31b040',
    950: '#000000',
  },
}
SCSS
$custom: #31b040;
$custom-light: #7cc979;
$custom-dark: #000000;
JSON
{
  "hex": "#31b040",
  "rgb": {
    "r": 49,
    "g": 176,
    "b": 64
  },
  "hsl": {
    "h": 127.087,
    "s": 56.444,
    "l": 44.118
  },
  "oklch": {
    "l": 0.66574,
    "c": 0.18739,
    "h": 144.8
  },
  "luminance": 0.32074
}

Semantic roles & 50–950 ramp

primary
#31B040
secondary
#C578BC
accent
#48CEE0
background
#F8FCF7
surface
#EFF8EE
border
#CAD1C9
text
#0B1309
muted
#7C827B

Preview Lab

Preview with #31B040

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

Preview Lab → · Contrast checker → · Palette generator →

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