#31B231#31B231

#31B231 is a light, vivid green. Relative luminance 0.327; OKLCH L 67.0% C 0.200 H 142.9°. Best body text is #000000 at 7.54:1 contrast (WCAG AA passes).

Color values

HEX#31B231
RGBrgb(49, 178, 49)
HSLhsl(120, 57%, 45%)
HSVhsv(120, 72%, 70%)
CMYKcmyk(72.5%, 0%, 72.5%, 30.2%)
CIE-LABlab(63.93, -58.77, 53.06)
CIE-LCHlch(63.93, 79.18, 137.93°)
OKLaboklab(66.97% -0.1596 0.1205)
OKLCHoklch(66.97% 0.2 142.9)
XYZxyz(17.7403, 32.7135, 8.2845)
Luminance0.3272 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31B231 #B231B2
analogous
#72B231 #31B231 #31B272
triadic
#31B231 #3131B2 #B23131
tetradic
#31B231 #3172B2 #B231B2 #B27231
square
#31B231 #3172B2 #B231B2 #B27231
split-complementary
#31B231 #7231B2 #B23172
monochromatic
#175217 #248224 #31B231 #51CF51 #81DC81

Accessibility & contrast

On white

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

On black

7.54
#31B231 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #31B231
7.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31B231#FFFFFF#000000##000000
##31B2311.002.787.547.54
#FFFFFF2.781.0021.0021.00
#0000007.5421.001.001.00
##0000007.5421.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #31b231;
/* rgb */ color: rgb(49, 178, 49);
/* oklch */ color: oklch(67.0% 0.200 142.9);
Tailwind
colors: {
  custom: {
    50: '#7dca71',
    500: '#31b231',
    950: '#000000',
  },
}
SCSS
$custom: #31b231;
$custom-light: #7dca71;
$custom-dark: #000000;
JSON
{
  "hex": "#31b231",
  "rgb": {
    "r": 49,
    "g": 178,
    "b": 49
  },
  "hsl": {
    "h": 120,
    "s": 56.828,
    "l": 44.51
  },
  "oklch": {
    "l": 0.66971,
    "c": 0.19996,
    "h": 142.9
  },
  "luminance": 0.32716
}

Semantic roles & 50–950 ramp

primary
#31B231
secondary
#C579C5
accent
#48E0E0
background
#F8FCF7
surface
#EFF9ED
border
#CAD2C8
text
#0B1308
muted
#7C827B

Preview Lab

Preview with #31B231

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

Preview Lab → · Contrast checker → · Palette generator →

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