#31A328#31A328

#31A328 is a light, vivid green. Relative luminance 0.270; OKLCH L 62.8% C 0.188 H 142.1°. Best body text is #000000 at 6.40:1 contrast (WCAG AA passes).

Color values

HEX#31A328
RGBrgb(49, 163, 40)
HSLhsl(116, 61%, 40%)
HSVhsv(116, 75%, 64%)
CMYKcmyk(69.9%, 0%, 75.5%, 36.1%)
CIE-LABlab(58.97, -54.49, 51.34)
CIE-LCHlch(58.97, 74.87, 136.71°)
OKLaboklab(62.84% -0.1484 0.1157)
OKLCHoklch(62.84% 0.188 142.1)
XYZxyz(14.7460, 26.9990, 6.4413)
Luminance0.2700 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31A328 #9A28A3
analogous
#6EA328 #31A328 #28A35D
triadic
#31A328 #2831A3 #A32831
tetradic
#31A328 #286EA3 #9A28A3 #A35D28
square
#31A328 #286EA3 #9A28A3 #A35D28
split-complementary
#31A328 #5D28A3 #A3286E
monochromatic
#134110 #22721C #31A328 #45CF3A #73DB6B

Accessibility & contrast

On white

3.28
#31A328 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.40
#31A328 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #31A328
6.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31A328#FFFFFF#000000##000000
##31A3281.003.286.406.40
#FFFFFF3.281.0021.0021.00
#0000006.4021.001.001.00
##0000006.4021.001.001.00

Color blindness preview

Protanopia (red-blind)
#A7930E
Deuteranopia (green-blind)
#9A8A35
Tritanopia (blue-blind)
#139E8B
Achromatopsia (no color)
#8E8E8E

Design tokens & code

CSS
--color: #31a328;
/* rgb */ color: rgb(49, 163, 40);
/* oklch */ color: oklch(62.8% 0.188 142.1);
Tailwind
colors: {
  custom: {
    50: '#7abf6b',
    500: '#31a328',
    950: '#000000',
  },
}
SCSS
$custom: #31a328;
$custom-light: #7abf6b;
$custom-dark: #000000;
JSON
{
  "hex": "#31a328",
  "rgb": {
    "r": 49,
    "g": 163,
    "b": 40
  },
  "hsl": {
    "h": 115.61,
    "s": 60.591,
    "l": 39.804
  },
  "oklch": {
    "l": 0.62841,
    "c": 0.1882,
    "h": 142.1
  },
  "luminance": 0.27001
}

Semantic roles & 50–950 ramp

primary
#31A328
secondary
#BA66C1
accent
#44E4D8
background
#F8FBF6
surface
#EFF7EC
border
#CAD0C7
text
#0B1207
muted
#7C817A

Preview Lab

Preview with #31A328

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

Preview Lab → · Contrast checker → · Palette generator →

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