#31B72C#31B72C

#31B72C is a light, highly saturated green. Relative luminance 0.347; OKLCH L 68.3% C 0.208 H 142.5°. Best body text is #000000 at 7.94:1 contrast (WCAG AA passes).

Color values

HEX#31B72C
RGBrgb(49, 183, 44)
HSLhsl(118, 61%, 45%)
HSVhsv(118, 76%, 72%)
CMYKcmyk(73.2%, 0%, 76%, 28.2%)
CIE-LABlab(65.51, -60.79, 56.44)
CIE-LCHlch(65.51, 82.95, 137.13°)
OKLaboklab(68.28% -0.1652 0.1269)
OKLCHoklch(68.28% 0.208 142.5)
XYZxyz(18.6536, 34.6997, 8.0970)
Luminance0.3470 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31B72C #B22CB7
analogous
#76B72C #31B72C #2CB76D
triadic
#31B72C #2C31B7 #B72C31
tetradic
#31B72C #2C76B7 #B22CB7 #B76D2C
square
#31B72C #2C76B7 #B22CB7 #B76D2C
split-complementary
#31B72C #6D2CB7 #B72C76
monochromatic
#175414 #248620 #31B72C #51D44C #81E07E

Accessibility & contrast

On white

2.64
#31B72C on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.94
#31B72C on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #31B72C
7.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31B72C#FFFFFF#000000##000000
##31B72C1.002.647.947.94
#FFFFFF2.641.0021.0021.00
#0000007.9421.001.001.00
##0000007.9421.001.001.00

Color blindness preview

Protanopia (red-blind)
#BBA50C
Deuteranopia (green-blind)
#AC9B3B
Tritanopia (blue-blind)
#00B19D
Achromatopsia (no color)
#9F9F9F

Design tokens & code

CSS
--color: #31b72c;
/* rgb */ color: rgb(49, 183, 44);
/* oklch */ color: oklch(68.3% 0.208 142.5);
Tailwind
colors: {
  custom: {
    50: '#7ece6f',
    500: '#31b72c',
    950: '#000000',
  },
}
SCSS
$custom: #31b72c;
$custom-light: #7ece6f;
$custom-dark: #000000;
JSON
{
  "hex": "#31b72c",
  "rgb": {
    "r": 49,
    "g": 183,
    "b": 44
  },
  "hsl": {
    "h": 117.842,
    "s": 61.233,
    "l": 44.51
  },
  "oklch": {
    "l": 0.68278,
    "c": 0.20836,
    "h": 142.5
  },
  "luminance": 0.34702
}

Semantic roles & 50–950 ramp

primary
#31B72C
secondary
#C576C8
accent
#43E4DF
background
#F8FCF7
surface
#F0F9ED
border
#CBD2C8
text
#0C1408
muted
#7D827B

Preview Lab

Preview with #31B72C

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

Preview Lab → · Contrast checker → · Palette generator →

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