#400E50#400E50

#400E50 is a dark, moderate purple. Relative luminance 0.020; OKLCH L 28.6% C 0.118 H 316.4°. Best body text is #FFFFFF at 15.04:1 contrast (WCAG AA passes).

Color values

HEX#400E50
RGBrgb(64, 14, 80)
HSLhsl(285, 70%, 18%)
HSVhsv(285, 83%, 31%)
CMYKcmyk(20%, 82.5%, 0%, 68.6%)
CIE-LABlab(15.40, 34.40, -28.84)
CIE-LCHlch(15.40, 44.89, 320.03°)
OKLaboklab(28.6% 0.0853 -0.0812)
OKLCHoklch(28.6% 0.118 316.4)
XYZxyz(3.7191, 1.9834, 7.7748)
Luminance0.0198 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#400E50 #1E500E
analogous
#1F0E50 #400E50 #500E3F
triadic
#400E50 #50400E #0E5040
tetradic
#400E50 #501F0E #1E500E #0E3F50
square
#400E50 #501F0E #1E500E #0E3F50
split-complementary
#400E50 #3F500E #0E501F
monochromatic
#15051A #16051C #400E50 #6A1784 #9320B8

Accessibility & contrast

On white

15.04
#400E50 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.40
#400E50 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #400E50
15.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##400E50#FFFFFF#000000##FFFFFF
##400E501.0015.041.4015.04
#FFFFFF15.041.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF15.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002452
Deuteranopia (green-blind)
#0E284F
Tritanopia (blue-blind)
#3F1C2E
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #400e50;
/* rgb */ color: rgb(64, 14, 80);
/* oklch */ color: oklch(28.6% 0.118 316.4);
Tailwind
colors: {
  custom: {
    50: '#785381',
    500: '#400e50',
    950: '#000000',
  },
}
SCSS
$custom: #400e50;
$custom-light: #785381;
$custom-dark: #000000;
JSON
{
  "hex": "#400e50",
  "rgb": {
    "r": 64,
    "g": 14,
    "b": 80
  },
  "hsl": {
    "h": 285.455,
    "s": 70.213,
    "l": 18.431
  },
  "oklch": {
    "l": 0.286,
    "c": 0.11778,
    "h": 316.4
  },
  "luminance": 0.01983
}

Semantic roles & 50–950 ramp

primary
#400E50
secondary
#458B2F
accent
#ED3B66
background
#F7F4F7
surface
#EDE7EE
border
#C8C3C9
text
#09030A
muted
#7B787C

Preview Lab

Preview with #400E50

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

Preview Lab → · Contrast checker → · Palette generator →

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