#31A830#31A830

#31A830 is a light, vivid green. Relative luminance 0.289; OKLCH L 64.3% C 0.189 H 142.9°. Best body text is #000000 at 6.77:1 contrast (WCAG AA passes).

Color values

HEX#31A830
RGBrgb(49, 168, 48)
HSLhsl(120, 56%, 42%)
HSVhsv(120, 71%, 66%)
CMYKcmyk(70.8%, 0%, 71.4%, 34.1%)
CIE-LABlab(60.67, -55.53, 50.07)
CIE-LCHlch(60.67, 74.77, 137.96°)
OKLaboklab(64.26% -0.1508 0.1141)
OKLCHoklch(64.26% 0.189 142.9)
XYZxyz(15.8018, 28.8699, 7.5354)
Luminance0.2887 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31A830 #A730A8
analogous
#6DA830 #31A830 #30A86B
triadic
#31A830 #3031A8 #A83031
tetradic
#31A830 #306DA8 #A730A8 #A86B30
square
#31A830 #306DA8 #A730A8 #A86B30
split-complementary
#31A830 #6B30A8 #A8306D
monochromatic
#154915 #237822 #31A830 #4BCB4A #7AD97A

Accessibility & contrast

On white

3.10
#31A830 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.77
#31A830 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #31A830
6.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31A830#FFFFFF#000000##000000
##31A8301.003.106.776.77
#FFFFFF3.101.0021.0021.00
#0000006.7721.001.001.00
##0000006.7721.001.001.00

Color blindness preview

Protanopia (red-blind)
#AC981D
Deuteranopia (green-blind)
#9E8F3C
Tritanopia (blue-blind)
#0BA390
Achromatopsia (no color)
#929292

Design tokens & code

CSS
--color: #31a830;
/* rgb */ color: rgb(49, 168, 48);
/* oklch */ color: oklch(64.3% 0.189 142.9);
Tailwind
colors: {
  custom: {
    50: '#7bc36f',
    500: '#31a830',
    950: '#000000',
  },
}
SCSS
$custom: #31a830;
$custom-light: #7bc36f;
$custom-dark: #000000;
JSON
{
  "hex": "#31a830",
  "rgb": {
    "r": 49,
    "g": 168,
    "b": 48
  },
  "hsl": {
    "h": 119.5,
    "s": 55.556,
    "l": 42.353
  },
  "oklch": {
    "l": 0.64263,
    "c": 0.18913,
    "h": 142.9
  },
  "luminance": 0.28872
}

Semantic roles & 50–950 ramp

primary
#31A830
secondary
#C173C1
accent
#49DFDE
background
#F8FCF7
surface
#EFF8ED
border
#CAD1C8
text
#0B1308
muted
#7C827B

Preview Lab

Preview with #31A830

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

Preview Lab → · Contrast checker → · Palette generator →

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