#400E60#400E60

#400E60 is a dark, vivid violet. Relative luminance 0.022; OKLCH L 30.0% C 0.134 H 307.5°. Best body text is #FFFFFF at 14.48:1 contrast (WCAG AA passes).

Color values

HEX#400E60
RGBrgb(64, 14, 96)
HSLhsl(277, 75%, 22%)
HSVhsv(277, 85%, 38%)
CMYKcmyk(33.3%, 85.4%, 0%, 62.4%)
CIE-LABlab(16.74, 38.16, -37.45)
CIE-LCHlch(16.74, 53.47, 315.54°)
OKLaboklab(29.96% 0.0817 -0.1065)
OKLCHoklch(29.96% 0.134 307.5)
XYZxyz(4.3823, 2.2487, 11.2672)
Luminance0.0225 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#400E60 #2E600E
analogous
#170E60 #400E60 #600E57
triadic
#400E60 #60400E #0E6040
tetradic
#400E60 #60170E #2E600E #0E5760
square
#400E60 #60170E #2E600E #0E5760
split-complementary
#400E60 #57600E #0E6017
monochromatic
#12041B #1C062B #400E60 #641695 #871ECB

Accessibility & contrast

On white

14.48
#400E60 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#400E60 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #400E60
14.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##400E60#FFFFFF#000000##FFFFFF
##400E601.0014.481.4514.48
#FFFFFF14.481.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002862
Deuteranopia (green-blind)
#002A5E
Tritanopia (blue-blind)
#3B2437
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #400e60;
/* rgb */ color: rgb(64, 14, 96);
/* oklch */ color: oklch(30.0% 0.134 307.5);
Tailwind
colors: {
  custom: {
    50: '#79548e',
    500: '#400e60',
    950: '#000000',
  },
}
SCSS
$custom: #400e60;
$custom-light: #79548e;
$custom-dark: #000000;
JSON
{
  "hex": "#400e60",
  "rgb": {
    "r": 64,
    "g": 14,
    "b": 96
  },
  "hsl": {
    "h": 276.585,
    "s": 74.545,
    "l": 21.569
  },
  "oklch": {
    "l": 0.29964,
    "c": 0.13421,
    "h": 307.5
  },
  "luminance": 0.02249
}

Semantic roles & 50–950 ramp

primary
#400E60
secondary
#599A30
accent
#F1377F
background
#F7F5F8
surface
#EEE9F0
border
#C9C5CB
text
#09030C
muted
#7B787D

Preview Lab

Preview with #400E60

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

Preview Lab → · Contrast checker → · Palette generator →

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