#401854#401854

#401854 is a dark, moderate purple. Relative luminance 0.024; OKLCH L 30.1% C 0.108 H 312.4°. Best body text is #FFFFFF at 14.22:1 contrast (WCAG AA passes).

Color values

HEX#401854
RGBrgb(64, 24, 84)
HSLhsl(280, 56%, 21%)
HSVhsv(280, 71%, 33%)
CMYKcmyk(23.8%, 71.4%, 0%, 67.1%)
CIE-LABlab(17.38, 30.61, -28.36)
CIE-LCHlch(17.38, 41.73, 317.19°)
OKLaboklab(30.11% 0.0729 -0.0799)
OKLCHoklch(30.11% 0.108 312.4)
XYZxyz(4.0409, 2.3835, 8.6330)
Luminance0.0238 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401854 #2C5418
analogous
#221854 #401854 #54184A
triadic
#401854 #544018 #185440
tetradic
#401854 #542218 #2C5418 #184A54
square
#401854 #542218 #2C5418 #184A54
split-complementary
#401854 #4A5418 #185422
monochromatic
#120718 #1C0A24 #401854 #642684 #8933B3

Accessibility & contrast

On white

14.22
#401854 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#401854 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401854
14.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401854#FFFFFF#000000##FFFFFF
##4018541.0014.221.4814.22
#FFFFFF14.221.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002956
Deuteranopia (green-blind)
#132C53
Tritanopia (blue-blind)
#3E2433
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #401854;
/* rgb */ color: rgb(64, 24, 84);
/* oklch */ color: oklch(30.1% 0.108 312.4);
Tailwind
colors: {
  custom: {
    50: '#775884',
    500: '#401854',
    950: '#000000',
  },
}
SCSS
$custom: #401854;
$custom-light: #775884;
$custom-dark: #000000;
JSON
{
  "hex": "#401854",
  "rgb": {
    "r": 64,
    "g": 24,
    "b": 84
  },
  "hsl": {
    "h": 280,
    "s": 55.556,
    "l": 21.176
  },
  "oklch": {
    "l": 0.30111,
    "c": 0.10817,
    "h": 312.4
  },
  "luminance": 0.02383
}

Semantic roles & 50–950 ramp

primary
#401854
secondary
#578B3D
accent
#DF497B
background
#F7F5F8
surface
#EDE9EF
border
#C8C5CA
text
#09030B
muted
#7B787C

Preview Lab

Preview with #401854

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

Preview Lab → · Contrast checker → · Palette generator →

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