#31AF5C#31AF5C

#31AF5C is a light, vivid green. Relative luminance 0.321; OKLCH L 66.7% C 0.162 H 150.3°. Best body text is #000000 at 7.42:1 contrast (WCAG AA passes).

Color values

HEX#31AF5C
RGBrgb(49, 175, 92)
HSLhsl(140, 56%, 44%)
HSVhsv(140, 72%, 69%)
CMYKcmyk(72%, 0%, 47.4%, 31.4%)
CIE-LABlab(63.41, -52.39, 32.85)
CIE-LCHlch(63.41, 61.83, 147.91°)
OKLaboklab(66.69% -0.141 0.0803)
OKLCHoklch(66.69% 0.162 150.3)
XYZxyz(18.5268, 32.0835, 15.3395)
Luminance0.3209 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31AF5C #AF3184
analogous
#45AF31 #31AF5C #31AF9B
triadic
#31AF5C #5C31AF #AF5C31
tetradic
#31AF5C #3145AF #AF3184 #AF9B31
square
#31AF5C #3145AF #AF3184 #AF9B31
split-complementary
#31AF5C #9B31AF #AF3145
monochromatic
#164F2A #247F43 #31AF5C #4FCE7B #7FDB9F

Accessibility & contrast

On white

2.83
#31AF5C on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.42
#31AF5C on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #31AF5C
7.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31AF5C#FFFFFF#000000##000000
##31AF5C1.002.837.427.42
#FFFFFF2.831.0021.0021.00
#0000007.4221.001.001.00
##0000007.4221.001.001.00

Color blindness preview

Protanopia (red-blind)
#B0A055
Deuteranopia (green-blind)
#A19562
Tritanopia (blue-blind)
#00AC9B
Achromatopsia (no color)
#9A9A9A

Design tokens & code

CSS
--color: #31af5c;
/* rgb */ color: rgb(49, 175, 92);
/* oklch */ color: oklch(66.7% 0.162 150.3);
Tailwind
colors: {
  custom: {
    50: '#7bc88b',
    500: '#31af5c',
    950: '#000000',
  },
}
SCSS
$custom: #31af5c;
$custom-light: #7bc88b;
$custom-dark: #000000;
JSON
{
  "hex": "#31af5c",
  "rgb": {
    "r": 49,
    "g": 175,
    "b": 92
  },
  "hsl": {
    "h": 140.476,
    "s": 56.25,
    "l": 43.922
  },
  "oklch": {
    "l": 0.6669,
    "c": 0.16226,
    "h": 150.3
  },
  "luminance": 0.32086
}

Semantic roles & 50–950 ramp

primary
#31AF5C
secondary
#C478AA
accent
#48ACE0
background
#F8FCF8
surface
#EFF8F0
border
#CAD1CB
text
#0B130C
muted
#7C827D

Preview Lab

Preview with #31AF5C

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

Preview Lab → · Contrast checker → · Palette generator →

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