#31995C#31995C

#31995C is a mid, vivid green. Relative luminance 0.242; OKLCH L 60.8% C 0.132 H 153.6°. Best body text is #000000 at 5.84:1 contrast (WCAG AA passes).

Color values

HEX#31995C
RGBrgb(49, 153, 92)
HSLhsl(145, 51%, 40%)
HSVhsv(145, 68%, 60%)
CMYKcmyk(68%, 0%, 39.9%, 40%)
CIE-LABlab(56.29, -43.91, 23.64)
CIE-LCHlch(56.29, 49.86, 151.71°)
OKLaboklab(60.82% -0.1186 0.0589)
OKLCHoklch(60.82% 0.132 153.6)
XYZxyz(14.5884, 24.2066, 14.0267)
Luminance0.2421 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31995C #99316E
analogous
#3A9931 #31995C #319990
triadic
#31995C #5C3199 #995C31
tetradic
#31995C #313A99 #99316E #999031
square
#31995C #313A99 #99316E #999031
split-complementary
#31995C #903199 #99313A
monochromatic
#133C24 #226B40 #31995C #44C379 #72D29A

Accessibility & contrast

On white

3.59
#31995C on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.84
#31995C on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #31995C
5.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31995C#FFFFFF#000000##000000
##31995C1.003.595.845.84
#FFFFFF3.591.0021.0021.00
#0000005.8421.001.001.00
##0000005.8421.001.001.00

Color blindness preview

Protanopia (red-blind)
#998D58
Deuteranopia (green-blind)
#8C8360
Tritanopia (blue-blind)
#00978A
Achromatopsia (no color)
#878787

Design tokens & code

CSS
--color: #31995c;
/* rgb */ color: rgb(49, 153, 92);
/* oklch */ color: oklch(60.8% 0.132 153.6);
Tailwind
colors: {
  custom: {
    50: '#76b88a',
    500: '#31995c',
    950: '#000000',
  },
}
SCSS
$custom: #31995c;
$custom-light: #76b88a;
$custom-dark: #000000;
JSON
{
  "hex": "#31995c",
  "rgb": {
    "r": 49,
    "g": 153,
    "b": 92
  },
  "hsl": {
    "h": 144.808,
    "s": 51.485,
    "l": 39.608
  },
  "oklch": {
    "l": 0.6082,
    "c": 0.13244,
    "h": 153.6
  },
  "luminance": 0.24208
}

Semantic roles & 50–950 ramp

primary
#31995C
secondary
#BA6C9A
accent
#4DA0DB
background
#F7FBF8
surface
#EEF6F0
border
#C9D0CB
text
#09110C
muted
#7B807D

Preview Lab

Preview with #31995C

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

Preview Lab → · Contrast checker → · Palette generator →

#31995C Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva