#31AF2F#31AF2F

#31AF2F is a light, vivid green. Relative luminance 0.315; OKLCH L 66.1% C 0.198 H 142.7°. Best body text is #000000 at 7.30:1 contrast (WCAG AA passes).

Color values

HEX#31AF2F
RGBrgb(49, 175, 47)
HSLhsl(119, 58%, 44%)
HSVhsv(119, 73%, 69%)
CMYKcmyk(72%, 0%, 73.1%, 31.4%)
CIE-LABlab(62.94, -57.95, 52.79)
CIE-LCHlch(62.94, 78.39, 137.67°)
OKLaboklab(66.15% -0.1574 0.1197)
OKLCHoklch(66.15% 0.198 142.7)
XYZxyz(17.1087, 31.5163, 7.8704)
Luminance0.3152 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31AF2F #AD2FAF
analogous
#71AF2F #31AF2F #2FAF6D
triadic
#31AF2F #2F31AF #AF2F31
tetradic
#31AF2F #2F71AF #AD2FAF #AF6D2F
square
#31AF2F #2F71AF #AD2FAF #AF6D2F
split-complementary
#31AF2F #6D2FAF #AF2F71
monochromatic
#164F15 #237F22 #31AF2F #4ECF4C #7EDC7C

Accessibility & contrast

On white

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

On black

7.30
#31AF2F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #31AF2F
7.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31AF2F#FFFFFF#000000##000000
##31AF2F1.002.887.307.30
#FFFFFF2.881.0021.0021.00
#0000007.3021.001.001.00
##0000007.3021.001.001.00

Color blindness preview

Protanopia (red-blind)
#B39E18
Deuteranopia (green-blind)
#A5943C
Tritanopia (blue-blind)
#02AA96
Achromatopsia (no color)
#989898

Design tokens & code

CSS
--color: #31af2f;
/* rgb */ color: rgb(49, 175, 47);
/* oklch */ color: oklch(66.1% 0.198 142.7);
Tailwind
colors: {
  custom: {
    50: '#7cc870',
    500: '#31af2f',
    950: '#000000',
  },
}
SCSS
$custom: #31af2f;
$custom-light: #7cc870;
$custom-dark: #000000;
JSON
{
  "hex": "#31af2f",
  "rgb": {
    "r": 49,
    "g": 175,
    "b": 47
  },
  "hsl": {
    "h": 119.063,
    "s": 57.658,
    "l": 43.529
  },
  "oklch": {
    "l": 0.66148,
    "c": 0.19777,
    "h": 142.7
  },
  "luminance": 0.31518
}

Semantic roles & 50–950 ramp

primary
#31AF2F
secondary
#C375C4
accent
#47E1DE
background
#F8FCF7
surface
#EFF8ED
border
#CAD1C8
text
#0B1308
muted
#7C827B

Preview Lab

Preview with #31AF2F

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

Preview Lab → · Contrast checker → · Palette generator →

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