#400F53#400F53

#400F53 is a dark, moderate purple. Relative luminance 0.021; OKLCH L 28.9% C 0.120 H 314.4°. Best body text is #FFFFFF at 14.88:1 contrast (WCAG AA passes).

Color values

HEX#400F53
RGBrgb(64, 15, 83)
HSLhsl(283, 69%, 19%)
HSVhsv(283, 82%, 33%)
CMYKcmyk(22.9%, 81.9%, 0%, 67.5%)
CIE-LABlab(15.78, 34.68, -30.27)
CIE-LCHlch(15.78, 46.03, 318.88°)
OKLaboklab(28.94% 0.0838 -0.0854)
OKLCHoklch(28.94% 0.12 314.4)
XYZxyz(3.8462, 2.0563, 8.3762)
Luminance0.0206 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#400F53 #22530F
analogous
#1E0F53 #400F53 #530F44
triadic
#400F53 #53400F #0F5340
tetradic
#400F53 #531E0F #22530F #0F4453
square
#400F53 #531E0F #22530F #0F4453
split-complementary
#400F53 #44530F #0F531E
monochromatic
#14051A #18061F #400F53 #681887 #9022BB

Accessibility & contrast

On white

14.88
#400F53 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.41
#400F53 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #400F53
14.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##400F53#FFFFFF#000000##FFFFFF
##400F531.0014.881.4114.88
#FFFFFF14.881.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002555
Deuteranopia (green-blind)
#0B2852
Tritanopia (blue-blind)
#3E1E30
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #400f53;
/* rgb */ color: rgb(64, 15, 83);
/* oklch */ color: oklch(28.9% 0.120 314.4);
Tailwind
colors: {
  custom: {
    50: '#785384',
    500: '#400f53',
    950: '#000000',
  },
}
SCSS
$custom: #400f53;
$custom-light: #785384;
$custom-dark: #000000;
JSON
{
  "hex": "#400f53",
  "rgb": {
    "r": 64,
    "g": 15,
    "b": 83
  },
  "hsl": {
    "h": 283.235,
    "s": 69.388,
    "l": 19.216
  },
  "oklch": {
    "l": 0.28943,
    "c": 0.11964,
    "h": 314.4
  },
  "luminance": 0.02056
}

Semantic roles & 50–950 ramp

primary
#400F53
secondary
#4B8D31
accent
#EC3C6D
background
#F7F5F8
surface
#EDE8EF
border
#C8C4CA
text
#09030B
muted
#7B787C

Preview Lab

Preview with #400F53

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

Preview Lab → · Contrast checker → · Palette generator →

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