#31A015#31A015

#31A015 is a mid, vivid green. Relative luminance 0.258; OKLCH L 61.9% C 0.194 H 140.6°. Best body text is #000000 at 6.17:1 contrast (WCAG AA passes).

Color values

HEX#31A015
RGBrgb(49, 160, 21)
HSLhsl(108, 77%, 35%)
HSVhsv(108, 87%, 63%)
CMYKcmyk(69.4%, 0%, 86.9%, 37.3%)
CIE-LABlab(57.89, -54.62, 55.96)
CIE-LCHlch(57.89, 78.20, 134.30°)
OKLaboklab(61.91% -0.1496 0.1228)
OKLCHoklch(61.91% 0.194 140.6)
XYZxyz(13.9721, 25.8472, 4.9620)
Luminance0.2585 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31A015 #8415A0
analogous
#76A015 #31A015 #15A03F
triadic
#31A015 #1531A0 #A01531
tetradic
#31A015 #1576A0 #8415A0 #A03F15
square
#31A015 #1576A0 #8415A0 #A03F15
split-complementary
#31A015 #3F15A0 #A01576
monochromatic
#103407 #206A0E #31A015 #42D61C #68E748

Accessibility & contrast

On white

3.40
#31A015 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.17
#31A015 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #31A015
6.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31A015#FFFFFF#000000##000000
##31A0151.003.406.176.17
#FFFFFF3.401.0021.0021.00
#0000006.1721.001.001.00
##0000006.1721.001.001.00

Color blindness preview

Protanopia (red-blind)
#A49000
Deuteranopia (green-blind)
#988829
Tritanopia (blue-blind)
#1A9B88
Achromatopsia (no color)
#8B8B8B

Design tokens & code

CSS
--color: #31a015;
/* rgb */ color: rgb(49, 160, 21);
/* oklch */ color: oklch(61.9% 0.194 140.6);
Tailwind
colors: {
  custom: {
    50: '#7abd62',
    500: '#31a015',
    950: '#000000',
  },
}
SCSS
$custom: #31a015;
$custom-light: #7abd62;
$custom-dark: #000000;
JSON
{
  "hex": "#31a015",
  "rgb": {
    "r": 49,
    "g": 160,
    "b": 21
  },
  "hsl": {
    "h": 107.914,
    "s": 76.796,
    "l": 35.49
  },
  "oklch": {
    "l": 0.61914,
    "c": 0.19353,
    "h": 140.6
  },
  "luminance": 0.25849
}

Semantic roles & 50–950 ramp

primary
#31A015
secondary
#AE49C8
accent
#34F3CD
background
#F8FBF6
surface
#EFF7EB
border
#CAD0C6
text
#0B1206
muted
#7C817A

Preview Lab

Preview with #31A015

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

Preview Lab → · Contrast checker → · Palette generator →

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