#31B126#31B126

#31B126 is a light, highly saturated green. Relative luminance 0.322; OKLCH L 66.6% C 0.205 H 142.0°. Best body text is #000000 at 7.45:1 contrast (WCAG AA passes).

Color values

HEX#31B126
RGBrgb(49, 177, 38)
HSLhsl(115, 65%, 42%)
HSVhsv(115, 79%, 69%)
CMYKcmyk(72.3%, 0%, 78.5%, 30.6%)
CIE-LABlab(63.54, -59.27, 56.48)
CIE-LCHlch(63.54, 81.86, 136.38°)
OKLaboklab(66.63% -0.1614 0.1262)
OKLCHoklch(66.63% 0.205 142)
XYZxyz(17.3376, 32.2353, 7.1417)
Luminance0.3224 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31B126 #A626B1
analogous
#76B126 #31B126 #26B161
triadic
#31B126 #2631B1 #B12631
tetradic
#31B126 #2676B1 #A626B1 #B16126
square
#31B126 #2676B1 #A626B1 #B16126
split-complementary
#31B126 #6126B1 #B12676
monochromatic
#154C10 #237F1B #31B126 #4AD63F #7AE071

Accessibility & contrast

On white

2.82
#31B126 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.45
#31B126 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #31B126
7.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31B126#FFFFFF#000000##000000
##31B1261.002.827.457.45
#FFFFFF2.821.0021.0021.00
#0000007.4521.001.001.00
##0000007.4521.001.001.00

Color blindness preview

Protanopia (red-blind)
#B5A000
Deuteranopia (green-blind)
#A79636
Tritanopia (blue-blind)
#04AB97
Achromatopsia (no color)
#9A9A9A

Design tokens & code

CSS
--color: #31b126;
/* rgb */ color: rgb(49, 177, 38);
/* oklch */ color: oklch(66.6% 0.205 142.0);
Tailwind
colors: {
  custom: {
    50: '#7dc96b',
    500: '#31b126',
    950: '#000000',
  },
}
SCSS
$custom: #31b126;
$custom-light: #7dc96b;
$custom-dark: #000000;
JSON
{
  "hex": "#31b126",
  "rgb": {
    "r": 49,
    "g": 177,
    "b": 38
  },
  "hsl": {
    "h": 115.252,
    "s": 64.651,
    "l": 42.157
  },
  "oklch": {
    "l": 0.66625,
    "c": 0.20488,
    "h": 142
  },
  "luminance": 0.32237
}

Semantic roles & 50–950 ramp

primary
#31B126
secondary
#C06BC7
accent
#40E8DA
background
#F8FCF6
surface
#EFF8EC
border
#CAD1C7
text
#0B1307
muted
#7C827A

Preview Lab

Preview with #31B126

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

Preview Lab → · Contrast checker → · Palette generator →

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