#401754#401754

#401754 is a dark, moderate purple. Relative luminance 0.023; OKLCH L 30.0% C 0.110 H 312.6°. Best body text is #FFFFFF at 14.30:1 contrast (WCAG AA passes).

Color values

HEX#401754
RGBrgb(64, 23, 84)
HSLhsl(280, 57%, 21%)
HSVhsv(280, 73%, 33%)
CMYKcmyk(23.8%, 72.6%, 0%, 67.1%)
CIE-LABlab(17.19, 31.14, -28.67)
CIE-LCHlch(17.19, 42.33, 317.37°)
OKLaboklab(29.98% 0.0742 -0.0808)
OKLCHoklch(29.98% 0.11 312.6)
XYZxyz(4.0207, 2.3430, 8.6262)
Luminance0.0234 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401754 #2B5417
analogous
#211754 #401754 #541749
triadic
#401754 #544017 #175440
tetradic
#401754 #542117 #2B5417 #174954
square
#401754 #542117 #2B5417 #174954
split-complementary
#401754 #495417 #175421
monochromatic
#120718 #1B0A24 #401754 #652484 #8931B4

Accessibility & contrast

On white

14.30
#401754 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #401754
14.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401754#FFFFFF#000000##FFFFFF
##4017541.0014.301.4714.30
#FFFFFF14.301.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002856
Deuteranopia (green-blind)
#122B53
Tritanopia (blue-blind)
#3E2333
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #401754;
/* rgb */ color: rgb(64, 23, 84);
/* oklch */ color: oklch(30.0% 0.110 312.6);
Tailwind
colors: {
  custom: {
    50: '#775884',
    500: '#401754',
    950: '#000000',
  },
}
SCSS
$custom: #401754;
$custom-light: #775884;
$custom-dark: #000000;
JSON
{
  "hex": "#401754",
  "rgb": {
    "r": 64,
    "g": 23,
    "b": 84
  },
  "hsl": {
    "h": 280.328,
    "s": 57.009,
    "l": 20.98
  },
  "oklch": {
    "l": 0.29975,
    "c": 0.10971,
    "h": 312.6
  },
  "luminance": 0.02343
}

Semantic roles & 50–950 ramp

primary
#401754
secondary
#568B3C
accent
#E0487A
background
#F7F5F8
surface
#EDE9EF
border
#C8C5CA
text
#09030B
muted
#7B787C

Preview Lab

Preview with #401754

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

Preview Lab → · Contrast checker → · Palette generator →

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