#31A01F#31A01F

#31A01F is a mid, vivid green. Relative luminance 0.259; OKLCH L 62.0% C 0.189 H 141.3°. Best body text is #000000 at 6.18:1 contrast (WCAG AA passes).

Color values

HEX#31A01F
RGBrgb(49, 160, 31)
HSLhsl(112, 68%, 37%)
HSVhsv(112, 81%, 63%)
CMYKcmyk(69.4%, 0%, 80.6%, 37.3%)
CIE-LABlab(57.93, -54.10, 53.31)
CIE-LCHlch(57.93, 75.95, 135.42°)
OKLaboklab(61.96% -0.1478 0.1186)
OKLCHoklch(61.96% 0.189 141.3)
XYZxyz(14.0840, 25.8920, 5.5515)
Luminance0.2589 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31A01F #8E1FA0
analogous
#71A01F #31A01F #1FA04E
triadic
#31A01F #1F31A0 #A01F31
tetradic
#31A01F #1F71A0 #8E1FA0 #A04E1F
square
#31A01F #1F71A0 #8E1FA0 #A04E1F
split-complementary
#31A01F #4E1FA0 #A01F71
monochromatic
#12390B #216D15 #31A01F #41D329 #6DDF5A

Accessibility & contrast

On white

3.40
#31A01F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.18
#31A01F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #31A01F
6.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31A01F#FFFFFF#000000##000000
##31A01F1.003.406.186.18
#FFFFFF3.401.0021.0021.00
#0000006.1821.001.001.00
##0000006.1821.001.001.00

Color blindness preview

Protanopia (red-blind)
#A49100
Deuteranopia (green-blind)
#97882F
Tritanopia (blue-blind)
#189B88
Achromatopsia (no color)
#8B8B8B

Design tokens & code

CSS
--color: #31a01f;
/* rgb */ color: rgb(49, 160, 31);
/* oklch */ color: oklch(62.0% 0.189 141.3);
Tailwind
colors: {
  custom: {
    50: '#7abd66',
    500: '#31a01f',
    950: '#000000',
  },
}
SCSS
$custom: #31a01f;
$custom-light: #7abd66;
$custom-dark: #000000;
JSON
{
  "hex": "#31a01f",
  "rgb": {
    "r": 49,
    "g": 160,
    "b": 31
  },
  "hsl": {
    "h": 111.628,
    "s": 67.539,
    "l": 37.451
  },
  "oklch": {
    "l": 0.61963,
    "c": 0.18949,
    "h": 141.3
  },
  "luminance": 0.25894
}

Semantic roles & 50–950 ramp

primary
#31A01F
secondary
#B458C3
accent
#3DEAD2
background
#F8FBF6
surface
#EFF7EB
border
#CAD0C6
text
#0B1206
muted
#7C817A

Preview Lab

Preview with #31A01F

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

Preview Lab → · Contrast checker → · Palette generator →

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