#31A51F#31A51F

#31A51F is a light, vivid green. Relative luminance 0.277; OKLCH L 63.3% C 0.195 H 141.3°. Best body text is #000000 at 6.53:1 contrast (WCAG AA passes).

Color values

HEX#31A51F
RGBrgb(49, 165, 31)
HSLhsl(112, 68%, 38%)
HSVhsv(112, 81%, 65%)
CMYKcmyk(70.3%, 0%, 81.2%, 35.3%)
CIE-LABlab(59.58, -55.77, 54.86)
CIE-LCHlch(59.58, 78.23, 135.47°)
OKLaboklab(63.33% -0.1523 0.1218)
OKLCHoklch(63.33% 0.195 141.3)
XYZxyz(14.9683, 27.6606, 5.8462)
Luminance0.2766 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31A51F #931FA5
analogous
#74A51F #31A51F #1FA550
triadic
#31A51F #1F31A5 #A51F31
tetradic
#31A51F #1F74A5 #931FA5 #A5501F
square
#31A51F #1F74A5 #931FA5 #A5501F
split-complementary
#31A51F #501FA5 #A51F74
monochromatic
#123E0C #227115 #31A51F #41D72A #6FE15E

Accessibility & contrast

On white

3.21
#31A51F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.53
#31A51F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #31A51F
6.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31A51F#FFFFFF#000000##000000
##31A51F1.003.216.536.53
#FFFFFF3.211.0021.0021.00
#0000006.5321.001.001.00
##0000006.5321.001.001.00

Color blindness preview

Protanopia (red-blind)
#A99500
Deuteranopia (green-blind)
#9C8C30
Tritanopia (blue-blind)
#14A08D
Achromatopsia (no color)
#8F8F8F

Design tokens & code

CSS
--color: #31a51f;
/* rgb */ color: rgb(49, 165, 31);
/* oklch */ color: oklch(63.3% 0.195 141.3);
Tailwind
colors: {
  custom: {
    50: '#7bc167',
    500: '#31a51f',
    950: '#000000',
  },
}
SCSS
$custom: #31a51f;
$custom-light: #7bc167;
$custom-dark: #000000;
JSON
{
  "hex": "#31a51f",
  "rgb": {
    "r": 49,
    "g": 165,
    "b": 31
  },
  "hsl": {
    "h": 111.94,
    "s": 68.367,
    "l": 38.431
  },
  "oklch": {
    "l": 0.63329,
    "c": 0.19503,
    "h": 141.3
  },
  "luminance": 0.27662
}

Semantic roles & 50–950 ramp

primary
#31A51F
secondary
#B75BC5
accent
#3DEBD4
background
#F8FCF6
surface
#EFF8EB
border
#CAD1C6
text
#0B1206
muted
#7C817A

Preview Lab

Preview with #31A51F

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

Preview Lab → · Contrast checker → · Palette generator →

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