#40053F#40053F

#40053F is a dark, moderate purple. Relative luminance 0.016; OKLCH L 26.5% C 0.112 H 329.0°. Best body text is #FFFFFF at 16.01:1 contrast (WCAG AA passes).

Color values

HEX#40053F
RGBrgb(64, 5, 63)
HSLhsl(301, 86%, 14%)
HSVhsv(301, 92%, 25%)
CMYKcmyk(0%, 92.2%, 1.6%, 74.9%)
CIE-LABlab(12.97, 34.29, -20.90)
CIE-LCHlch(12.97, 40.16, 328.63°)
OKLaboklab(26.48% 0.0964 -0.058)
OKLCHoklch(26.48% 0.112 329)
XYZxyz(3.0658, 1.5577, 4.8408)
Luminance0.0156 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40053F #054006
analogous
#230540 #40053F #400521
triadic
#40053F #3F4005 #053F40
tetradic
#40053F #402305 #054006 #052140
square
#40053F #402305 #054006 #052140
split-complementary
#40053F #214005 #054023
monochromatic
#1C021C #1C021C #40053F #790977 #B20EAF

Accessibility & contrast

On white

16.01
#40053F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.31
#40053F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40053F
16.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40053F#FFFFFF#000000##FFFFFF
##40053F1.0016.011.3116.01
#FFFFFF16.011.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF16.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001D40
Deuteranopia (green-blind)
#17243E
Tritanopia (blue-blind)
#430F22
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #40053f;
/* rgb */ color: rgb(64, 5, 63);
/* oklch */ color: oklch(26.5% 0.112 329.0);
Tailwind
colors: {
  custom: {
    50: '#784e74',
    500: '#40053f',
    950: '#000000',
  },
}
SCSS
$custom: #40053f;
$custom-light: #784e74;
$custom-dark: #000000;
JSON
{
  "hex": "#40053f",
  "rgb": {
    "r": 64,
    "g": 5,
    "b": 63
  },
  "hsl": {
    "h": 301.017,
    "s": 85.507,
    "l": 13.529
  },
  "oklch": {
    "l": 0.26478,
    "c": 0.11244,
    "h": 329
  },
  "luminance": 0.01557
}

Semantic roles & 50–950 ramp

primary
#40053F
secondary
#208122
accent
#FC302C
background
#F7F4F7
surface
#EDE7ED
border
#C8C3C8
text
#090208
muted
#7B787B

Preview Lab

Preview with #40053F

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

Preview Lab → · Contrast checker → · Palette generator →

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