#401254#401254

#401254 is a dark, moderate purple. Relative luminance 0.022; OKLCH L 29.4% C 0.117 H 313.4°. Best body text is #FFFFFF at 14.66:1 contrast (WCAG AA passes).

Color values

HEX#401254
RGBrgb(64, 18, 84)
HSLhsl(282, 65%, 20%)
HSVhsv(282, 79%, 33%)
CMYKcmyk(23.8%, 78.6%, 0%, 67.1%)
CIE-LABlab(16.32, 33.60, -30.08)
CIE-LCHlch(16.32, 45.09, 318.17°)
OKLaboklab(29.35% 0.0803 -0.0849)
OKLCHoklch(29.35% 0.117 313.4)
XYZxyz(3.9306, 2.1628, 8.5962)
Luminance0.0216 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401254 #265412
analogous
#1F1254 #401254 #541247
triadic
#401254 #544012 #125440
tetradic
#401254 #541F12 #265412 #124754
square
#401254 #541F12 #265412 #124754
split-complementary
#401254 #475412 #12541F
monochromatic
#130519 #1A0722 #401254 #661D86 #8D28B9

Accessibility & contrast

On white

14.66
#401254 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.43
#401254 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401254
14.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401254#FFFFFF#000000##FFFFFF
##4012541.0014.661.4314.66
#FFFFFF14.661.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002656
Deuteranopia (green-blind)
#0C2953
Tritanopia (blue-blind)
#3E2032
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #401254;
/* rgb */ color: rgb(64, 18, 84);
/* oklch */ color: oklch(29.4% 0.117 313.4);
Tailwind
colors: {
  custom: {
    50: '#785585',
    500: '#401254',
    950: '#000000',
  },
}
SCSS
$custom: #401254;
$custom-light: #785585;
$custom-dark: #000000;
JSON
{
  "hex": "#401254",
  "rgb": {
    "r": 64,
    "g": 18,
    "b": 84
  },
  "hsl": {
    "h": 281.818,
    "s": 64.706,
    "l": 20
  },
  "oklch": {
    "l": 0.29351,
    "c": 0.11687,
    "h": 313.4
  },
  "luminance": 0.02163
}

Semantic roles & 50–950 ramp

primary
#401254
secondary
#508D35
accent
#E84073
background
#F7F5F8
surface
#EDE9EF
border
#C8C5CA
text
#09030B
muted
#7B787C

Preview Lab

Preview with #401254

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

Preview Lab → · Contrast checker → · Palette generator →

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