#31B257#31B257

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

Color values

HEX#31B257
RGBrgb(49, 178, 87)
HSLhsl(138, 57%, 45%)
HSVhsv(138, 72%, 70%)
CMYKcmyk(72.5%, 0%, 51.1%, 30.2%)
CIE-LABlab(64.31, -54.28, 36.51)
CIE-LCHlch(64.31, 65.41, 146.08°)
OKLaboklab(67.41% -0.1461 0.0883)
OKLCHoklch(67.41% 0.171 148.8)
XYZxyz(18.9058, 33.1797, 14.4229)
Luminance0.3318 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31B257 #B2318C
analogous
#4CB231 #31B257 #31B297
triadic
#31B257 #5731B2 #B25731
tetradic
#31B257 #314CB2 #B2318C #B29731
square
#31B257 #314CB2 #B2318C #B29731
split-complementary
#31B257 #9731B2 #B2314C
monochromatic
#175228 #248240 #31B257 #51CF76 #81DC9C

Accessibility & contrast

On white

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

On black

7.64
#31B257 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #31B257
7.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31B257#FFFFFF#000000##000000
##31B2571.002.757.647.64
#FFFFFF2.751.0021.0021.00
#0000007.6421.001.001.00
##0000007.6421.001.001.00

Color blindness preview

Protanopia (red-blind)
#B4A24F
Deuteranopia (green-blind)
#A4985E
Tritanopia (blue-blind)
#00AF9D
Achromatopsia (no color)
#9C9C9C

Design tokens & code

CSS
--color: #31b257;
/* rgb */ color: rgb(49, 178, 87);
/* oklch */ color: oklch(67.4% 0.171 148.8);
Tailwind
colors: {
  custom: {
    50: '#7bca88',
    500: '#31b257',
    950: '#000000',
  },
}
SCSS
$custom: #31b257;
$custom-light: #7bca88;
$custom-dark: #000000;
JSON
{
  "hex": "#31b257",
  "rgb": {
    "r": 49,
    "g": 178,
    "b": 87
  },
  "hsl": {
    "h": 137.674,
    "s": 56.828,
    "l": 44.51
  },
  "oklch": {
    "l": 0.67407,
    "c": 0.1707,
    "h": 148.8
  },
  "luminance": 0.33182
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #31B257

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

Preview Lab → · Contrast checker → · Palette generator →

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