#31B348#31B348

#31B348 is a light, vivid green. Relative luminance 0.334; OKLCH L 67.5% C 0.185 H 145.9°. Best body text is #000000 at 7.67:1 contrast (WCAG AA passes).

Color values

HEX#31B348
RGBrgb(49, 179, 72)
HSLhsl(131, 57%, 45%)
HSVhsv(131, 73%, 70%)
CMYKcmyk(72.6%, 0%, 59.8%, 29.8%)
CIE-LABlab(64.45, -56.72, 43.92)
CIE-LCHlch(64.45, 71.73, 142.25°)
OKLaboklab(67.47% -0.153 0.1036)
OKLCHoklch(67.47% 0.185 145.9)
XYZxyz(18.5551, 33.3590, 11.5907)
Luminance0.3336 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31B348 #B3319C
analogous
#5BB331 #31B348 #31B389
triadic
#31B348 #4831B3 #B34831
tetradic
#31B348 #315BB3 #B3319C #B38931
square
#31B348 #315BB3 #B3319C #B38931
split-complementary
#31B348 #8931B3 #B3315B
monochromatic
#175321 #248335 #31B348 #52D068 #82DD92

Accessibility & contrast

On white

2.74
#31B348 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.67
#31B348 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #31B348
7.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31B348#FFFFFF#000000##000000
##31B3481.002.747.677.67
#FFFFFF2.741.0021.0021.00
#0000007.6721.001.001.00
##0000007.6721.001.001.00

Color blindness preview

Protanopia (red-blind)
#B6A33D
Deuteranopia (green-blind)
#A79851
Tritanopia (blue-blind)
#00AF9C
Achromatopsia (no color)
#9C9C9C

Design tokens & code

CSS
--color: #31b348;
/* rgb */ color: rgb(49, 179, 72);
/* oklch */ color: oklch(67.5% 0.185 145.9);
Tailwind
colors: {
  custom: {
    50: '#7ccb7e',
    500: '#31b348',
    950: '#000000',
  },
}
SCSS
$custom: #31b348;
$custom-light: #7ccb7e;
$custom-dark: #000000;
JSON
{
  "hex": "#31b348",
  "rgb": {
    "r": 49,
    "g": 179,
    "b": 72
  },
  "hsl": {
    "h": 130.615,
    "s": 57.018,
    "l": 44.706
  },
  "oklch": {
    "l": 0.67468,
    "c": 0.18478,
    "h": 145.9
  },
  "luminance": 0.33361
}

Semantic roles & 50–950 ramp

primary
#31B348
secondary
#C67AB8
accent
#48C5E0
background
#F8FCF7
surface
#EFF9EE
border
#CAD2C9
text
#0B130A
muted
#7C827C

Preview Lab

Preview with #31B348

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

Preview Lab → · Contrast checker → · Palette generator →

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