#31A228#31A228

#31A228 is a light, vivid green. Relative luminance 0.266; OKLCH L 62.6% C 0.187 H 142.0°. Best body text is #000000 at 6.33:1 contrast (WCAG AA passes).

Color values

HEX#31A228
RGBrgb(49, 162, 40)
HSLhsl(116, 60%, 40%)
HSVhsv(116, 75%, 64%)
CMYKcmyk(69.8%, 0%, 75.3%, 36.5%)
CIE-LABlab(58.64, -54.15, 51.01)
CIE-LCHlch(58.64, 74.39, 136.71°)
OKLaboklab(62.57% -0.1475 0.1151)
OKLCHoklch(62.57% 0.187 142)
XYZxyz(14.5691, 26.6453, 6.3823)
Luminance0.2665 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31A228 #9928A2
analogous
#6EA228 #31A228 #28A25C
triadic
#31A228 #2831A2 #A22831
tetradic
#31A228 #286EA2 #9928A2 #A25C28
square
#31A228 #286EA2 #9928A2 #A25C28
split-complementary
#31A228 #5C28A2 #A2286E
monochromatic
#134010 #22711C #31A228 #44CE39 #72DA6A

Accessibility & contrast

On white

3.32
#31A228 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.33
#31A228 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #31A228
6.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31A228#FFFFFF#000000##000000
##31A2281.003.326.336.33
#FFFFFF3.321.0021.0021.00
#0000006.3321.001.001.00
##0000006.3321.001.001.00

Color blindness preview

Protanopia (red-blind)
#A6930F
Deuteranopia (green-blind)
#998A35
Tritanopia (blue-blind)
#149D8B
Achromatopsia (no color)
#8D8D8D

Design tokens & code

CSS
--color: #31a228;
/* rgb */ color: rgb(49, 162, 40);
/* oklch */ color: oklch(62.6% 0.187 142.0);
Tailwind
colors: {
  custom: {
    50: '#7abf6a',
    500: '#31a228',
    950: '#000000',
  },
}
SCSS
$custom: #31a228;
$custom-light: #7abf6a;
$custom-dark: #000000;
JSON
{
  "hex": "#31a228",
  "rgb": {
    "r": 49,
    "g": 162,
    "b": 40
  },
  "hsl": {
    "h": 115.574,
    "s": 60.396,
    "l": 39.608
  },
  "oklch": {
    "l": 0.62568,
    "c": 0.18706,
    "h": 142
  },
  "luminance": 0.26647
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #31A228

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

Preview Lab → · Contrast checker → · Palette generator →

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