#401950#401950

#401950 is a dark, moderate purple. Relative luminance 0.024; OKLCH L 30.0% C 0.102 H 314.7°. Best body text is #FFFFFF at 14.26:1 contrast (WCAG AA passes).

Color values

HEX#401950
RGBrgb(64, 25, 80)
HSLhsl(283, 52%, 21%)
HSVhsv(283, 69%, 31%)
CMYKcmyk(20%, 68.8%, 0%, 68.6%)
CIE-LABlab(17.29, 29.09, -25.79)
CIE-LCHlch(17.29, 38.88, 318.43°)
OKLaboklab(29.96% 0.0717 -0.0724)
OKLCHoklch(29.96% 0.102 314.7)
XYZxyz(3.9097, 2.3646, 7.8383)
Luminance0.0236 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401950 #295019
analogous
#241950 #401950 #501944
triadic
#401950 #504019 #195040
tetradic
#401950 #502419 #295019 #194450
square
#401950 #502419 #295019 #194450
split-complementary
#401950 #445019 #195024
monochromatic
#130717 #1B0A21 #401950 #65287F #8B36AD

Accessibility & contrast

On white

14.26
#401950 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#401950 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401950
14.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401950#FFFFFF#000000##FFFFFF
##4019501.0014.261.4714.26
#FFFFFF14.261.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#052852
Deuteranopia (green-blind)
#182C4F
Tritanopia (blue-blind)
#3F2332
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #401950;
/* rgb */ color: rgb(64, 25, 80);
/* oklch */ color: oklch(30.0% 0.102 314.7);
Tailwind
colors: {
  custom: {
    50: '#775981',
    500: '#401950',
    950: '#000000',
  },
}
SCSS
$custom: #401950;
$custom-light: #775981;
$custom-dark: #000000;
JSON
{
  "hex": "#401950",
  "rgb": {
    "r": 64,
    "g": 25,
    "b": 80
  },
  "hsl": {
    "h": 282.545,
    "s": 52.381,
    "l": 20.588
  },
  "oklch": {
    "l": 0.29956,
    "c": 0.1019,
    "h": 314.7
  },
  "luminance": 0.02364
}

Semantic roles & 50–950 ramp

primary
#401950
secondary
#53863E
accent
#DC4C76
background
#F7F5F7
surface
#EDE9EE
border
#C8C5C9
text
#09030A
muted
#7B787C

Preview Lab

Preview with #401950

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

Preview Lab → · Contrast checker → · Palette generator →

#401950 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva