#400F50#400F50

#400F50 is a dark, moderate purple. Relative luminance 0.020; OKLCH L 28.7% C 0.117 H 316.3°. Best body text is #FFFFFF at 14.98:1 contrast (WCAG AA passes).

Color values

HEX#400F50
RGBrgb(64, 15, 80)
HSLhsl(285, 68%, 19%)
HSVhsv(285, 81%, 31%)
CMYKcmyk(20%, 81.3%, 0%, 68.6%)
CIE-LABlab(15.54, 33.99, -28.60)
CIE-LCHlch(15.54, 44.42, 319.92°)
OKLaboklab(28.7% 0.0842 -0.0805)
OKLCHoklch(28.7% 0.117 316.3)
XYZxyz(3.7329, 2.0110, 7.7794)
Luminance0.0201 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#400F50 #1F500F
analogous
#1F0F50 #400F50 #500F3F
triadic
#400F50 #50400F #0F5040
tetradic
#400F50 #501F0F #1F500F #0F3F50
square
#400F50 #501F0F #1F500F #0F3F50
split-complementary
#400F50 #3F500F #0F501F
monochromatic
#15051A #17051C #400F50 #691984 #9222B7

Accessibility & contrast

On white

14.98
#400F50 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #400F50
14.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##400F50#FFFFFF#000000##FFFFFF
##400F501.0014.981.4014.98
#FFFFFF14.981.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF14.981.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #400f50;
/* rgb */ color: rgb(64, 15, 80);
/* oklch */ color: oklch(28.7% 0.117 316.3);
Tailwind
colors: {
  custom: {
    50: '#785381',
    500: '#400f50',
    950: '#000000',
  },
}
SCSS
$custom: #400f50;
$custom-light: #785381;
$custom-dark: #000000;
JSON
{
  "hex": "#400f50",
  "rgb": {
    "r": 64,
    "g": 15,
    "b": 80
  },
  "hsl": {
    "h": 285.231,
    "s": 68.421,
    "l": 18.627
  },
  "oklch": {
    "l": 0.28702,
    "c": 0.11654,
    "h": 316.3
  },
  "luminance": 0.02011
}

Semantic roles & 50–950 ramp

primary
#400F50
secondary
#478A31
accent
#EB3D68
background
#F7F4F7
surface
#EDE8EE
border
#C8C4C9
text
#09030A
muted
#7B787C

Preview Lab

Preview with #400F50

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

Preview Lab → · Contrast checker → · Palette generator →

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