#401247#401247

#401247 is a dark, moderate purple. Relative luminance 0.020; OKLCH L 28.4% C 0.103 H 322.1°. Best body text is #FFFFFF at 15.05:1 contrast (WCAG AA passes).

Color values

HEX#401247
RGBrgb(64, 18, 71)
HSLhsl(292, 60%, 17%)
HSVhsv(292, 75%, 28%)
CMYKcmyk(9.9%, 74.6%, 0%, 72.2%)
CIE-LABlab(15.37, 30.62, -22.69)
CIE-LCHlch(15.37, 38.11, 323.46°)
OKLaboklab(28.37% 0.0814 -0.0633)
OKLCHoklch(28.37% 0.103 322.1)
XYZxyz(3.4679, 1.9777, 6.1591)
Luminance0.0198 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401247 #194712
analogous
#251247 #401247 #471234
triadic
#401247 #474012 #124740
tetradic
#401247 #472512 #194712 #123447
square
#401247 #472512 #194712 #123447
split-complementary
#401247 #344712 #124725
monochromatic
#160618 #160618 #401247 #6C1E78 #982BA9

Accessibility & contrast

On white

15.05
#401247 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.40
#401247 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401247
15.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401247#FFFFFF#000000##FFFFFF
##4012471.0015.051.4015.05
#FFFFFF15.051.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF15.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#042349
Deuteranopia (green-blind)
#192846
Tritanopia (blue-blind)
#411B2A
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #401247;
/* rgb */ color: rgb(64, 18, 71);
/* oklch */ color: oklch(28.4% 0.103 322.1);
Tailwind
colors: {
  custom: {
    50: '#77547a',
    500: '#401247',
    950: '#000000',
  },
}
SCSS
$custom: #401247;
$custom-light: #77547a;
$custom-dark: #000000;
JSON
{
  "hex": "#401247",
  "rgb": {
    "r": 64,
    "g": 18,
    "b": 71
  },
  "hsl": {
    "h": 292.075,
    "s": 59.551,
    "l": 17.451
  },
  "oklch": {
    "l": 0.28368,
    "c": 0.10307,
    "h": 322.1
  },
  "luminance": 0.01978
}

Semantic roles & 50–950 ramp

primary
#401247
secondary
#3F8035
accent
#E3455A
background
#F7F5F7
surface
#EDE9ED
border
#C8C5C8
text
#090309
muted
#7B787B

Preview Lab

Preview with #401247

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

Preview Lab → · Contrast checker → · Palette generator →

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