#400F5C#400F5C

#400F5C is a dark, vivid violet. Relative luminance 0.022; OKLCH L 29.7% C 0.129 H 309.4°. Best body text is #FFFFFF at 14.58:1 contrast (WCAG AA passes).

Color values

HEX#400F5C
RGBrgb(64, 15, 92)
HSLhsl(278, 72%, 21%)
HSVhsv(278, 84%, 36%)
CMYKcmyk(30.4%, 83.7%, 0%, 63.9%)
CIE-LABlab(16.53, 36.81, -35.13)
CIE-LCHlch(16.53, 50.88, 316.34°)
OKLaboklab(29.7% 0.0818 -0.0997)
OKLCHoklch(29.7% 0.129 309.4)
XYZxyz(4.2166, 2.2044, 10.3265)
Luminance0.0220 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#400F5C #2B5C0F
analogous
#190F5C #400F5C #5C0F51
triadic
#400F5C #5C400F #0F5C40
tetradic
#400F5C #5C190F #2B5C0F #0F515C
square
#400F5C #5C190F #2B5C0F #0F515C
split-complementary
#400F5C #515C0F #0F5C19
monochromatic
#12041A #1B0627 #400F5C #651891 #8920C5

Accessibility & contrast

On white

14.58
#400F5C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.44
#400F5C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #400F5C
14.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##400F5C#FFFFFF#000000##FFFFFF
##400F5C1.0014.581.4414.58
#FFFFFF14.581.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00275E
Deuteranopia (green-blind)
#00295A
Tritanopia (blue-blind)
#3C2235
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #400f5c;
/* rgb */ color: rgb(64, 15, 92);
/* oklch */ color: oklch(29.7% 0.129 309.4);
Tailwind
colors: {
  custom: {
    50: '#79548b',
    500: '#400f5c',
    950: '#000000',
  },
}
SCSS
$custom: #400f5c;
$custom-light: #79548b;
$custom-dark: #000000;
JSON
{
  "hex": "#400f5c",
  "rgb": {
    "r": 64,
    "g": 15,
    "b": 92
  },
  "hsl": {
    "h": 278.182,
    "s": 71.963,
    "l": 20.98
  },
  "oklch": {
    "l": 0.29703,
    "c": 0.129,
    "h": 309.4
  },
  "luminance": 0.02204
}

Semantic roles & 50–950 ramp

primary
#400F5C
secondary
#569531
accent
#EF397B
background
#F7F5F8
surface
#EEE9F0
border
#C9C5CB
text
#09030C
muted
#7B787D

Preview Lab

Preview with #400F5C

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

Preview Lab → · Contrast checker → · Palette generator →

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