#400C50#400C50

#400C50 is a dark, vivid purple. Relative luminance 0.019; OKLCH L 28.4% C 0.120 H 316.6°. Best body text is #FFFFFF at 15.15:1 contrast (WCAG AA passes).

Color values

HEX#400C50
RGBrgb(64, 12, 80)
HSLhsl(286, 74%, 18%)
HSVhsv(286, 85%, 31%)
CMYKcmyk(20%, 85%, 0%, 68.6%)
CIE-LABlab(15.13, 35.19, -29.27)
CIE-LCHlch(15.13, 45.77, 320.24°)
OKLaboklab(28.41% 0.0873 -0.0825)
OKLCHoklch(28.41% 0.12 316.6)
XYZxyz(3.6936, 1.9323, 7.7663)
Luminance0.0193 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#400C50 #1C500C
analogous
#1E0C50 #400C50 #500C3E
triadic
#400C50 #50400C #0C5040
tetradic
#400C50 #501E0C #1C500C #0C3E50
square
#400C50 #501E0C #1C500C #0C3E50
split-complementary
#400C50 #3E500C #0C501E
monochromatic
#15041B #15041B #400C50 #6B1485 #951CBA

Accessibility & contrast

On white

15.15
#400C50 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #400C50
15.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##400C50#FFFFFF#000000##FFFFFF
##400C501.0015.151.3915.15
#FFFFFF15.151.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002352
Deuteranopia (green-blind)
#0C274F
Tritanopia (blue-blind)
#3F1B2E
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #400c50;
/* rgb */ color: rgb(64, 12, 80);
/* oklch */ color: oklch(28.4% 0.120 316.6);
Tailwind
colors: {
  custom: {
    50: '#785281',
    500: '#400c50',
    950: '#000000',
  },
}
SCSS
$custom: #400c50;
$custom-light: #785281;
$custom-dark: #000000;
JSON
{
  "hex": "#400c50",
  "rgb": {
    "r": 64,
    "g": 12,
    "b": 80
  },
  "hsl": {
    "h": 285.882,
    "s": 73.913,
    "l": 18.039
  },
  "oklch": {
    "l": 0.28407,
    "c": 0.1201,
    "h": 316.6
  },
  "luminance": 0.01932
}

Semantic roles & 50–950 ramp

primary
#400C50
secondary
#438B2C
accent
#F13763
background
#F7F4F7
surface
#EDE7EE
border
#C8C3C9
text
#09020A
muted
#7B787C

Preview Lab

Preview with #400C50

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

Preview Lab → · Contrast checker → · Palette generator →

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