#401246#401246

#401246 is a dark, moderate purple. Relative luminance 0.020; OKLCH L 28.3% C 0.102 H 322.9°. Best body text is #FFFFFF at 15.08:1 contrast (WCAG AA passes).

Color values

HEX#401246
RGBrgb(64, 18, 70)
HSLhsl(293, 59%, 17%)
HSVhsv(293, 74%, 27%)
CMYKcmyk(8.6%, 74.3%, 0%, 72.5%)
CIE-LABlab(15.30, 30.40, -22.10)
CIE-LCHlch(15.30, 37.59, 323.98°)
OKLaboklab(28.3% 0.0814 -0.0616)
OKLCHoklch(28.3% 0.102 322.9)
XYZxyz(3.4360, 1.9650, 5.9915)
Luminance0.0197 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401246 #184612
analogous
#261246 #401246 #461232
triadic
#401246 #464012 #124640
tetradic
#401246 #462612 #184612 #123246
square
#401246 #462612 #184612 #123246
split-complementary
#401246 #324612 #124626
monochromatic
#160618 #160618 #401246 #6D1F77 #992BA7

Accessibility & contrast

On white

15.08
#401246 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.39
#401246 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401246
15.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401246#FFFFFF#000000##FFFFFF
##4012461.0015.081.3915.08
#FFFFFF15.081.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#052348
Deuteranopia (green-blind)
#1A2845
Tritanopia (blue-blind)
#411B2A
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #401246;
/* rgb */ color: rgb(64, 18, 70);
/* oklch */ color: oklch(28.3% 0.102 322.9);
Tailwind
colors: {
  custom: {
    50: '#77547a',
    500: '#401246',
    950: '#000000',
  },
}
SCSS
$custom: #401246;
$custom-light: #77547a;
$custom-dark: #000000;
JSON
{
  "hex": "#401246",
  "rgb": {
    "r": 64,
    "g": 18,
    "b": 70
  },
  "hsl": {
    "h": 293.077,
    "s": 59.091,
    "l": 17.255
  },
  "oklch": {
    "l": 0.28298,
    "c": 0.10204,
    "h": 322.9
  },
  "luminance": 0.01965
}

Semantic roles & 50–950 ramp

primary
#401246
secondary
#3D7F35
accent
#E24658
background
#F7F5F7
surface
#EDE9ED
border
#C8C5C8
text
#090309
muted
#7B787B

Preview Lab

Preview with #401246

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

Preview Lab → · Contrast checker → · Palette generator →

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