#401245#401245

#401245 is a dark, moderate purple. Relative luminance 0.020; OKLCH L 28.2% C 0.101 H 323.7°. Best body text is #FFFFFF at 15.10:1 contrast (WCAG AA passes).

Color values

HEX#401245
RGBrgb(64, 18, 69)
HSLhsl(294, 59%, 17%)
HSVhsv(294, 74%, 27%)
CMYKcmyk(7.2%, 73.9%, 0%, 72.9%)
CIE-LABlab(15.24, 30.18, -21.51)
CIE-LCHlch(15.24, 37.07, 324.52°)
OKLaboklab(28.23% 0.0814 -0.0598)
OKLCHoklch(28.23% 0.101 323.7)
XYZxyz(3.4047, 1.9525, 5.8266)
Luminance0.0195 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401245 #174512
analogous
#271245 #401245 #451231
triadic
#401245 #454012 #124540
tetradic
#401245 #452712 #174512 #123145
square
#401245 #452712 #174512 #123145
split-complementary
#401245 #314512 #124527
monochromatic
#170618 #170618 #401245 #6D1F76 #9A2BA6

Accessibility & contrast

On white

15.10
#401245 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #401245
15.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401245#FFFFFF#000000##FFFFFF
##4012451.0015.101.3915.10
#FFFFFF15.101.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#072346
Deuteranopia (green-blind)
#1A2844
Tritanopia (blue-blind)
#411A29
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #401245;
/* rgb */ color: rgb(64, 18, 69);
/* oklch */ color: oklch(28.2% 0.101 323.7);
Tailwind
colors: {
  custom: {
    50: '#775479',
    500: '#401245',
    950: '#000000',
  },
}
SCSS
$custom: #401245;
$custom-light: #775479;
$custom-dark: #000000;
JSON
{
  "hex": "#401245",
  "rgb": {
    "r": 64,
    "g": 18,
    "b": 69
  },
  "hsl": {
    "h": 294.118,
    "s": 58.621,
    "l": 17.059
  },
  "oklch": {
    "l": 0.28228,
    "c": 0.101,
    "h": 323.7
  },
  "luminance": 0.01952
}

Semantic roles & 50–950 ramp

primary
#401245
secondary
#3C7E35
accent
#E24655
background
#F7F5F7
surface
#EDE9ED
border
#C8C5C8
text
#090309
muted
#7B787B

Preview Lab

Preview with #401245

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

Preview Lab → · Contrast checker → · Palette generator →

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