#40053C#40053C

#40053C is a dark, moderate purple. Relative luminance 0.015; OKLCH L 26.3% C 0.110 H 331.4°. Best body text is #FFFFFF at 16.09:1 contrast (WCAG AA passes).

Color values

HEX#40053C
RGBrgb(64, 5, 60)
HSLhsl(304, 86%, 14%)
HSVhsv(304, 92%, 25%)
CMYKcmyk(0%, 92.2%, 6.2%, 74.9%)
CIE-LABlab(12.77, 33.74, -19.09)
CIE-LCHlch(12.77, 38.77, 330.50°)
OKLaboklab(26.27% 0.0965 -0.0527)
OKLCHoklch(26.27% 0.11 331.4)
XYZxyz(2.9842, 1.5250, 4.4113)
Luminance0.0152 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40053C #054009
analogous
#260540 #40053C #40051E
triadic
#40053C #3C4005 #053C40
tetradic
#40053C #402605 #054009 #051E40
square
#40053C #402605 #054009 #051E40
split-complementary
#40053C #1E4005 #054026
monochromatic
#1C021B #1C021B #40053C #790971 #B20EA6

Accessibility & contrast

On white

16.09
#40053C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #40053C
16.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40053C#FFFFFF#000000##FFFFFF
##40053C1.0016.091.3116.09
#FFFFFF16.091.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF16.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001C3D
Deuteranopia (green-blind)
#19243B
Tritanopia (blue-blind)
#430D21
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #40053c;
/* rgb */ color: rgb(64, 5, 60);
/* oklch */ color: oklch(26.3% 0.110 331.4);
Tailwind
colors: {
  custom: {
    50: '#784e72',
    500: '#40053c',
    950: '#000000',
  },
}
SCSS
$custom: #40053c;
$custom-light: #784e72;
$custom-dark: #000000;
JSON
{
  "hex": "#40053c",
  "rgb": {
    "r": 64,
    "g": 5,
    "b": 60
  },
  "hsl": {
    "h": 304.068,
    "s": 85.507,
    "l": 13.529
  },
  "oklch": {
    "l": 0.26268,
    "c": 0.10993,
    "h": 331.4
  },
  "luminance": 0.01525
}

Semantic roles & 50–950 ramp

primary
#40053C
secondary
#208127
accent
#FC3A2C
background
#F7F4F6
surface
#EDE7EC
border
#C8C3C7
text
#090208
muted
#7B787B

Preview Lab

Preview with #40053C

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

Preview Lab → · Contrast checker → · Palette generator →

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