#401952#401952

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

Color values

HEX#401952
RGBrgb(64, 25, 82)
HSLhsl(281, 53%, 21%)
HSVhsv(281, 70%, 32%)
CMYKcmyk(22%, 69.5%, 0%, 67.8%)
CIE-LABlab(17.44, 29.58, -26.93)
CIE-LCHlch(17.44, 40.00, 317.69°)
OKLaboklab(30.1% 0.0717 -0.0757)
OKLCHoklch(30.1% 0.104 313.4)
XYZxyz(3.9847, 2.3946, 8.2333)
Luminance0.0239 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401952 #2B5219
analogous
#231952 #401952 #521947
triadic
#401952 #524019 #195240
tetradic
#401952 #522319 #2B5219 #194752
square
#401952 #522319 #2B5219 #194752
split-complementary
#401952 #475219 #195223
monochromatic
#120717 #1B0B23 #401952 #652781 #8936B0

Accessibility & contrast

On white

14.20
#401952 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #401952
14.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401952#FFFFFF#000000##FFFFFF
##4019521.0014.201.4814.20
#FFFFFF14.201.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#022954
Deuteranopia (green-blind)
#162C51
Tritanopia (blue-blind)
#3E2433
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #401952;
/* rgb */ color: rgb(64, 25, 82);
/* oklch */ color: oklch(30.1% 0.104 313.4);
Tailwind
colors: {
  custom: {
    50: '#775983',
    500: '#401952',
    950: '#000000',
  },
}
SCSS
$custom: #401952;
$custom-light: #775983;
$custom-dark: #000000;
JSON
{
  "hex": "#401952",
  "rgb": {
    "r": 64,
    "g": 25,
    "b": 82
  },
  "hsl": {
    "h": 281.053,
    "s": 53.271,
    "l": 20.98
  },
  "oklch": {
    "l": 0.30103,
    "c": 0.10425,
    "h": 313.4
  },
  "luminance": 0.02394
}

Semantic roles & 50–950 ramp

primary
#401952
secondary
#56883E
accent
#DD4B79
background
#F7F5F8
surface
#EDE9EF
border
#C8C5CA
text
#09030A
muted
#7B787C

Preview Lab

Preview with #401952

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

Preview Lab → · Contrast checker → · Palette generator →

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