#31A538#31A538

#31A538 is a light, vivid green. Relative luminance 0.278; OKLCH L 63.5% C 0.180 H 143.9°. Best body text is #000000 at 6.57:1 contrast (WCAG AA passes).

Color values

HEX#31A538
RGBrgb(49, 165, 56)
HSLhsl(124, 54%, 42%)
HSVhsv(124, 70%, 65%)
CMYKcmyk(70.3%, 0%, 66.1%, 35.3%)
CIE-LABlab(59.75, -53.72, 45.80)
CIE-LCHlch(59.75, 70.59, 139.56°)
OKLaboklab(63.52% -0.1455 0.1061)
OKLCHoklch(63.52% 0.18 143.9)
XYZxyz(15.4346, 27.8471, 8.3022)
Luminance0.2785 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31A538 #A5319E
analogous
#64A531 #31A538 #31A572
triadic
#31A538 #3831A5 #A53831
tetradic
#31A538 #3164A5 #A5319E #A57231
square
#31A538 #3164A5 #A5319E #A57231
split-complementary
#31A538 #7231A5 #A53164
monochromatic
#154718 #237628 #31A538 #4AC952 #79D77F

Accessibility & contrast

On white

3.20
#31A538 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.57
#31A538 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #31A538
6.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31A538#FFFFFF#000000##000000
##31A5381.003.206.576.57
#FFFFFF3.201.0021.0021.00
#0000006.5721.001.001.00
##0000006.5721.001.001.00

Color blindness preview

Protanopia (red-blind)
#A8962A
Deuteranopia (green-blind)
#9B8C42
Tritanopia (blue-blind)
#09A08E
Achromatopsia (no color)
#909090

Design tokens & code

CSS
--color: #31a538;
/* rgb */ color: rgb(49, 165, 56);
/* oklch */ color: oklch(63.5% 0.180 143.9);
Tailwind
colors: {
  custom: {
    50: '#7ac173',
    500: '#31a538',
    950: '#000000',
  },
}
SCSS
$custom: #31a538;
$custom-light: #7ac173;
$custom-dark: #000000;
JSON
{
  "hex": "#31a538",
  "rgb": {
    "r": 49,
    "g": 165,
    "b": 56
  },
  "hsl": {
    "h": 123.621,
    "s": 54.206,
    "l": 41.961
  },
  "oklch": {
    "l": 0.63524,
    "c": 0.18009,
    "h": 143.9
  },
  "luminance": 0.27849
}

Semantic roles & 50–950 ramp

primary
#31A538
secondary
#C072BB
accent
#4AD5DE
background
#F8FCF7
surface
#EFF8ED
border
#CAD1C8
text
#0A1208
muted
#7C817B

Preview Lab

Preview with #31A538

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

Preview Lab → · Contrast checker → · Palette generator →

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