#31B238#31B238

#31B238 is a light, vivid green. Relative luminance 0.328; OKLCH L 67.0% C 0.195 H 143.7°. Best body text is #000000 at 7.56:1 contrast (WCAG AA passes).

Color values

HEX#31B238
RGBrgb(49, 178, 56)
HSLhsl(123, 57%, 45%)
HSVhsv(123, 72%, 70%)
CMYKcmyk(72.5%, 0%, 68.5%, 30.2%)
CIE-LABlab(63.98, -58.14, 50.38)
CIE-LCHlch(63.98, 76.93, 139.09°)
OKLaboklab(67.03% -0.1575 0.1158)
OKLCHoklch(67.03% 0.195 143.7)
XYZxyz(17.8997, 32.7773, 9.1239)
Luminance0.3278 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31B238 #B231AB
analogous
#6BB231 #31B238 #31B279
triadic
#31B238 #3831B2 #B23831
tetradic
#31B238 #316BB2 #B231AB #B27931
square
#31B238 #316BB2 #B231AB #B27931
split-complementary
#31B238 #7931B2 #B2316B
monochromatic
#17521A #248229 #31B238 #51CF58 #81DC86

Accessibility & contrast

On white

2.78
#31B238 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.56
#31B238 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #31B238
7.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31B238#FFFFFF#000000##000000
##31B2381.002.787.567.56
#FFFFFF2.781.0021.0021.00
#0000007.5621.001.001.00
##0000007.5621.001.001.00

Color blindness preview

Protanopia (red-blind)
#B6A127
Deuteranopia (green-blind)
#A79744
Tritanopia (blue-blind)
#00AD99
Achromatopsia (no color)
#9B9B9B

Design tokens & code

CSS
--color: #31b238;
/* rgb */ color: rgb(49, 178, 56);
/* oklch */ color: oklch(67.0% 0.195 143.7);
Tailwind
colors: {
  custom: {
    50: '#7dca75',
    500: '#31b238',
    950: '#000000',
  },
}
SCSS
$custom: #31b238;
$custom-light: #7dca75;
$custom-dark: #000000;
JSON
{
  "hex": "#31b238",
  "rgb": {
    "r": 49,
    "g": 178,
    "b": 56
  },
  "hsl": {
    "h": 123.256,
    "s": 56.828,
    "l": 44.51
  },
  "oklch": {
    "l": 0.67031,
    "c": 0.19548,
    "h": 143.7
  },
  "luminance": 0.32779
}

Semantic roles & 50–950 ramp

primary
#31B238
secondary
#C579C1
accent
#48D8E0
background
#F8FCF7
surface
#EFF9ED
border
#CAD2C8
text
#0B1309
muted
#7C827B

Preview Lab

Preview with #31B238

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

Preview Lab → · Contrast checker → · Palette generator →

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