#400D60#400D60

#400D60 is a dark, vivid violet. Relative luminance 0.022; OKLCH L 29.9% C 0.135 H 307.6°. Best body text is #FFFFFF at 14.54:1 contrast (WCAG AA passes).

Color values

HEX#400D60
RGBrgb(64, 13, 96)
HSLhsl(277, 76%, 21%)
HSVhsv(277, 86%, 38%)
CMYKcmyk(33.3%, 86.5%, 0%, 62.4%)
CIE-LABlab(16.61, 38.53, -37.65)
CIE-LCHlch(16.61, 53.88, 315.66°)
OKLaboklab(29.88% 0.0825 -0.1071)
OKLCHoklch(29.88% 0.135 307.6)
XYZxyz(4.3691, 2.2224, 11.2629)
Luminance0.0222 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#400D60 #2D600D
analogous
#160D60 #400D60 #600D57
triadic
#400D60 #60400D #0D6040
tetradic
#400D60 #60160D #2D600D #0D5760
square
#400D60 #60160D #2D600D #0D5760
split-complementary
#400D60 #57600D #0D6016
monochromatic
#12041B #1C062A #400D60 #641496 #881CCC

Accessibility & contrast

On white

14.54
#400D60 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #400D60
14.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##400D60#FFFFFF#000000##FFFFFF
##400D601.0014.541.4414.54
#FFFFFF14.541.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002762
Deuteranopia (green-blind)
#00295E
Tritanopia (blue-blind)
#3B2337
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #400d60;
/* rgb */ color: rgb(64, 13, 96);
/* oklch */ color: oklch(29.9% 0.135 307.6);
Tailwind
colors: {
  custom: {
    50: '#79538e',
    500: '#400d60',
    950: '#000000',
  },
}
SCSS
$custom: #400d60;
$custom-light: #79538e;
$custom-dark: #000000;
JSON
{
  "hex": "#400d60",
  "rgb": {
    "r": 64,
    "g": 13,
    "b": 96
  },
  "hsl": {
    "h": 276.867,
    "s": 76.147,
    "l": 21.373
  },
  "oklch": {
    "l": 0.29875,
    "c": 0.13521,
    "h": 307.6
  },
  "luminance": 0.02222
}

Semantic roles & 50–950 ramp

primary
#400D60
secondary
#589A2F
accent
#F3357E
background
#F7F5F8
surface
#EEE9F0
border
#C9C5CB
text
#09030C
muted
#7B787D

Preview Lab

Preview with #400D60

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

Preview Lab → · Contrast checker → · Palette generator →

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