#31A017#31A017

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

Color values

HEX#31A017
RGBrgb(49, 160, 23)
HSLhsl(109, 75%, 36%)
HSVhsv(109, 86%, 63%)
CMYKcmyk(69.4%, 0%, 85.6%, 37.3%)
CIE-LABlab(57.90, -54.53, 55.49)
CIE-LCHlch(57.90, 77.80, 134.50°)
OKLaboklab(61.92% -0.1493 0.1221)
OKLCHoklch(61.92% 0.193 140.7)
XYZxyz(13.9914, 25.8550, 5.0636)
Luminance0.2586 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31A017 #8617A0
analogous
#75A017 #31A017 #17A041
triadic
#31A017 #1731A0 #A01731
tetradic
#31A017 #1775A0 #8617A0 #A04117
square
#31A017 #1775A0 #8617A0 #A04117
split-complementary
#31A017 #4117A0 #A01775
monochromatic
#103508 #216A0F #31A017 #41D61F #69E54C

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##31A017#FFFFFF#000000##000000
##31A0171.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)
#98882A
Tritanopia (blue-blind)
#1A9B88
Achromatopsia (no color)
#8B8B8B

Design tokens & code

CSS
--color: #31a017;
/* rgb */ color: rgb(49, 160, 23);
/* oklch */ color: oklch(61.9% 0.193 140.7);
Tailwind
colors: {
  custom: {
    50: '#7abd63',
    500: '#31a017',
    950: '#000000',
  },
}
SCSS
$custom: #31a017;
$custom-light: #7abd63;
$custom-dark: #000000;
JSON
{
  "hex": "#31a017",
  "rgb": {
    "r": 49,
    "g": 160,
    "b": 23
  },
  "hsl": {
    "h": 108.613,
    "s": 74.863,
    "l": 35.882
  },
  "oklch": {
    "l": 0.61923,
    "c": 0.19282,
    "h": 140.7
  },
  "luminance": 0.25856
}

Semantic roles & 50–950 ramp

primary
#31A017
secondary
#B04CC7
accent
#36F1CE
background
#F8FBF6
surface
#EFF7EB
border
#CAD0C6
text
#0B1206
muted
#7C817A

Preview Lab

Preview with #31A017

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

Preview Lab → · Contrast checker → · Palette generator →

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