#40845F#40845F

#40845F is a mid, moderate green. Relative luminance 0.184; OKLCH L 55.8% C 0.091 H 157.8°. Best body text is #000000 at 4.68:1 contrast (WCAG AA passes).

Color values

HEX#40845F
RGBrgb(64, 132, 95)
HSLhsl(147, 35%, 38%)
HSVhsv(147, 52%, 52%)
CMYKcmyk(51.5%, 0%, 28%, 48.2%)
CIE-LABlab(50.00, -30.68, 13.51)
CIE-LCHlch(50.00, 33.53, 156.23°)
OKLaboklab(55.82% -0.0841 0.0344)
OKLCHoklch(55.82% 0.091 157.8)
XYZxyz(12.4302, 18.4177, 13.7242)
Luminance0.1842 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40845F #844065
analogous
#438440 #40845F #408481
triadic
#40845F #5F4084 #845F40
tetradic
#40845F #404384 #844065 #848140
square
#40845F #404384 #844065 #848140
split-complementary
#40845F #814084 #844043
monochromatic
#183224 #2C5B41 #40845F #55AC7D #7EC09C

Accessibility & contrast

On white

4.48
#40845F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.68
#40845F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #40845F
4.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40845F#FFFFFF#000000##000000
##40845F1.004.484.684.68
#FFFFFF4.481.0021.0021.00
#0000004.6821.001.001.00
##0000004.6821.001.001.00

Color blindness preview

Protanopia (red-blind)
#837B5D
Deuteranopia (green-blind)
#797461
Tritanopia (blue-blind)
#2D837A
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #40845f;
/* rgb */ color: rgb(64, 132, 95);
/* oklch */ color: oklch(55.8% 0.091 157.8);
Tailwind
colors: {
  custom: {
    50: '#7aa88c',
    500: '#40845f',
    950: '#000000',
  },
}
SCSS
$custom: #40845f;
$custom-light: #7aa88c;
$custom-dark: #000000;
JSON
{
  "hex": "#40845f",
  "rgb": {
    "r": 64,
    "g": 132,
    "b": 95
  },
  "hsl": {
    "h": 147.353,
    "s": 34.694,
    "l": 38.431
  },
  "oklch": {
    "l": 0.55817,
    "c": 0.09091,
    "h": 157.8
  },
  "luminance": 0.18419
}

Semantic roles & 50–950 ramp

primary
#40845F
secondary
#AB7592
accent
#5D99CB
background
#F7FAF8
surface
#EEF4F0
border
#C9CECB
text
#09100C
muted
#7B7F7D

Preview Lab

Preview with #40845F

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

Preview Lab → · Contrast checker → · Palette generator →

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