#31B457#31B457

#31B457 is a light, vivid green. Relative luminance 0.340; OKLCH L 67.9% C 0.173 H 148.7°. Best body text is #000000 at 7.80:1 contrast (WCAG AA passes).

Color values

HEX#31B457
RGBrgb(49, 180, 87)
HSLhsl(137, 57%, 45%)
HSVhsv(137, 73%, 71%)
CMYKcmyk(72.8%, 0%, 51.7%, 29.4%)
CIE-LABlab(64.95, -54.99, 37.30)
CIE-LCHlch(64.95, 66.45, 145.85°)
OKLaboklab(67.94% -0.148 0.0901)
OKLCHoklch(67.94% 0.173 148.7)
XYZxyz(19.3067, 33.9814, 14.5565)
Luminance0.3398 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31B457 #B4318E
analogous
#4CB431 #31B457 #31B499
triadic
#31B457 #5731B4 #B45731
tetradic
#31B457 #314CB4 #B4318E #B49931
square
#31B457 #314CB4 #B4318E #B49931
split-complementary
#31B457 #9931B4 #B4314C
monochromatic
#175428 #248440 #31B457 #52D077 #82DD9D

Accessibility & contrast

On white

2.69
#31B457 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.80
#31B457 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #31B457
7.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31B457#FFFFFF#000000##000000
##31B4571.002.697.807.80
#FFFFFF2.691.0021.0021.00
#0000007.8021.001.001.00
##0000007.8021.001.001.00

Color blindness preview

Protanopia (red-blind)
#B6A44F
Deuteranopia (green-blind)
#A6995E
Tritanopia (blue-blind)
#00B09F
Achromatopsia (no color)
#9E9E9E

Design tokens & code

CSS
--color: #31b457;
/* rgb */ color: rgb(49, 180, 87);
/* oklch */ color: oklch(67.9% 0.173 148.7);
Tailwind
colors: {
  custom: {
    50: '#7ccc88',
    500: '#31b457',
    950: '#000000',
  },
}
SCSS
$custom: #31b457;
$custom-light: #7ccc88;
$custom-dark: #000000;
JSON
{
  "hex": "#31b457",
  "rgb": {
    "r": 49,
    "g": 180,
    "b": 87
  },
  "hsl": {
    "h": 137.405,
    "s": 57.205,
    "l": 44.902
  },
  "oklch": {
    "l": 0.67937,
    "c": 0.17326,
    "h": 148.7
  },
  "luminance": 0.33984
}

Semantic roles & 50–950 ramp

primary
#31B457
secondary
#C67BB0
accent
#47B4E0
background
#F8FCF8
surface
#EFF9F0
border
#CAD2CB
text
#0B130B
muted
#7C827C

Preview Lab

Preview with #31B457

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

Preview Lab → · Contrast checker → · Palette generator →

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