#31AF2D#31AF2D

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

Color values

HEX#31AF2D
RGBrgb(49, 175, 45)
HSLhsl(118, 59%, 43%)
HSVhsv(118, 74%, 69%)
CMYKcmyk(72%, 0%, 74.3%, 31.4%)
CIE-LABlab(62.93, -58.11, 53.51)
CIE-LCHlch(62.93, 79.00, 137.36°)
OKLaboklab(66.13% -0.158 0.1209)
OKLCHoklch(66.13% 0.199 142.6)
XYZxyz(17.0692, 31.5005, 7.6627)
Luminance0.3150 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31AF2D #AB2DAF
analogous
#72AF2D #31AF2D #2DAF6A
triadic
#31AF2D #2D31AF #AF2D31
tetradic
#31AF2D #2D72AF #AB2DAF #AF6A2D
square
#31AF2D #2D72AF #AB2DAF #AF6A2D
split-complementary
#31AF2D #6A2DAF #AF2D72
monochromatic
#164E14 #237E20 #31AF2D #4DD049 #7DDD7A

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##31AF2D#FFFFFF#000000##000000
##31AF2D1.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)
#B39E14
Deuteranopia (green-blind)
#A5943B
Tritanopia (blue-blind)
#03AA96
Achromatopsia (no color)
#989898

Design tokens & code

CSS
--color: #31af2d;
/* rgb */ color: rgb(49, 175, 45);
/* oklch */ color: oklch(66.1% 0.199 142.6);
Tailwind
colors: {
  custom: {
    50: '#7dc86f',
    500: '#31af2d',
    950: '#000000',
  },
}
SCSS
$custom: #31af2d;
$custom-light: #7dc86f;
$custom-dark: #000000;
JSON
{
  "hex": "#31af2d",
  "rgb": {
    "r": 49,
    "g": 175,
    "b": 45
  },
  "hsl": {
    "h": 118.154,
    "s": 59.091,
    "l": 43.137
  },
  "oklch": {
    "l": 0.66133,
    "c": 0.19894,
    "h": 142.6
  },
  "luminance": 0.31502
}

Semantic roles & 50–950 ramp

primary
#31AF2D
secondary
#C273C5
accent
#46E2DD
background
#F8FCF6
surface
#EFF8EC
border
#CAD1C7
text
#0B1308
muted
#7C827B

Preview Lab

Preview with #31AF2D

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

Preview Lab → · Contrast checker → · Palette generator →

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