#31A338#31A338

#31A338 is a light, vivid green. Relative luminance 0.271; OKLCH L 63.0% C 0.178 H 143.9°. Best body text is #000000 at 6.43:1 contrast (WCAG AA passes).

Color values

HEX#31A338
RGBrgb(49, 163, 56)
HSLhsl(124, 54%, 42%)
HSVhsv(124, 70%, 64%)
CMYKcmyk(69.9%, 0%, 65.6%, 36.1%)
CIE-LABlab(59.10, -53.03, 45.07)
CIE-LCHlch(59.10, 69.60, 139.63°)
OKLaboklab(62.98% -0.1436 0.1046)
OKLCHoklch(62.98% 0.178 143.9)
XYZxyz(15.0767, 27.1313, 8.1829)
Luminance0.2713 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31A338 #A3319C
analogous
#63A331 #31A338 #31A371
triadic
#31A338 #3831A3 #A33831
tetradic
#31A338 #3163A3 #A3319C #A37131
square
#31A338 #3163A3 #A3319C #A37131
split-complementary
#31A338 #7131A3 #A33163
monochromatic
#154518 #237428 #31A338 #49C851 #78D67E

Accessibility & contrast

On white

3.27
#31A338 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.43
#31A338 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #31A338
6.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31A338#FFFFFF#000000##000000
##31A3381.003.276.436.43
#FFFFFF3.271.0021.0021.00
#0000006.4321.001.001.00
##0000006.4321.001.001.00

Color blindness preview

Protanopia (red-blind)
#A6942B
Deuteranopia (green-blind)
#998B42
Tritanopia (blue-blind)
#0B9F8D
Achromatopsia (no color)
#8E8E8E

Design tokens & code

CSS
--color: #31a338;
/* rgb */ color: rgb(49, 163, 56);
/* oklch */ color: oklch(63.0% 0.178 143.9);
Tailwind
colors: {
  custom: {
    50: '#79bf73',
    500: '#31a338',
    950: '#000000',
  },
}
SCSS
$custom: #31a338;
$custom-light: #79bf73;
$custom-dark: #000000;
JSON
{
  "hex": "#31a338",
  "rgb": {
    "r": 49,
    "g": 163,
    "b": 56
  },
  "hsl": {
    "h": 123.684,
    "s": 53.774,
    "l": 41.569
  },
  "oklch": {
    "l": 0.62982,
    "c": 0.17766,
    "h": 143.9
  },
  "luminance": 0.27133
}

Semantic roles & 50–950 ramp

primary
#31A338
secondary
#BF71BA
accent
#4BD4DD
background
#F8FBF7
surface
#EFF7ED
border
#CAD0C8
text
#0A1208
muted
#7C817B

Preview Lab

Preview with #31A338

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

Preview Lab → · Contrast checker → · Palette generator →

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