#31B242#31B242

#31B242 is a light, vivid green. Relative luminance 0.329; OKLCH L 67.1% C 0.188 H 145.0°. Best body text is #000000 at 7.58:1 contrast (WCAG AA passes).

Color values

HEX#31B242
RGBrgb(49, 178, 66)
HSLhsl(128, 57%, 45%)
HSVhsv(128, 72%, 70%)
CMYKcmyk(72.5%, 0%, 62.9%, 30.2%)
CIE-LABlab(64.07, -57.09, 46.21)
CIE-LCHlch(64.07, 73.45, 141.01°)
OKLaboklab(67.13% -0.1542 0.108)
OKLCHoklch(67.13% 0.188 145)
XYZxyz(18.1692, 32.8851, 10.5431)
Luminance0.3289 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31B242 #B231A1
analogous
#61B231 #31B242 #31B283
triadic
#31B242 #4231B2 #B24231
tetradic
#31B242 #3161B2 #B231A1 #B28331
square
#31B242 #3161B2 #B231A1 #B28331
split-complementary
#31B242 #8331B2 #B23161
monochromatic
#17521E #248230 #31B242 #51CF62 #81DC8D

Accessibility & contrast

On white

2.77
#31B242 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.58
#31B242 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #31B242
7.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31B242#FFFFFF#000000##000000
##31B2421.002.777.587.58
#FFFFFF2.771.0021.0021.00
#0000007.5821.001.001.00
##0000007.5821.001.001.00

Color blindness preview

Protanopia (red-blind)
#B5A235
Deuteranopia (green-blind)
#A6974C
Tritanopia (blue-blind)
#00AD9A
Achromatopsia (no color)
#9B9B9B

Design tokens & code

CSS
--color: #31b242;
/* rgb */ color: rgb(49, 178, 66);
/* oklch */ color: oklch(67.1% 0.188 145.0);
Tailwind
colors: {
  custom: {
    50: '#7cca7b',
    500: '#31b242',
    950: '#000000',
  },
}
SCSS
$custom: #31b242;
$custom-light: #7cca7b;
$custom-dark: #000000;
JSON
{
  "hex": "#31b242",
  "rgb": {
    "r": 49,
    "g": 178,
    "b": 66
  },
  "hsl": {
    "h": 127.907,
    "s": 56.828,
    "l": 44.51
  },
  "oklch": {
    "l": 0.67132,
    "c": 0.18827,
    "h": 145
  },
  "luminance": 0.32887
}

Semantic roles & 50–950 ramp

primary
#31B242
secondary
#C579BB
accent
#48CCE0
background
#F8FCF7
surface
#EFF9EE
border
#CAD2C9
text
#0B1309
muted
#7C827B

Preview Lab

Preview with #31B242

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

Preview Lab → · Contrast checker → · Palette generator →

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