#31A42C#31A42C

#31A42C is a light, vivid green. Relative luminance 0.274; OKLCH L 63.1% C 0.187 H 142.5°. Best body text is #000000 at 6.48:1 contrast (WCAG AA passes).

Color values

HEX#31A42C
RGBrgb(49, 164, 44)
HSLhsl(118, 58%, 41%)
HSVhsv(118, 73%, 64%)
CMYKcmyk(70.1%, 0%, 73.2%, 35.7%)
CIE-LABlab(59.33, -54.51, 50.22)
CIE-LCHlch(59.33, 74.12, 137.35°)
OKLaboklab(63.14% -0.1483 0.114)
OKLCHoklch(63.14% 0.187 142.5)
XYZxyz(14.9958, 27.3841, 6.8778)
Luminance0.2739 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31A42C #9F2CA4
analogous
#6DA42C #31A42C #2CA463
triadic
#31A42C #2C31A4 #A42C31
tetradic
#31A42C #2C6DA4 #9F2CA4 #A4632C
square
#31A42C #2C6DA4 #9F2CA4 #A4632C
split-complementary
#31A42C #632CA4 #A42C6D
monochromatic
#144312 #23741F #31A42C #47CC41 #76D971

Accessibility & contrast

On white

3.24
#31A42C on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.48
#31A42C on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #31A42C
6.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31A42C#FFFFFF#000000##000000
##31A42C1.003.246.486.48
#FFFFFF3.241.0021.0021.00
#0000006.4821.001.001.00
##0000006.4821.001.001.00

Color blindness preview

Protanopia (red-blind)
#A89417
Deuteranopia (green-blind)
#9A8B38
Tritanopia (blue-blind)
#119F8D
Achromatopsia (no color)
#8F8F8F

Design tokens & code

CSS
--color: #31a42c;
/* rgb */ color: rgb(49, 164, 44);
/* oklch */ color: oklch(63.1% 0.187 142.5);
Tailwind
colors: {
  custom: {
    50: '#7ac06d',
    500: '#31a42c',
    950: '#000000',
  },
}
SCSS
$custom: #31a42c;
$custom-light: #7ac06d;
$custom-dark: #000000;
JSON
{
  "hex": "#31a42c",
  "rgb": {
    "r": 49,
    "g": 164,
    "b": 44
  },
  "hsl": {
    "h": 117.5,
    "s": 57.692,
    "l": 40.784
  },
  "oklch": {
    "l": 0.63144,
    "c": 0.18699,
    "h": 142.5
  },
  "luminance": 0.27386
}

Semantic roles & 50–950 ramp

primary
#31A42C
secondary
#BD6BC0
accent
#47E1DB
background
#F8FBF6
surface
#EFF7EC
border
#CAD0C7
text
#0B1207
muted
#7C817A

Preview Lab

Preview with #31A42C

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

Preview Lab → · Contrast checker → · Palette generator →

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