#31995F#31995F

#31995F is a mid, vivid green. Relative luminance 0.243; OKLCH L 60.9% C 0.130 H 154.8°. Best body text is #000000 at 5.85:1 contrast (WCAG AA passes).

Color values

HEX#31995F
RGBrgb(49, 153, 95)
HSLhsl(147, 51%, 40%)
HSVhsv(147, 68%, 60%)
CMYKcmyk(68%, 0%, 37.9%, 40%)
CIE-LABlab(56.35, -43.32, 22.06)
CIE-LCHlch(56.35, 48.61, 153.01°)
OKLaboklab(60.88% -0.1172 0.0552)
OKLCHoklch(60.88% 0.13 154.8)
XYZxyz(14.7221, 24.2601, 14.7310)
Luminance0.2426 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31995F #99316B
analogous
#379931 #31995F #319993
triadic
#31995F #5F3199 #995F31
tetradic
#31995F #313799 #99316B #999331
square
#31995F #313799 #99316B #999331
split-complementary
#31995F #933199 #993137
monochromatic
#133C25 #226B42 #31995F #44C37C #72D29D

Accessibility & contrast

On white

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

On black

5.85
#31995F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #31995F
5.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31995F#FFFFFF#000000##000000
##31995F1.003.595.855.85
#FFFFFF3.591.0021.0021.00
#0000005.8521.001.001.00
##0000005.8521.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #31995f;
/* rgb */ color: rgb(49, 153, 95);
/* oklch */ color: oklch(60.9% 0.130 154.8);
Tailwind
colors: {
  custom: {
    50: '#76b88d',
    500: '#31995f',
    950: '#000000',
  },
}
SCSS
$custom: #31995f;
$custom-light: #76b88d;
$custom-dark: #000000;
JSON
{
  "hex": "#31995f",
  "rgb": {
    "r": 49,
    "g": 153,
    "b": 95
  },
  "hsl": {
    "h": 146.538,
    "s": 51.485,
    "l": 39.608
  },
  "oklch": {
    "l": 0.60881,
    "c": 0.12955,
    "h": 154.8
  },
  "luminance": 0.24262
}

Semantic roles & 50–950 ramp

primary
#31995F
secondary
#BA6C97
accent
#4D9CDB
background
#F7FBF8
surface
#EEF6F0
border
#C9D0CB
text
#09110C
muted
#7B807D

Preview Lab

Preview with #31995F

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

Preview Lab → · Contrast checker → · Palette generator →

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