#400E5F#400E5F

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

Color values

HEX#400E5F
RGBrgb(64, 14, 95)
HSLhsl(277, 74%, 21%)
HSVhsv(277, 85%, 37%)
CMYKcmyk(32.6%, 85.3%, 0%, 62.7%)
CIE-LABlab(16.65, 37.92, -36.92)
CIE-LCHlch(16.65, 52.93, 315.76°)
OKLaboklab(29.87% 0.0819 -0.105)
OKLCHoklch(29.87% 0.133 308)
XYZxyz(4.3365, 2.2304, 11.0263)
Luminance0.0223 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#400E5F #2D5F0E
analogous
#180E5F #400E5F #5F0E56
triadic
#400E5F #5F400E #0E5F40
tetradic
#400E5F #5F180E #2D5F0E #0E565F
square
#400E5F #5F180E #2D5F0E #0E565F
split-complementary
#400E5F #565F0E #0E5F18
monochromatic
#12041B #1C062A #400E5F #641694 #881ECA

Accessibility & contrast

On white

14.52
#400E5F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #400E5F
14.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##400E5F#FFFFFF#000000##FFFFFF
##400E5F1.0014.521.4514.52
#FFFFFF14.521.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002761
Deuteranopia (green-blind)
#002A5D
Tritanopia (blue-blind)
#3B2337
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #400e5f;
/* rgb */ color: rgb(64, 14, 95);
/* oklch */ color: oklch(29.9% 0.133 308.0);
Tailwind
colors: {
  custom: {
    50: '#79548d',
    500: '#400e5f',
    950: '#000000',
  },
}
SCSS
$custom: #400e5f;
$custom-light: #79548d;
$custom-dark: #000000;
JSON
{
  "hex": "#400e5f",
  "rgb": {
    "r": 64,
    "g": 14,
    "b": 95
  },
  "hsl": {
    "h": 277.037,
    "s": 74.312,
    "l": 21.373
  },
  "oklch": {
    "l": 0.29874,
    "c": 0.13318,
    "h": 308
  },
  "luminance": 0.0223
}

Semantic roles & 50–950 ramp

primary
#400E5F
secondary
#589930
accent
#F1377E
background
#F7F5F8
surface
#EEE9F0
border
#C9C5CB
text
#09030C
muted
#7B787D

Preview Lab

Preview with #400E5F

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

Preview Lab → · Contrast checker → · Palette generator →

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