#40845B#40845B

#40845B is a mid, moderate green. Relative luminance 0.183; OKLCH L 55.7% C 0.095 H 155.2°. Best body text is #000000 at 4.67:1 contrast (WCAG AA passes).

Color values

HEX#40845B
RGBrgb(64, 132, 91)
HSLhsl(144, 35%, 38%)
HSVhsv(144, 52%, 52%)
CMYKcmyk(51.5%, 0%, 31.1%, 48.2%)
CIE-LABlab(49.91, -31.53, 15.69)
CIE-LCHlch(49.91, 35.22, 153.54°)
OKLaboklab(55.72% -0.0861 0.0398)
OKLCHoklch(55.72% 0.095 155.2)
XYZxyz(12.2530, 18.3469, 12.7911)
Luminance0.1835 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40845B #844069
analogous
#478440 #40845B #40847D
triadic
#40845B #5B4084 #845B40
tetradic
#40845B #404784 #844069 #847D40
square
#40845B #404784 #844069 #847D40
split-complementary
#40845B #7D4084 #844047
monochromatic
#183222 #2C5B3F #40845B #55AC78 #7EC098

Accessibility & contrast

On white

4.50
#40845B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.67
#40845B on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #40845B
4.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40845B#FFFFFF#000000##000000
##40845B1.004.504.674.67
#FFFFFF4.501.0021.0021.00
#0000004.6721.001.001.00
##0000004.6721.001.001.00

Color blindness preview

Protanopia (red-blind)
#847B59
Deuteranopia (green-blind)
#7A745D
Tritanopia (blue-blind)
#2F8379
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #40845b;
/* rgb */ color: rgb(64, 132, 91);
/* oklch */ color: oklch(55.7% 0.095 155.2);
Tailwind
colors: {
  custom: {
    50: '#7aa889',
    500: '#40845b',
    950: '#000000',
  },
}
SCSS
$custom: #40845b;
$custom-light: #7aa889;
$custom-dark: #000000;
JSON
{
  "hex": "#40845b",
  "rgb": {
    "r": 64,
    "g": 132,
    "b": 91
  },
  "hsl": {
    "h": 143.824,
    "s": 34.694,
    "l": 38.431
  },
  "oklch": {
    "l": 0.5572,
    "c": 0.09485,
    "h": 155.2
  },
  "luminance": 0.18348
}

Semantic roles & 50–950 ramp

primary
#40845B
secondary
#AB7595
accent
#5D9FCB
background
#F7FAF8
surface
#EEF4F0
border
#C9CECB
text
#09100B
muted
#7B7F7C

Preview Lab

Preview with #40845B

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

Preview Lab → · Contrast checker → · Palette generator →

#40845B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva