#400538#400538

#400538 is a dark, moderate purple. Relative luminance 0.015; OKLCH L 26.0% C 0.107 H 334.7°. Best body text is #FFFFFF at 16.19:1 contrast (WCAG AA passes).

Color values

HEX#400538
RGBrgb(64, 5, 56)
HSLhsl(308, 86%, 14%)
HSVhsv(308, 92%, 25%)
CMYKcmyk(0%, 92.2%, 12.5%, 74.9%)
CIE-LABlab(12.51, 33.05, -16.64)
CIE-LCHlch(12.51, 37.00, 333.28°)
OKLaboklab(26% 0.0964 -0.0456)
OKLCHoklch(26% 0.107 334.7)
XYZxyz(2.8825, 1.4843, 3.8753)
Luminance0.0148 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#400538 #05400D
analogous
#2A0540 #400538 #40051A
triadic
#400538 #384005 #053840
tetradic
#400538 #402A05 #05400D #051A40
square
#400538 #402A05 #05400D #051A40
split-complementary
#400538 #1A4005 #05402A
monochromatic
#1C0219 #1C0219 #400538 #79096A #B20E9B

Accessibility & contrast

On white

16.19
#400538 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.30
#400538 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #400538
16.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##400538#FFFFFF#000000##FFFFFF
##4005381.0016.191.3016.19
#FFFFFF16.191.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#041B39
Deuteranopia (green-blind)
#1B2437
Tritanopia (blue-blind)
#440B1E
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #400538;
/* rgb */ color: rgb(64, 5, 56);
/* oklch */ color: oklch(26.0% 0.107 334.7);
Tailwind
colors: {
  custom: {
    50: '#784e6f',
    500: '#400538',
    950: '#000000',
  },
}
SCSS
$custom: #400538;
$custom-light: #784e6f;
$custom-dark: #000000;
JSON
{
  "hex": "#400538",
  "rgb": {
    "r": 64,
    "g": 5,
    "b": 56
  },
  "hsl": {
    "h": 308.136,
    "s": 85.507,
    "l": 13.529
  },
  "oklch": {
    "l": 0.26001,
    "c": 0.10666,
    "h": 334.7
  },
  "luminance": 0.01484
}

Semantic roles & 50–950 ramp

primary
#400538
secondary
#20812D
accent
#FC482C
background
#F7F4F6
surface
#EDE7EC
border
#C8C3C7
text
#090207
muted
#7B787A

Preview Lab

Preview with #400538

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

Preview Lab → · Contrast checker → · Palette generator →

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