#401652#401652

#401652 is a dark, moderate purple. Relative luminance 0.023; OKLCH L 29.7% C 0.109 H 314.0°. Best body text is #FFFFFF at 14.44:1 contrast (WCAG AA passes).

Color values

HEX#401652
RGBrgb(64, 22, 82)
HSLhsl(282, 58%, 20%)
HSVhsv(282, 73%, 32%)
CMYKcmyk(22%, 73.2%, 0%, 67.8%)
CIE-LABlab(16.86, 31.17, -27.85)
CIE-LCHlch(16.86, 41.80, 318.22°)
OKLaboklab(29.69% 0.0757 -0.0784)
OKLCHoklch(29.69% 0.109 314)
XYZxyz(3.9240, 2.2731, 8.2131)
Luminance0.0227 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401652 #285216
analogous
#221652 #401652 #521646
triadic
#401652 #524016 #165240
tetradic
#401652 #522216 #285216 #164652
square
#401652 #522216 #285216 #164652
split-complementary
#401652 #465216 #165222
monochromatic
#130618 #1A0922 #401652 #662382 #8B30B3

Accessibility & contrast

On white

14.44
#401652 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#401652 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401652
14.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401652#FFFFFF#000000##FFFFFF
##4016521.0014.441.4514.44
#FFFFFF14.441.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002754
Deuteranopia (green-blind)
#132B51
Tritanopia (blue-blind)
#3E2232
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #401652;
/* rgb */ color: rgb(64, 22, 82);
/* oklch */ color: oklch(29.7% 0.109 314.0);
Tailwind
colors: {
  custom: {
    50: '#775783',
    500: '#401652',
    950: '#000000',
  },
}
SCSS
$custom: #401652;
$custom-light: #775783;
$custom-dark: #000000;
JSON
{
  "hex": "#401652",
  "rgb": {
    "r": 64,
    "g": 22,
    "b": 82
  },
  "hsl": {
    "h": 282,
    "s": 57.692,
    "l": 20.392
  },
  "oklch": {
    "l": 0.29689,
    "c": 0.10895,
    "h": 314
  },
  "luminance": 0.02273
}

Semantic roles & 50–950 ramp

primary
#401652
secondary
#52893A
accent
#E14775
background
#F7F5F8
surface
#EDE9EF
border
#C8C5CA
text
#09030A
muted
#7B787C

Preview Lab

Preview with #401652

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

Preview Lab → · Contrast checker → · Palette generator →

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