#400E5E#400E5E

#400E5E is a dark, vivid violet. Relative luminance 0.022; OKLCH L 29.8% C 0.132 H 308.5°. Best body text is #FFFFFF at 14.56:1 contrast (WCAG AA passes).

Color values

HEX#400E5E
RGBrgb(64, 14, 94)
HSLhsl(278, 74%, 21%)
HSVhsv(278, 85%, 37%)
CMYKcmyk(31.9%, 85.1%, 0%, 63.1%)
CIE-LABlab(16.56, 37.68, -36.40)
CIE-LCHlch(16.56, 52.39, 315.99°)
OKLaboklab(29.79% 0.0822 -0.1035)
OKLCHoklch(29.79% 0.132 308.5)
XYZxyz(4.2913, 2.2123, 10.7885)
Luminance0.0221 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#400E5E #2C5E0E
analogous
#180E5E #400E5E #5E0E54
triadic
#400E5E #5E400E #0E5E40
tetradic
#400E5E #5E180E #2C5E0E #0E545E
square
#400E5E #5E180E #2C5E0E #0E545E
split-complementary
#400E5E #545E0E #0E5E18
monochromatic
#12041B #1C0629 #400E5E #641693 #891EC9

Accessibility & contrast

On white

14.56
#400E5E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #400E5E
14.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##400E5E#FFFFFF#000000##FFFFFF
##400E5E1.0014.561.4414.56
#FFFFFF14.561.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002760
Deuteranopia (green-blind)
#00295C
Tritanopia (blue-blind)
#3B2336
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #400e5e;
/* rgb */ color: rgb(64, 14, 94);
/* oklch */ color: oklch(29.8% 0.132 308.5);
Tailwind
colors: {
  custom: {
    50: '#79548c',
    500: '#400e5e',
    950: '#000000',
  },
}
SCSS
$custom: #400e5e;
$custom-light: #79548c;
$custom-dark: #000000;
JSON
{
  "hex": "#400e5e",
  "rgb": {
    "r": 64,
    "g": 14,
    "b": 94
  },
  "hsl": {
    "h": 277.5,
    "s": 74.074,
    "l": 21.176
  },
  "oklch": {
    "l": 0.29785,
    "c": 0.13215,
    "h": 308.5
  },
  "luminance": 0.02212
}

Semantic roles & 50–950 ramp

primary
#400E5E
secondary
#579830
accent
#F1377D
background
#F7F5F8
surface
#EEE9F0
border
#C9C5CB
text
#09030C
muted
#7B787D

Preview Lab

Preview with #400E5E

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

Preview Lab → · Contrast checker → · Palette generator →

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