#31B945#31B945

#31B945 is a light, vivid green. Relative luminance 0.358; OKLCH L 69.0% C 0.194 H 145.2°. Best body text is #000000 at 8.16:1 contrast (WCAG AA passes).

Color values

HEX#31B945
RGBrgb(49, 185, 69)
HSLhsl(129, 58%, 46%)
HSVhsv(129, 74%, 73%)
CMYKcmyk(73.5%, 0%, 62.7%, 27.5%)
CIE-LABlab(66.35, -59.12, 47.45)
CIE-LCHlch(66.35, 75.80, 141.25°)
OKLaboklab(69.03% -0.1596 0.1109)
OKLCHoklch(69.03% 0.194 145.2)
XYZxyz(19.6884, 35.7783, 11.4974)
Luminance0.3578 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31B945 #B931A5
analogous
#61B931 #31B945 #31B989
triadic
#31B945 #4531B9 #B94531
tetradic
#31B945 #3161B9 #B931A5 #B98931
square
#31B945 #3161B9 #B931A5 #B98931
split-complementary
#31B945 #8931B9 #B93161
monochromatic
#175821 #248933 #31B945 #55D268 #86DF93

Accessibility & contrast

On white

2.57
#31B945 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.16
#31B945 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #31B945
8.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31B945#FFFFFF#000000##000000
##31B9451.002.578.168.16
#FFFFFF2.571.0021.0021.00
#0000008.1621.001.001.00
##0000008.1621.001.001.00

Color blindness preview

Protanopia (red-blind)
#BCA838
Deuteranopia (green-blind)
#AD9D4F
Tritanopia (blue-blind)
#00B4A0
Achromatopsia (no color)
#A1A1A1

Design tokens & code

CSS
--color: #31b945;
/* rgb */ color: rgb(49, 185, 69);
/* oklch */ color: oklch(69.0% 0.194 145.2);
Tailwind
colors: {
  custom: {
    50: '#7ecf7d',
    500: '#31b945',
    950: '#000000',
  },
}
SCSS
$custom: #31b945;
$custom-light: #7ecf7d;
$custom-dark: #000000;
JSON
{
  "hex": "#31b945",
  "rgb": {
    "r": 49,
    "g": 185,
    "b": 69
  },
  "hsl": {
    "h": 128.824,
    "s": 58.12,
    "l": 45.882
  },
  "oklch": {
    "l": 0.69033,
    "c": 0.19436,
    "h": 145.2
  },
  "luminance": 0.35781
}

Semantic roles & 50–950 ramp

primary
#31B945
secondary
#C87DBD
accent
#46CBE1
background
#F8FCF7
surface
#EFF9EE
border
#CAD2C9
text
#0B140A
muted
#7C827C

Preview Lab

Preview with #31B945

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

Preview Lab → · Contrast checker → · Palette generator →

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