#31B458#31B458

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

Color values

HEX#31B458
RGBrgb(49, 180, 88)
HSLhsl(138, 57%, 45%)
HSVhsv(138, 73%, 71%)
CMYKcmyk(72.8%, 0%, 51.1%, 29.4%)
CIE-LABlab(64.96, -54.84, 36.82)
CIE-LCHlch(64.96, 66.05, 146.13°)
OKLaboklab(67.95% -0.1476 0.0891)
OKLCHoklch(67.95% 0.172 148.9)
XYZxyz(19.3478, 33.9979, 14.7732)
Luminance0.3400 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31B458 #B4318D
analogous
#4BB431 #31B458 #31B49A
triadic
#31B458 #5831B4 #B45831
tetradic
#31B458 #314BB4 #B4318D #B49A31
square
#31B458 #314BB4 #B4318D #B49A31
split-complementary
#31B458 #9A31B4 #B4314B
monochromatic
#175429 #248440 #31B458 #52D078 #82DD9D

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##31B458#FFFFFF#000000##000000
##31B4581.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)
#B6A450
Deuteranopia (green-blind)
#A6995F
Tritanopia (blue-blind)
#00B09F
Achromatopsia (no color)
#9E9E9E

Design tokens & code

CSS
--color: #31b458;
/* rgb */ color: rgb(49, 180, 88);
/* oklch */ color: oklch(68.0% 0.172 148.9);
Tailwind
colors: {
  custom: {
    50: '#7ccc89',
    500: '#31b458',
    950: '#000000',
  },
}
SCSS
$custom: #31b458;
$custom-light: #7ccc89;
$custom-dark: #000000;
JSON
{
  "hex": "#31b458",
  "rgb": {
    "r": 49,
    "g": 180,
    "b": 88
  },
  "hsl": {
    "h": 137.863,
    "s": 57.205,
    "l": 44.902
  },
  "oklch": {
    "l": 0.67952,
    "c": 0.17237,
    "h": 148.9
  },
  "luminance": 0.34
}

Semantic roles & 50–950 ramp

primary
#31B458
secondary
#C67BB0
accent
#47B3E0
background
#F8FCF8
surface
#EFF9F0
border
#CAD2CB
text
#0B130C
muted
#7C827D

Preview Lab

Preview with #31B458

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

Preview Lab → · Contrast checker → · Palette generator →

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