#31B042#31B042

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

Color values

HEX#31B042
RGBrgb(49, 176, 66)
HSLhsl(128, 56%, 44%)
HSVhsv(128, 72%, 69%)
CMYKcmyk(72.2%, 0%, 62.5%, 31%)
CIE-LABlab(63.42, -56.41, 45.48)
CIE-LCHlch(63.42, 72.46, 141.12°)
OKLaboklab(66.6% -0.1524 0.1064)
OKLCHoklch(66.6% 0.186 145.1)
XYZxyz(17.7741, 32.0950, 10.4114)
Luminance0.3210 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31B042 #B0319F
analogous
#60B031 #31B042 #31B081
triadic
#31B042 #4231B0 #B04231
tetradic
#31B042 #3160B0 #B0319F #B08131
square
#31B042 #3160B0 #B0319F #B08131
split-complementary
#31B042 #8131B0 #B03160
monochromatic
#16501E #248030 #31B042 #50CE61 #80DC8C

Accessibility & contrast

On white

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

On black

7.42
#31B042 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #31B042
7.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31B042#FFFFFF#000000##000000
##31B0421.002.837.427.42
#FFFFFF2.831.0021.0021.00
#0000007.4221.001.001.00
##0000007.4221.001.001.00

Color blindness preview

Protanopia (red-blind)
#B3A036
Deuteranopia (green-blind)
#A4964B
Tritanopia (blue-blind)
#00AB99
Achromatopsia (no color)
#9A9A9A

Design tokens & code

CSS
--color: #31b042;
/* rgb */ color: rgb(49, 176, 66);
/* oklch */ color: oklch(66.6% 0.186 145.1);
Tailwind
colors: {
  custom: {
    50: '#7cc97a',
    500: '#31b042',
    950: '#000000',
  },
}
SCSS
$custom: #31b042;
$custom-light: #7cc97a;
$custom-dark: #000000;
JSON
{
  "hex": "#31b042",
  "rgb": {
    "r": 49,
    "g": 176,
    "b": 66
  },
  "hsl": {
    "h": 128.031,
    "s": 56.444,
    "l": 44.118
  },
  "oklch": {
    "l": 0.66596,
    "c": 0.18586,
    "h": 145.1
  },
  "luminance": 0.32097
}

Semantic roles & 50–950 ramp

primary
#31B042
secondary
#C578BA
accent
#48CBE0
background
#F8FCF7
surface
#EFF8EE
border
#CAD1C9
text
#0B1309
muted
#7C827B

Preview Lab

Preview with #31B042

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

Preview Lab → · Contrast checker → · Palette generator →

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