#31B845#31B845

#31B845 is a light, vivid green. Relative luminance 0.354; OKLCH L 68.8% C 0.193 H 145.2°. Best body text is #000000 at 8.07:1 contrast (WCAG AA passes).

Color values

HEX#31B845
RGBrgb(49, 184, 69)
HSLhsl(129, 58%, 46%)
HSVhsv(129, 73%, 72%)
CMYKcmyk(73.4%, 0%, 62.5%, 27.8%)
CIE-LABlab(66.03, -58.78, 47.09)
CIE-LCHlch(66.03, 75.31, 141.30°)
OKLaboklab(68.77% -0.1587 0.1102)
OKLCHoklch(68.77% 0.193 145.2)
XYZxyz(19.4799, 35.3614, 11.4279)
Luminance0.3536 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31B845 #B831A4
analogous
#60B831 #31B845 #31B888
triadic
#31B845 #4531B8 #B84531
tetradic
#31B845 #3160B8 #B831A4 #B88831
square
#31B845 #3160B8 #B831A4 #B88831
split-complementary
#31B845 #8831B8 #B83160
monochromatic
#175721 #248833 #31B845 #55D267 #85DE92

Accessibility & contrast

On white

2.60
#31B845 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.07
#31B845 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #31B845
8.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31B845#FFFFFF#000000##000000
##31B8451.002.608.078.07
#FFFFFF2.601.0021.0021.00
#0000008.0721.001.001.00
##0000008.0721.001.001.00

Color blindness preview

Protanopia (red-blind)
#BBA738
Deuteranopia (green-blind)
#AC9C4F
Tritanopia (blue-blind)
#00B3A0
Achromatopsia (no color)
#A0A0A0

Design tokens & code

CSS
--color: #31b845;
/* rgb */ color: rgb(49, 184, 69);
/* oklch */ color: oklch(68.8% 0.193 145.2);
Tailwind
colors: {
  custom: {
    50: '#7dce7d',
    500: '#31b845',
    950: '#000000',
  },
}
SCSS
$custom: #31b845;
$custom-light: #7dce7d;
$custom-dark: #000000;
JSON
{
  "hex": "#31b845",
  "rgb": {
    "r": 49,
    "g": 184,
    "b": 69
  },
  "hsl": {
    "h": 128.889,
    "s": 57.94,
    "l": 45.686
  },
  "oklch": {
    "l": 0.68767,
    "c": 0.19317,
    "h": 145.2
  },
  "luminance": 0.35364
}

Semantic roles & 50–950 ramp

primary
#31B845
secondary
#C87DBD
accent
#47CAE1
background
#F8FCF7
surface
#EFF9EE
border
#CAD2C9
text
#0B140A
muted
#7C827C

Preview Lab

Preview with #31B845

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

Preview Lab → · Contrast checker → · Palette generator →

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