#40053A#40053A

#40053A is a dark, moderate purple. Relative luminance 0.015; OKLCH L 26.1% C 0.108 H 333.0°. Best body text is #FFFFFF at 16.14:1 contrast (WCAG AA passes).

Color values

HEX#40053A
RGBrgb(64, 5, 58)
HSLhsl(306, 86%, 14%)
HSVhsv(306, 92%, 25%)
CMYKcmyk(0%, 92.2%, 9.4%, 74.9%)
CIE-LABlab(12.64, 33.39, -17.87)
CIE-LCHlch(12.64, 37.87, 331.84°)
OKLaboklab(26.13% 0.0965 -0.0492)
OKLCHoklch(26.13% 0.108 333)
XYZxyz(2.9324, 1.5043, 4.1381)
Luminance0.0150 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40053A #05400B
analogous
#280540 #40053A #40051C
triadic
#40053A #3A4005 #053A40
tetradic
#40053A #402805 #05400B #051C40
square
#40053A #402805 #05400B #051C40
split-complementary
#40053A #1C4005 #054028
monochromatic
#1C021A #1C021A #40053A #79096D #B20EA1

Accessibility & contrast

On white

16.14
#40053A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.30
#40053A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40053A
16.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40053A#FFFFFF#000000##FFFFFF
##40053A1.0016.141.3016.14
#FFFFFF16.141.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#021B3B
Deuteranopia (green-blind)
#1A2439
Tritanopia (blue-blind)
#430C20
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #40053a;
/* rgb */ color: rgb(64, 5, 58);
/* oklch */ color: oklch(26.1% 0.108 333.0);
Tailwind
colors: {
  custom: {
    50: '#784e70',
    500: '#40053a',
    950: '#000000',
  },
}
SCSS
$custom: #40053a;
$custom-light: #784e70;
$custom-dark: #000000;
JSON
{
  "hex": "#40053a",
  "rgb": {
    "r": 64,
    "g": 5,
    "b": 58
  },
  "hsl": {
    "h": 306.102,
    "s": 85.507,
    "l": 13.529
  },
  "oklch": {
    "l": 0.26132,
    "c": 0.10827,
    "h": 333
  },
  "luminance": 0.01504
}

Semantic roles & 50–950 ramp

primary
#40053A
secondary
#20812A
accent
#FC412C
background
#F7F4F6
surface
#EDE7EC
border
#C8C3C7
text
#090207
muted
#7B787A

Preview Lab

Preview with #40053A

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

Preview Lab → · Contrast checker → · Palette generator →

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