#401951#401951

#401951 is a dark, moderate purple. Relative luminance 0.024; OKLCH L 30.0% C 0.103 H 314.1°. Best body text is #FFFFFF at 14.23:1 contrast (WCAG AA passes).

Color values

HEX#401951
RGBrgb(64, 25, 81)
HSLhsl(282, 53%, 21%)
HSVhsv(282, 69%, 32%)
CMYKcmyk(21%, 69.1%, 0%, 68.2%)
CIE-LABlab(17.36, 29.33, -26.36)
CIE-LCHlch(17.36, 39.44, 318.05°)
OKLaboklab(30.03% 0.0717 -0.0741)
OKLCHoklch(30.03% 0.103 314.1)
XYZxyz(3.9469, 2.3795, 8.0344)
Luminance0.0238 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401951 #2A5119
analogous
#241951 #401951 #511946
triadic
#401951 #514019 #195140
tetradic
#401951 #512419 #2A5119 #194651
square
#401951 #512419 #2A5119 #194651
split-complementary
#401951 #465119 #195124
monochromatic
#120717 #1B0B22 #401951 #652780 #8A36AF

Accessibility & contrast

On white

14.23
#401951 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #401951
14.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401951#FFFFFF#000000##FFFFFF
##4019511.0014.231.4814.23
#FFFFFF14.231.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#042853
Deuteranopia (green-blind)
#172C50
Tritanopia (blue-blind)
#3E2332
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #401951;
/* rgb */ color: rgb(64, 25, 81);
/* oklch */ color: oklch(30.0% 0.103 314.1);
Tailwind
colors: {
  custom: {
    50: '#775982',
    500: '#401951',
    950: '#000000',
  },
}
SCSS
$custom: #401951;
$custom-light: #775982;
$custom-dark: #000000;
JSON
{
  "hex": "#401951",
  "rgb": {
    "r": 64,
    "g": 25,
    "b": 81
  },
  "hsl": {
    "h": 281.786,
    "s": 52.83,
    "l": 20.784
  },
  "oklch": {
    "l": 0.30029,
    "c": 0.10307,
    "h": 314.1
  },
  "luminance": 0.02379
}

Semantic roles & 50–950 ramp

primary
#401951
secondary
#55873E
accent
#DC4C77
background
#F7F5F8
surface
#EDE9EF
border
#C8C5CA
text
#09030A
muted
#7B787C

Preview Lab

Preview with #401951

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

Preview Lab → · Contrast checker → · Palette generator →

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