#40974F#40974F

#40974F is a mid, vivid green. Relative luminance 0.238; OKLCH L 60.5% C 0.136 H 147.1°. Best body text is #000000 at 5.76:1 contrast (WCAG AA passes).

Color values

HEX#40974F
RGBrgb(64, 151, 79)
HSLhsl(130, 40%, 42%)
HSVhsv(130, 58%, 59%)
CMYKcmyk(57.6%, 0%, 47.7%, 40.8%)
CIE-LABlab(55.87, -42.07, 30.16)
CIE-LCHlch(55.87, 51.77, 144.37°)
OKLaboklab(60.53% -0.1139 0.0736)
OKLCHoklch(60.53% 0.136 147.1)
XYZxyz(14.5913, 23.7864, 11.2179)
Luminance0.2379 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40974F #974088
analogous
#5D9740 #40974F #40977B
triadic
#40974F #4F4097 #974F40
tetradic
#40974F #405D97 #974088 #977B40
square
#40974F #405D97 #974088 #977B40
split-complementary
#40974F #7B4097 #97405D
monochromatic
#1C4122 #2E6C39 #40974F #5BB96B #86CC92

Accessibility & contrast

On white

3.65
#40974F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.76
#40974F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #40974F
5.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40974F#FFFFFF#000000##000000
##40974F1.003.655.765.76
#FFFFFF3.651.0021.0021.00
#0000005.7621.001.001.00
##0000005.7621.001.001.00

Color blindness preview

Protanopia (red-blind)
#998B49
Deuteranopia (green-blind)
#8D8354
Tritanopia (blue-blind)
#2D9486
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #40974f;
/* rgb */ color: rgb(64, 151, 79);
/* oklch */ color: oklch(60.5% 0.136 147.1);
Tailwind
colors: {
  custom: {
    50: '#7db681',
    500: '#40974f',
    950: '#000000',
  },
}
SCSS
$custom: #40974f;
$custom-light: #7db681;
$custom-dark: #000000;
JSON
{
  "hex": "#40974f",
  "rgb": {
    "r": 64,
    "g": 151,
    "b": 79
  },
  "hsl": {
    "h": 130.345,
    "s": 40.465,
    "l": 42.157
  },
  "oklch": {
    "l": 0.60529,
    "c": 0.1356,
    "h": 147.1
  },
  "luminance": 0.23788
}

Semantic roles & 50–950 ramp

primary
#40974F
secondary
#B67DAC
accent
#57BBD0
background
#F8FBF8
surface
#EFF6EF
border
#CAD0CA
text
#0A110A
muted
#7C807C

Preview Lab

Preview with #40974F

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

Preview Lab → · Contrast checker → · Palette generator →

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