#401852#401852

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

Color values

HEX#401852
RGBrgb(64, 24, 82)
HSLhsl(281, 55%, 21%)
HSVhsv(281, 71%, 32%)
CMYKcmyk(22%, 70.7%, 0%, 67.8%)
CIE-LABlab(17.24, 30.12, -27.24)
CIE-LCHlch(17.24, 40.61, 317.87°)
OKLaboklab(29.96% 0.073 -0.0766)
OKLCHoklch(29.96% 0.106 313.6)
XYZxyz(3.9637, 2.3526, 8.2263)
Luminance0.0235 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401852 #2A5218
analogous
#231852 #401852 #521847
triadic
#401852 #524018 #185240
tetradic
#401852 #522318 #2A5218 #184752
square
#401852 #522318 #2A5218 #184752
split-complementary
#401852 #475218 #185223
monochromatic
#120718 #1B0A23 #401852 #652681 #8A34B1

Accessibility & contrast

On white

14.28
#401852 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #401852
14.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401852#FFFFFF#000000##FFFFFF
##4018521.0014.281.4714.28
#FFFFFF14.281.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002854
Deuteranopia (green-blind)
#152B51
Tritanopia (blue-blind)
#3E2332
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #401852;
/* rgb */ color: rgb(64, 24, 82);
/* oklch */ color: oklch(30.0% 0.106 313.6);
Tailwind
colors: {
  custom: {
    50: '#775883',
    500: '#401852',
    950: '#000000',
  },
}
SCSS
$custom: #401852;
$custom-light: #775883;
$custom-dark: #000000;
JSON
{
  "hex": "#401852",
  "rgb": {
    "r": 64,
    "g": 24,
    "b": 82
  },
  "hsl": {
    "h": 281.379,
    "s": 54.717,
    "l": 20.784
  },
  "oklch": {
    "l": 0.29961,
    "c": 0.10585,
    "h": 313.6
  },
  "luminance": 0.02352
}

Semantic roles & 50–950 ramp

primary
#401852
secondary
#55893D
accent
#DE4A78
background
#F7F5F8
surface
#EDE9EF
border
#C8C5CA
text
#09030A
muted
#7B787C

Preview Lab

Preview with #401852

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

Preview Lab → · Contrast checker → · Palette generator →

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