#31B838#31B838

#31B838 is a light, highly saturated green. Relative luminance 0.352; OKLCH L 68.6% C 0.202 H 143.6°. Best body text is #000000 at 8.04:1 contrast (WCAG AA passes).

Color values

HEX#31B838
RGBrgb(49, 184, 56)
HSLhsl(123, 58%, 46%)
HSVhsv(123, 73%, 72%)
CMYKcmyk(73.4%, 0%, 69.6%, 27.8%)
CIE-LABlab(65.92, -60.13, 52.44)
CIE-LCHlch(65.92, 79.78, 138.91°)
OKLaboklab(68.64% -0.1629 0.1201)
OKLCHoklch(68.64% 0.202 143.6)
XYZxyz(19.1197, 35.2173, 9.5306)
Luminance0.3522 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31B838 #B831B1
analogous
#6DB831 #31B838 #31B87B
triadic
#31B838 #3831B8 #B83831
tetradic
#31B838 #316DB8 #B831B1 #B87B31
square
#31B838 #316DB8 #B831B1 #B87B31
split-complementary
#31B838 #7B31B8 #B8316D
monochromatic
#17571B #248829 #31B838 #55D25B #85DE8A

Accessibility & contrast

On white

2.61
#31B838 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.04
#31B838 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #31B838
8.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31B838#FFFFFF#000000##000000
##31B8381.002.618.048.04
#FFFFFF2.611.0021.0021.00
#0000008.0421.001.001.00
##0000008.0421.001.001.00

Color blindness preview

Protanopia (red-blind)
#BCA725
Deuteranopia (green-blind)
#AC9C44
Tritanopia (blue-blind)
#00B39E
Achromatopsia (no color)
#A0A0A0

Design tokens & code

CSS
--color: #31b838;
/* rgb */ color: rgb(49, 184, 56);
/* oklch */ color: oklch(68.6% 0.202 143.6);
Tailwind
colors: {
  custom: {
    50: '#7ecf75',
    500: '#31b838',
    950: '#000000',
  },
}
SCSS
$custom: #31b838;
$custom-light: #7ecf75;
$custom-dark: #000000;
JSON
{
  "hex": "#31b838",
  "rgb": {
    "r": 49,
    "g": 184,
    "b": 56
  },
  "hsl": {
    "h": 123.111,
    "s": 57.94,
    "l": 45.686
  },
  "oklch": {
    "l": 0.68639,
    "c": 0.20238,
    "h": 143.6
  },
  "luminance": 0.35219
}

Semantic roles & 50–950 ramp

primary
#31B838
secondary
#C87DC4
accent
#47D9E1
background
#F8FCF7
surface
#F0F9ED
border
#CBD2C8
text
#0B1409
muted
#7C827B

Preview Lab

Preview with #31B838

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

Preview Lab → · Contrast checker → · Palette generator →

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