#401850#401850

#401850 is a dark, moderate purple. Relative luminance 0.023; OKLCH L 29.8% C 0.104 H 314.9°. Best body text is #FFFFFF at 14.34:1 contrast (WCAG AA passes).

Color values

HEX#401850
RGBrgb(64, 24, 80)
HSLhsl(283, 54%, 20%)
HSVhsv(283, 70%, 31%)
CMYKcmyk(20%, 70%, 0%, 68.6%)
CIE-LABlab(17.10, 29.63, -26.11)
CIE-LCHlch(17.10, 39.49, 318.61°)
OKLaboklab(29.81% 0.0731 -0.0733)
OKLCHoklch(29.81% 0.104 314.9)
XYZxyz(3.8887, 2.3226, 7.8313)
Luminance0.0232 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401850 #285018
analogous
#241850 #401850 #501844
triadic
#401850 #504018 #185040
tetradic
#401850 #502418 #285018 #184450
square
#401850 #502418 #285018 #184450
split-complementary
#401850 #445018 #185024
monochromatic
#130718 #1A0A21 #401850 #66267F #8B34AE

Accessibility & contrast

On white

14.34
#401850 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#401850 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401850
14.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401850#FFFFFF#000000##FFFFFF
##4018501.0014.341.4614.34
#FFFFFF14.341.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#032852
Deuteranopia (green-blind)
#172B4F
Tritanopia (blue-blind)
#3F2231
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #401850;
/* rgb */ color: rgb(64, 24, 80);
/* oklch */ color: oklch(29.8% 0.104 314.9);
Tailwind
colors: {
  custom: {
    50: '#775881',
    500: '#401850',
    950: '#000000',
  },
}
SCSS
$custom: #401850;
$custom-light: #775881;
$custom-dark: #000000;
JSON
{
  "hex": "#401850",
  "rgb": {
    "r": 64,
    "g": 24,
    "b": 80
  },
  "hsl": {
    "h": 282.857,
    "s": 53.846,
    "l": 20.392
  },
  "oklch": {
    "l": 0.29813,
    "c": 0.10353,
    "h": 314.9
  },
  "luminance": 0.02322
}

Semantic roles & 50–950 ramp

primary
#401850
secondary
#52873D
accent
#DD4B74
background
#F7F5F7
surface
#EDE9EE
border
#C8C5C9
text
#09030A
muted
#7B787C

Preview Lab

Preview with #401850

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

Preview Lab → · Contrast checker → · Palette generator →

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