#31B256#31B256

#31B256 is a light, vivid green. Relative luminance 0.332; OKLCH L 67.4% C 0.172 H 148.6°. Best body text is #000000 at 7.63:1 contrast (WCAG AA passes).

Color values

HEX#31B256
RGBrgb(49, 178, 86)
HSLhsl(137, 57%, 45%)
HSVhsv(137, 72%, 70%)
CMYKcmyk(72.5%, 0%, 51.7%, 30.2%)
CIE-LABlab(64.29, -54.43, 36.99)
CIE-LCHlch(64.29, 65.81, 145.80°)
OKLaboklab(67.39% -0.1465 0.0894)
OKLCHoklch(67.39% 0.172 148.6)
XYZxyz(18.8653, 33.1635, 14.2093)
Luminance0.3317 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31B256 #B2318D
analogous
#4DB231 #31B256 #31B296
triadic
#31B256 #5631B2 #B25631
tetradic
#31B256 #314DB2 #B2318D #B29631
square
#31B256 #314DB2 #B2318D #B29631
split-complementary
#31B256 #9631B2 #B2314D
monochromatic
#175228 #24823F #31B256 #51CF75 #81DC9B

Accessibility & contrast

On white

2.75
#31B256 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.63
#31B256 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #31B256
7.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31B256#FFFFFF#000000##000000
##31B2561.002.757.637.63
#FFFFFF2.751.0021.0021.00
#0000007.6321.001.001.00
##0000007.6321.001.001.00

Color blindness preview

Protanopia (red-blind)
#B4A24E
Deuteranopia (green-blind)
#A4985D
Tritanopia (blue-blind)
#00AE9D
Achromatopsia (no color)
#9C9C9C

Design tokens & code

CSS
--color: #31b256;
/* rgb */ color: rgb(49, 178, 86);
/* oklch */ color: oklch(67.4% 0.172 148.6);
Tailwind
colors: {
  custom: {
    50: '#7bca87',
    500: '#31b256',
    950: '#000000',
  },
}
SCSS
$custom: #31b256;
$custom-light: #7bca87;
$custom-dark: #000000;
JSON
{
  "hex": "#31b256",
  "rgb": {
    "r": 49,
    "g": 178,
    "b": 86
  },
  "hsl": {
    "h": 137.209,
    "s": 56.828,
    "l": 44.51
  },
  "oklch": {
    "l": 0.67391,
    "c": 0.17159,
    "h": 148.6
  },
  "luminance": 0.33166
}

Semantic roles & 50–950 ramp

primary
#31B256
secondary
#C579B0
accent
#48B4E0
background
#F8FCF8
surface
#EFF8F0
border
#CAD1CB
text
#0B130B
muted
#7C827C

Preview Lab

Preview with #31B256

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

Preview Lab → · Contrast checker → · Palette generator →

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