#31AF56#31AF56

#31AF56 is a light, vivid green. Relative luminance 0.320; OKLCH L 66.6% C 0.168 H 148.9°. Best body text is #000000 at 7.40:1 contrast (WCAG AA passes).

Color values

HEX#31AF56
RGBrgb(49, 175, 86)
HSLhsl(138, 56%, 44%)
HSVhsv(138, 72%, 69%)
CMYKcmyk(72%, 0%, 50.9%, 31.4%)
CIE-LABlab(63.33, -53.35, 35.80)
CIE-LCHlch(63.33, 64.25, 146.14°)
OKLaboklab(66.59% -0.1436 0.0867)
OKLCHoklch(66.59% 0.168 148.9)
XYZxyz(18.2749, 31.9827, 14.0125)
Luminance0.3199 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31AF56 #AF318A
analogous
#4BAF31 #31AF56 #31AF95
triadic
#31AF56 #5631AF #AF5631
tetradic
#31AF56 #314BAF #AF318A #AF9531
square
#31AF56 #314BAF #AF318A #AF9531
split-complementary
#31AF56 #9531AF #AF314B
monochromatic
#164F27 #247F3F #31AF56 #4FCE75 #7FDB9A

Accessibility & contrast

On white

2.84
#31AF56 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.40
#31AF56 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #31AF56
7.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31AF56#FFFFFF#000000##000000
##31AF561.002.847.407.40
#FFFFFF2.841.0021.0021.00
#0000007.4021.001.001.00
##0000007.4021.001.001.00

Color blindness preview

Protanopia (red-blind)
#B0A04E
Deuteranopia (green-blind)
#A2955C
Tritanopia (blue-blind)
#00AC9A
Achromatopsia (no color)
#999999

Design tokens & code

CSS
--color: #31af56;
/* rgb */ color: rgb(49, 175, 86);
/* oklch */ color: oklch(66.6% 0.168 148.9);
Tailwind
colors: {
  custom: {
    50: '#7bc887',
    500: '#31af56',
    950: '#000000',
  },
}
SCSS
$custom: #31af56;
$custom-light: #7bc887;
$custom-dark: #000000;
JSON
{
  "hex": "#31af56",
  "rgb": {
    "r": 49,
    "g": 175,
    "b": 86
  },
  "hsl": {
    "h": 137.619,
    "s": 56.25,
    "l": 43.922
  },
  "oklch": {
    "l": 0.66594,
    "c": 0.16773,
    "h": 148.9
  },
  "luminance": 0.31985
}

Semantic roles & 50–950 ramp

primary
#31AF56
secondary
#C478AE
accent
#48B3E0
background
#F8FCF8
surface
#EFF8F0
border
#CAD1CB
text
#0B130B
muted
#7C827C

Preview Lab

Preview with #31AF56

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

Preview Lab → · Contrast checker → · Palette generator →

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