#31A227#31A227

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

Color values

HEX#31A227
RGBrgb(49, 162, 39)
HSLhsl(115, 61%, 39%)
HSVhsv(115, 76%, 64%)
CMYKcmyk(69.8%, 0%, 75.9%, 36.5%)
CIE-LABlab(58.64, -54.23, 51.36)
CIE-LCHlch(58.64, 74.69, 136.56°)
OKLaboklab(62.56% -0.1477 0.1156)
OKLCHoklch(62.56% 0.188 142)
XYZxyz(14.5523, 26.6386, 6.2939)
Luminance0.2664 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31A227 #9827A2
analogous
#6FA227 #31A227 #27A25B
triadic
#31A227 #2731A2 #A22731
tetradic
#31A227 #276FA2 #9827A2 #A25B27
square
#31A227 #276FA2 #9827A2 #A25B27
split-complementary
#31A227 #5B27A2 #A2276F
monochromatic
#133F0F #22711B #31A227 #44CF37 #72DB69

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##31A227#FFFFFF#000000##000000
##31A2271.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)
#A6930C
Deuteranopia (green-blind)
#998A34
Tritanopia (blue-blind)
#149D8A
Achromatopsia (no color)
#8D8D8D

Design tokens & code

CSS
--color: #31a227;
/* rgb */ color: rgb(49, 162, 39);
/* oklch */ color: oklch(62.6% 0.188 142.0);
Tailwind
colors: {
  custom: {
    50: '#7abf6a',
    500: '#31a227',
    950: '#000000',
  },
}
SCSS
$custom: #31a227;
$custom-light: #7abf6a;
$custom-dark: #000000;
JSON
{
  "hex": "#31a227",
  "rgb": {
    "r": 49,
    "g": 162,
    "b": 39
  },
  "hsl": {
    "h": 115.122,
    "s": 61.194,
    "l": 39.412
  },
  "oklch": {
    "l": 0.62561,
    "c": 0.18762,
    "h": 142
  },
  "luminance": 0.2664
}

Semantic roles & 50–950 ramp

primary
#31A227
secondary
#B964C1
accent
#43E4D7
background
#F8FBF6
surface
#EFF7EB
border
#CAD0C6
text
#0B1207
muted
#7C817A

Preview Lab

Preview with #31A227

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

Preview Lab → · Contrast checker → · Palette generator →

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