#31B938#31B938

#31B938 is a light, highly saturated green. Relative luminance 0.356; OKLCH L 68.9% C 0.204 H 143.6°. Best body text is #000000 at 8.13:1 contrast (WCAG AA passes).

Color values

HEX#31B938
RGBrgb(49, 185, 56)
HSLhsl(123, 58%, 46%)
HSVhsv(123, 74%, 73%)
CMYKcmyk(73.5%, 0%, 69.7%, 27.5%)
CIE-LABlab(66.24, -60.45, 52.78)
CIE-LCHlch(66.24, 80.25, 138.88°)
OKLaboklab(68.91% -0.1638 0.1208)
OKLCHoklch(68.91% 0.204 143.6)
XYZxyz(19.3282, 35.6342, 9.6001)
Luminance0.3564 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31B938 #B931B2
analogous
#6EB931 #31B938 #31B97C
triadic
#31B938 #3831B9 #B93831
tetradic
#31B938 #316EB9 #B931B2 #B97C31
square
#31B938 #316EB9 #B931B2 #B97C31
split-complementary
#31B938 #7C31B9 #B9316E
monochromatic
#17581B #248929 #31B938 #55D25C #86DF8A

Accessibility & contrast

On white

2.58
#31B938 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.13
#31B938 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #31B938
8.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31B938#FFFFFF#000000##000000
##31B9381.002.588.138.13
#FFFFFF2.581.0021.0021.00
#0000008.1321.001.001.00
##0000008.1321.001.001.00

Color blindness preview

Protanopia (red-blind)
#BDA725
Deuteranopia (green-blind)
#AD9D45
Tritanopia (blue-blind)
#00B49F
Achromatopsia (no color)
#A1A1A1

Design tokens & code

CSS
--color: #31b938;
/* rgb */ color: rgb(49, 185, 56);
/* oklch */ color: oklch(68.9% 0.204 143.6);
Tailwind
colors: {
  custom: {
    50: '#7ecf75',
    500: '#31b938',
    950: '#000000',
  },
}
SCSS
$custom: #31b938;
$custom-light: #7ecf75;
$custom-dark: #000000;
JSON
{
  "hex": "#31b938",
  "rgb": {
    "r": 49,
    "g": 185,
    "b": 56
  },
  "hsl": {
    "h": 123.088,
    "s": 58.12,
    "l": 45.882
  },
  "oklch": {
    "l": 0.68906,
    "c": 0.20351,
    "h": 143.6
  },
  "luminance": 0.35636
}

Semantic roles & 50–950 ramp

primary
#31B938
secondary
#C87DC5
accent
#46D9E1
background
#F8FCF7
surface
#F0F9ED
border
#CBD2C8
text
#0C1409
muted
#7D827B

Preview Lab

Preview with #31B938

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

Preview Lab → · Contrast checker → · Palette generator →

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