#405228#405228

#405228 is a dark, moderate yellow-green. Relative luminance 0.073; OKLCH L 41.2% C 0.068 H 128.1°. Best body text is #FFFFFF at 8.55:1 contrast (WCAG AA passes).

Color values

HEX#405228
RGBrgb(64, 82, 40)
HSLhsl(86, 34%, 24%)
HSVhsv(86, 51%, 32%)
CMYKcmyk(22%, 0%, 51.2%, 67.8%)
CIE-LABlab(32.43, -15.19, 22.29)
CIE-LCHlch(32.43, 26.97, 124.27°)
OKLaboklab(41.22% -0.0421 0.0537)
OKLCHoklch(41.22% 0.068 128.1)
XYZxyz(5.5146, 7.2777, 3.1213)
Luminance0.0728 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405228 #3A2852
analogous
#524F28 #405228 #2B5228
triadic
#405228 #284052 #522840
tetradic
#405228 #28524F #3A2852 #52282B
square
#405228 #28524F #3A2852 #52282B
split-complementary
#405228 #282B52 #4F2852
monochromatic
#10150A #202914 #405228 #607B3C #80A450

Accessibility & contrast

On white

8.55
#405228 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.46
#405228 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #405228
8.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##405228#FFFFFF#000000##FFFFFF
##4052281.008.552.468.55
#FFFFFF8.551.0021.001.00
#0000002.4621.001.0021.00
##FFFFFF8.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#564D24
Deuteranopia (green-blind)
#534C2A
Tritanopia (blue-blind)
#424F48
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #405228;
/* rgb */ color: rgb(64, 82, 40);
/* oklch */ color: oklch(41.2% 0.068 128.1);
Tailwind
colors: {
  custom: {
    50: '#768263',
    500: '#405228',
    950: '#000000',
  },
}
SCSS
$custom: #405228;
$custom-light: #768263;
$custom-dark: #000000;
JSON
{
  "hex": "#405228",
  "rgb": {
    "r": 64,
    "g": 82,
    "b": 40
  },
  "hsl": {
    "h": 85.714,
    "s": 34.426,
    "l": 23.922
  },
  "oklch": {
    "l": 0.41224,
    "c": 0.06825,
    "h": 128.1
  },
  "luminance": 0.07278
}

Semantic roles & 50–950 ramp

primary
#405228
secondary
#675185
accent
#5DCB8C
background
#F7F7F5
surface
#EDEEEA
border
#C8C9C6
text
#080A05
muted
#7B7C79

Preview Lab

Preview with #405228

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

Preview Lab → · Contrast checker → · Palette generator →

#405228 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva