#31AF2B#31AF2B

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

Color values

HEX#31AF2B
RGBrgb(49, 175, 43)
HSLhsl(117, 61%, 43%)
HSVhsv(117, 75%, 69%)
CMYKcmyk(72%, 0%, 75.4%, 31.4%)
CIE-LABlab(62.92, -58.26, 54.21)
CIE-LCHlch(62.92, 79.58, 137.07°)
OKLaboklab(66.12% -0.1585 0.1221)
OKLCHoklch(66.12% 0.2 142.4)
XYZxyz(17.0316, 31.4854, 7.4647)
Luminance0.3149 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31AF2B #A92BAF
analogous
#73AF2B #31AF2B #2BAF67
triadic
#31AF2B #2B31AF #AF2B31
tetradic
#31AF2B #2B73AF #A92BAF #AF672B
square
#31AF2B #2B73AF #A92BAF #AF672B
split-complementary
#31AF2B #672BAF #AF2B73
monochromatic
#154D13 #237E1F #31AF2B #4CD146 #7CDE77

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##31AF2B#FFFFFF#000000##000000
##31AF2B1.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)
#B39E0F
Deuteranopia (green-blind)
#A59439
Tritanopia (blue-blind)
#04AA96
Achromatopsia (no color)
#989898

Design tokens & code

CSS
--color: #31af2b;
/* rgb */ color: rgb(49, 175, 43);
/* oklch */ color: oklch(66.1% 0.200 142.4);
Tailwind
colors: {
  custom: {
    50: '#7dc86e',
    500: '#31af2b',
    950: '#000000',
  },
}
SCSS
$custom: #31af2b;
$custom-light: #7dc86e;
$custom-dark: #000000;
JSON
{
  "hex": "#31af2b",
  "rgb": {
    "r": 49,
    "g": 175,
    "b": 43
  },
  "hsl": {
    "h": 117.273,
    "s": 60.55,
    "l": 42.745
  },
  "oklch": {
    "l": 0.66118,
    "c": 0.20007,
    "h": 142.4
  },
  "luminance": 0.31487
}

Semantic roles & 50–950 ramp

primary
#31AF2B
secondary
#C170C5
accent
#44E4DC
background
#F8FCF6
surface
#EFF8EC
border
#CAD1C7
text
#0B1308
muted
#7C827B

Preview Lab

Preview with #31AF2B

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

Preview Lab → · Contrast checker → · Palette generator →

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