#31B41F#31B41F

#31B41F is a light, highly saturated green. Relative luminance 0.334; OKLCH L 67.4% C 0.211 H 141.6°. Best body text is #000000 at 7.68:1 contrast (WCAG AA passes).

Color values

HEX#31B41F
RGBrgb(49, 180, 31)
HSLhsl(113, 71%, 41%)
HSVhsv(113, 83%, 71%)
CMYKcmyk(72.8%, 0%, 82.8%, 29.4%)
CIE-LABlab(64.48, -60.64, 59.40)
CIE-LCHlch(64.48, 84.88, 135.59°)
OKLaboklab(67.4% -0.1654 0.1313)
OKLCHoklch(67.4% 0.211 141.6)
XYZxyz(17.8342, 33.3924, 6.8015)
Luminance0.3339 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31B41F #A21FB4
analogous
#7CB41F #31B41F #1FB458
triadic
#31B41F #1F31B4 #B41F31
tetradic
#31B41F #1F7CB4 #A21FB4 #B4581F
square
#31B41F #1F7CB4 #A21FB4 #B4581F
split-complementary
#31B41F #581FB4 #B41F7C
monochromatic
#154C0D #238016 #31B41F #48DC34 #77E568

Accessibility & contrast

On white

2.73
#31B41F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.68
#31B41F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #31B41F
7.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31B41F#FFFFFF#000000##000000
##31B41F1.002.737.687.68
#FFFFFF2.731.0021.0021.00
#0000007.6821.001.001.00
##0000007.6821.001.001.00

Color blindness preview

Protanopia (red-blind)
#B9A200
Deuteranopia (green-blind)
#AA9833
Tritanopia (blue-blind)
#04AE99
Achromatopsia (no color)
#9C9C9C

Design tokens & code

CSS
--color: #31b41f;
/* rgb */ color: rgb(49, 180, 31);
/* oklch */ color: oklch(67.4% 0.211 141.6);
Tailwind
colors: {
  custom: {
    50: '#7ecc69',
    500: '#31b41f',
    950: '#000000',
  },
}
SCSS
$custom: #31b41f;
$custom-light: #7ecc69;
$custom-dark: #000000;
JSON
{
  "hex": "#31b41f",
  "rgb": {
    "r": 49,
    "g": 180,
    "b": 31
  },
  "hsl": {
    "h": 112.752,
    "s": 70.616,
    "l": 41.373
  },
  "oklch": {
    "l": 0.67396,
    "c": 0.21121,
    "h": 141.6
  },
  "luminance": 0.33394
}

Semantic roles & 50–950 ramp

primary
#31B41F
secondary
#BE64CB
accent
#3AEDD8
background
#F8FCF6
surface
#F0F9EC
border
#CBD2C7
text
#0C1307
muted
#7D827A

Preview Lab

Preview with #31B41F

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

Preview Lab → · Contrast checker → · Palette generator →

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