#40945C#40945C

#40945C is a mid, moderate green. Relative luminance 0.230; OKLCH L 60.0% C 0.118 H 152.1°. Best body text is #000000 at 5.61:1 contrast (WCAG AA passes).

Color values

HEX#40945C
RGBrgb(64, 148, 92)
HSLhsl(140, 40%, 42%)
HSVhsv(140, 57%, 58%)
CMYKcmyk(56.8%, 0%, 37.8%, 42%)
CIE-LABlab(55.11, -38.54, 22.15)
CIE-LCHlch(55.11, 44.45, 150.11°)
OKLaboklab(59.98% -0.1045 0.0554)
OKLCHoklch(59.98% 0.118 152.1)
XYZxyz(14.6349, 23.0412, 13.7993)
Luminance0.2304 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40945C #944078
analogous
#4E9440 #40945C #409486
triadic
#40945C #5C4094 #945C40
tetradic
#40945C #404E94 #944078 #948640
square
#40945C #404E94 #944078 #948640
split-complementary
#40945C #864094 #94404E
monochromatic
#1B3F27 #2E6941 #40945C #5AB879 #84CA9C

Accessibility & contrast

On white

3.74
#40945C on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.61
#40945C on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #40945C
5.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40945C#FFFFFF#000000##000000
##40945C1.003.745.615.61
#FFFFFF3.741.0021.0021.00
#0000005.6121.001.001.00
##0000005.6121.001.001.00

Color blindness preview

Protanopia (red-blind)
#948958
Deuteranopia (green-blind)
#898160
Tritanopia (blue-blind)
#299286
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #40945c;
/* rgb */ color: rgb(64, 148, 92);
/* oklch */ color: oklch(60.0% 0.118 152.1);
Tailwind
colors: {
  custom: {
    50: '#7cb48a',
    500: '#40945c',
    950: '#000000',
  },
}
SCSS
$custom: #40945c;
$custom-light: #7cb48a;
$custom-dark: #000000;
JSON
{
  "hex": "#40945c",
  "rgb": {
    "r": 64,
    "g": 148,
    "b": 92
  },
  "hsl": {
    "h": 140,
    "s": 39.623,
    "l": 41.569
  },
  "oklch": {
    "l": 0.59976,
    "c": 0.11829,
    "h": 152.1
  },
  "luminance": 0.23043
}

Semantic roles & 50–950 ramp

primary
#40945C
secondary
#B47BA1
accent
#58A8D0
background
#F7FBF8
surface
#EEF6F0
border
#C9D0CB
text
#0A110C
muted
#7C807D

Preview Lab

Preview with #40945C

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

Preview Lab → · Contrast checker → · Palette generator →

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