#40845A#40845A

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

Color values

HEX#40845A
RGBrgb(64, 132, 90)
HSLhsl(143, 35%, 38%)
HSVhsv(143, 52%, 52%)
CMYKcmyk(51.5%, 0%, 31.8%, 48.2%)
CIE-LABlab(49.89, -31.74, 16.24)
CIE-LCHlch(49.89, 35.65, 152.90°)
OKLaboklab(55.7% -0.0866 0.0411)
OKLCHoklch(55.7% 0.096 154.6)
XYZxyz(12.2102, 18.3297, 12.5654)
Luminance0.1833 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40845A #84406A
analogous
#488440 #40845A #40847C
triadic
#40845A #5A4084 #845A40
tetradic
#40845A #404884 #84406A #847C40
square
#40845A #404884 #84406A #847C40
split-complementary
#40845A #7C4084 #844048
monochromatic
#183222 #2C5B3E #40845A #55AC76 #7EC097

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##40845A#FFFFFF#000000##000000
##40845A1.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)
#847B57
Deuteranopia (green-blind)
#7A745D
Tritanopia (blue-blind)
#2F8379
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #40845a;
/* rgb */ color: rgb(64, 132, 90);
/* oklch */ color: oklch(55.7% 0.096 154.6);
Tailwind
colors: {
  custom: {
    50: '#7aa889',
    500: '#40845a',
    950: '#000000',
  },
}
SCSS
$custom: #40845a;
$custom-light: #7aa889;
$custom-dark: #000000;
JSON
{
  "hex": "#40845a",
  "rgb": {
    "r": 64,
    "g": 132,
    "b": 90
  },
  "hsl": {
    "h": 142.941,
    "s": 34.694,
    "l": 38.431
  },
  "oklch": {
    "l": 0.55696,
    "c": 0.09585,
    "h": 154.6
  },
  "luminance": 0.18331
}

Semantic roles & 50–950 ramp

primary
#40845A
secondary
#AB7596
accent
#5DA1CB
background
#F7FAF8
surface
#EEF4F0
border
#C9CECB
text
#09100B
muted
#7B7F7C

Preview Lab

Preview with #40845A

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

Preview Lab → · Contrast checker → · Palette generator →

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