#31AF28#31AF28

#31AF28 is a light, highly saturated green. Relative luminance 0.315; OKLCH L 66.1% C 0.202 H 142.1°. Best body text is #000000 at 7.29:1 contrast (WCAG AA passes).

Color values

HEX#31AF28
RGBrgb(49, 175, 40)
HSLhsl(116, 63%, 42%)
HSVhsv(116, 77%, 69%)
CMYKcmyk(72%, 0%, 77.1%, 31.4%)
CIE-LABlab(62.90, -58.48, 55.21)
CIE-LCHlch(62.90, 80.42, 136.65°)
OKLaboklab(66.1% -0.1592 0.1238)
OKLCHoklch(66.1% 0.202 142.1)
XYZxyz(16.9786, 31.4642, 7.1855)
Luminance0.3147 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31AF28 #A628AF
analogous
#75AF28 #31AF28 #28AF63
triadic
#31AF28 #2831AF #AF2831
tetradic
#31AF28 #2875AF #A628AF #AF6328
square
#31AF28 #2875AF #A628AF #AF6328
split-complementary
#31AF28 #6328AF #AF2875
monochromatic
#154B11 #237D1D #31AF28 #4AD441 #7ADF73

Accessibility & contrast

On white

2.88
#31AF28 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.29
#31AF28 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #31AF28
7.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31AF28#FFFFFF#000000##000000
##31AF281.002.887.297.29
#FFFFFF2.881.0021.0021.00
#0000007.2921.001.001.00
##0000007.2921.001.001.00

Color blindness preview

Protanopia (red-blind)
#B39E05
Deuteranopia (green-blind)
#A59437
Tritanopia (blue-blind)
#06AA96
Achromatopsia (no color)
#989898

Design tokens & code

CSS
--color: #31af28;
/* rgb */ color: rgb(49, 175, 40);
/* oklch */ color: oklch(66.1% 0.202 142.1);
Tailwind
colors: {
  custom: {
    50: '#7dc86c',
    500: '#31af28',
    950: '#000000',
  },
}
SCSS
$custom: #31af28;
$custom-light: #7dc86c;
$custom-dark: #000000;
JSON
{
  "hex": "#31af28",
  "rgb": {
    "r": 49,
    "g": 175,
    "b": 40
  },
  "hsl": {
    "h": 116,
    "s": 62.791,
    "l": 42.157
  },
  "oklch": {
    "l": 0.66098,
    "c": 0.20167,
    "h": 142.1
  },
  "luminance": 0.31466
}

Semantic roles & 50–950 ramp

primary
#31AF28
secondary
#C06DC6
accent
#42E6DB
background
#F8FCF6
surface
#EFF8EC
border
#CAD1C7
text
#0B1307
muted
#7C827A

Preview Lab

Preview with #31AF28

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

Preview Lab → · Contrast checker → · Palette generator →

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