#31B438#31B438

#31B438 is a light, vivid green. Relative luminance 0.336; OKLCH L 67.6% C 0.198 H 143.7°. Best body text is #000000 at 7.72:1 contrast (WCAG AA passes).

Color values

HEX#31B438
RGBrgb(49, 180, 56)
HSLhsl(123, 57%, 45%)
HSVhsv(123, 73%, 71%)
CMYKcmyk(72.8%, 0%, 68.9%, 29.4%)
CIE-LABlab(64.63, -58.81, 51.07)
CIE-LCHlch(64.63, 77.89, 139.03°)
OKLaboklab(67.57% -0.1593 0.1172)
OKLCHoklch(67.57% 0.198 143.7)
XYZxyz(18.3005, 33.5790, 9.2575)
Luminance0.3358 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31B438 #B431AD
analogous
#6CB431 #31B438 #31B479
triadic
#31B438 #3831B4 #B43831
tetradic
#31B438 #316CB4 #B431AD #B47931
square
#31B438 #316CB4 #B431AD #B47931
split-complementary
#31B438 #7931B4 #B4316C
monochromatic
#17541A #248429 #31B438 #52D059 #82DD87

Accessibility & contrast

On white

2.72
#31B438 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.72
#31B438 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #31B438
7.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31B438#FFFFFF#000000##000000
##31B4381.002.727.727.72
#FFFFFF2.721.0021.0021.00
#0000007.7221.001.001.00
##0000007.7221.001.001.00

Color blindness preview

Protanopia (red-blind)
#B8A326
Deuteranopia (green-blind)
#A99944
Tritanopia (blue-blind)
#00AF9B
Achromatopsia (no color)
#9D9D9D

Design tokens & code

CSS
--color: #31b438;
/* rgb */ color: rgb(49, 180, 56);
/* oklch */ color: oklch(67.6% 0.198 143.7);
Tailwind
colors: {
  custom: {
    50: '#7dcc75',
    500: '#31b438',
    950: '#000000',
  },
}
SCSS
$custom: #31b438;
$custom-light: #7dcc75;
$custom-dark: #000000;
JSON
{
  "hex": "#31b438",
  "rgb": {
    "r": 49,
    "g": 180,
    "b": 56
  },
  "hsl": {
    "h": 123.206,
    "s": 57.205,
    "l": 44.902
  },
  "oklch": {
    "l": 0.67568,
    "c": 0.19779,
    "h": 143.7
  },
  "luminance": 0.33581
}

Semantic roles & 50–950 ramp

primary
#31B438
secondary
#C67BC2
accent
#47D8E0
background
#F8FCF7
surface
#EFF9ED
border
#CAD2C8
text
#0B1309
muted
#7C827B

Preview Lab

Preview with #31B438

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

Preview Lab → · Contrast checker → · Palette generator →

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