#31B748#31B748

#31B748 is a light, vivid green. Relative luminance 0.350; OKLCH L 68.5% C 0.190 H 145.7°. Best body text is #000000 at 8.00:1 contrast (WCAG AA passes).

Color values

HEX#31B748
RGBrgb(49, 183, 72)
HSLhsl(130, 58%, 45%)
HSVhsv(130, 73%, 72%)
CMYKcmyk(73.2%, 0%, 60.7%, 28.2%)
CIE-LABlab(65.74, -58.09, 45.41)
CIE-LCHlch(65.74, 73.73, 141.98°)
OKLaboklab(68.54% -0.1567 0.1068)
OKLCHoklch(68.54% 0.19 145.7)
XYZxyz(19.3684, 34.9856, 11.8618)
Luminance0.3499 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31B748 #B731A0
analogous
#5DB731 #31B748 #31B78B
triadic
#31B748 #4831B7 #B74831
tetradic
#31B748 #315DB7 #B731A0 #B78B31
square
#31B748 #315DB7 #B731A0 #B78B31
split-complementary
#31B748 #8B31B7 #B7315D
monochromatic
#175622 #248735 #31B748 #54D169 #84DE94

Accessibility & contrast

On white

2.63
#31B748 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.00
#31B748 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #31B748
8.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31B748#FFFFFF#000000##000000
##31B7481.002.638.008.00
#FFFFFF2.631.0021.0021.00
#0000008.0021.001.001.00
##0000008.0021.001.001.00

Color blindness preview

Protanopia (red-blind)
#BAA63C
Deuteranopia (green-blind)
#AA9C51
Tritanopia (blue-blind)
#00B29F
Achromatopsia (no color)
#A0A0A0

Design tokens & code

CSS
--color: #31b748;
/* rgb */ color: rgb(49, 183, 72);
/* oklch */ color: oklch(68.5% 0.190 145.7);
Tailwind
colors: {
  custom: {
    50: '#7dce7f',
    500: '#31b748',
    950: '#000000',
  },
}
SCSS
$custom: #31b748;
$custom-light: #7dce7f;
$custom-dark: #000000;
JSON
{
  "hex": "#31b748",
  "rgb": {
    "r": 49,
    "g": 183,
    "b": 72
  },
  "hsl": {
    "h": 130.299,
    "s": 57.759,
    "l": 45.49
  },
  "oklch": {
    "l": 0.68535,
    "c": 0.18964,
    "h": 145.7
  },
  "luminance": 0.34988
}

Semantic roles & 50–950 ramp

primary
#31B748
secondary
#C87CBB
accent
#47C7E1
background
#F8FCF7
surface
#EFF9EE
border
#CAD2C9
text
#0B140A
muted
#7C827C

Preview Lab

Preview with #31B748

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

Preview Lab → · Contrast checker → · Palette generator →

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