#400E5D#400E5D

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

Color values

HEX#400E5D
RGBrgb(64, 14, 93)
HSLhsl(278, 74%, 21%)
HSVhsv(278, 85%, 36%)
CMYKcmyk(31.2%, 84.9%, 0%, 63.5%)
CIE-LABlab(16.48, 37.44, -35.88)
CIE-LCHlch(16.48, 51.85, 316.22°)
OKLaboklab(29.7% 0.0825 -0.1019)
OKLCHoklch(29.7% 0.131 309)
XYZxyz(4.2468, 2.1945, 10.5537)
Luminance0.0219 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#400E5D #2B5D0E
analogous
#180E5D #400E5D #5D0E52
triadic
#400E5D #5D400E #0E5D40
tetradic
#400E5D #5D180E #2B5D0E #0E525D
square
#400E5D #5D180E #2B5D0E #0E525D
split-complementary
#400E5D #525D0E #0E5D18
monochromatic
#12041B #1B0628 #400E5D #651692 #891EC7

Accessibility & contrast

On white

14.60
#400E5D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #400E5D
14.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##400E5D#FFFFFF#000000##FFFFFF
##400E5D1.0014.601.4414.60
#FFFFFF14.601.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00275F
Deuteranopia (green-blind)
#00295B
Tritanopia (blue-blind)
#3C2236
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #400e5d;
/* rgb */ color: rgb(64, 14, 93);
/* oklch */ color: oklch(29.7% 0.131 309.0);
Tailwind
colors: {
  custom: {
    50: '#79548c',
    500: '#400e5d',
    950: '#000000',
  },
}
SCSS
$custom: #400e5d;
$custom-light: #79548c;
$custom-dark: #000000;
JSON
{
  "hex": "#400e5d",
  "rgb": {
    "r": 64,
    "g": 14,
    "b": 93
  },
  "hsl": {
    "h": 277.975,
    "s": 73.832,
    "l": 20.98
  },
  "oklch": {
    "l": 0.29696,
    "c": 0.13111,
    "h": 309
  },
  "luminance": 0.02194
}

Semantic roles & 50–950 ramp

primary
#400E5D
secondary
#569730
accent
#F0377B
background
#F7F5F8
surface
#EEE9F0
border
#C9C5CB
text
#09030C
muted
#7B787D

Preview Lab

Preview with #400E5D

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

Preview Lab → · Contrast checker → · Palette generator →

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