#400B52#400B52

#400B52 is a dark, vivid purple. Relative luminance 0.019; OKLCH L 28.5% C 0.123 H 315.5°. Best body text is #FFFFFF at 15.13:1 contrast (WCAG AA passes).

Color values

HEX#400B52
RGBrgb(64, 11, 82)
HSLhsl(285, 76%, 18%)
HSVhsv(285, 87%, 32%)
CMYKcmyk(22%, 86.6%, 0%, 67.8%)
CIE-LABlab(15.16, 36.00, -30.58)
CIE-LCHlch(15.16, 47.24, 319.65°)
OKLaboklab(28.48% 0.0878 -0.0863)
OKLCHoklch(28.48% 0.123 315.5)
XYZxyz(3.7568, 1.9387, 8.1573)
Luminance0.0194 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#400B52 #1D520B
analogous
#1C0B52 #400B52 #520B40
triadic
#400B52 #52400B #0B5240
tetradic
#400B52 #521C0B #1D520B #0B4052
square
#400B52 #521C0B #1D520B #0B4052
split-complementary
#400B52 #40520B #0B521C
monochromatic
#15041B #16041C #400B52 #6A1288 #9419BE

Accessibility & contrast

On white

15.13
#400B52 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.39
#400B52 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #400B52
15.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##400B52#FFFFFF#000000##FFFFFF
##400B521.0015.131.3915.13
#FFFFFF15.131.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002354
Deuteranopia (green-blind)
#082751
Tritanopia (blue-blind)
#3F1C2F
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #400b52;
/* rgb */ color: rgb(64, 11, 82);
/* oklch */ color: oklch(28.5% 0.123 315.5);
Tailwind
colors: {
  custom: {
    50: '#785283',
    500: '#400b52',
    950: '#000000',
  },
}
SCSS
$custom: #400b52;
$custom-light: #785283;
$custom-dark: #000000;
JSON
{
  "hex": "#400b52",
  "rgb": {
    "r": 64,
    "g": 11,
    "b": 82
  },
  "hsl": {
    "h": 284.789,
    "s": 76.344,
    "l": 18.235
  },
  "oklch": {
    "l": 0.28482,
    "c": 0.12315,
    "h": 315.5
  },
  "luminance": 0.01939
}

Semantic roles & 50–950 ramp

primary
#400B52
secondary
#448E2B
accent
#F33565
background
#F7F4F8
surface
#EDE7EF
border
#C8C3CA
text
#09020B
muted
#7B787C

Preview Lab

Preview with #400B52

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

Preview Lab → · Contrast checker → · Palette generator →

#400B52 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva