#401266#401266

#401266 is a dark, vivid violet. Relative luminance 0.025; OKLCH L 30.9% C 0.136 H 304.1°. Best body text is #FFFFFF at 14.03:1 contrast (WCAG AA passes).

Color values

HEX#401266
RGBrgb(64, 18, 102)
HSLhsl(273, 70%, 24%)
HSVhsv(273, 82%, 40%)
CMYKcmyk(37.3%, 82.4%, 0%, 60%)
CIE-LABlab(17.84, 38.04, -39.63)
CIE-LCHlch(17.84, 54.94, 313.83°)
OKLaboklab(30.9% 0.0764 -0.113)
OKLCHoklch(30.9% 0.136 304.1)
XYZxyz(4.7284, 2.4819, 12.7978)
Luminance0.0248 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401266 #386612
analogous
#161266 #401266 #661262
triadic
#401266 #664012 #126640
tetradic
#401266 #661612 #386612 #126266
square
#401266 #661612 #386612 #126266
split-complementary
#401266 #626612 #126616
monochromatic
#10051A #1F0932 #401266 #611B9A #8124CE

Accessibility & contrast

On white

14.03
#401266 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.50
#401266 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401266
14.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401266#FFFFFF#000000##FFFFFF
##4012661.0014.031.5014.03
#FFFFFF14.031.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF14.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B68
Deuteranopia (green-blind)
#002C64
Tritanopia (blue-blind)
#38283C
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #401266;
/* rgb */ color: rgb(64, 18, 102);
/* oklch */ color: oklch(30.9% 0.136 304.1);
Tailwind
colors: {
  custom: {
    50: '#795692',
    500: '#401266',
    950: '#000000',
  },
}
SCSS
$custom: #401266;
$custom-light: #795692;
$custom-dark: #000000;
JSON
{
  "hex": "#401266",
  "rgb": {
    "r": 64,
    "g": 18,
    "b": 102
  },
  "hsl": {
    "h": 272.857,
    "s": 70,
    "l": 23.529
  },
  "oklch": {
    "l": 0.30897,
    "c": 0.13637,
    "h": 304.1
  },
  "luminance": 0.02482
}

Semantic roles & 50–950 ramp

primary
#401266
secondary
#659E36
accent
#ED3B8B
background
#F7F5F9
surface
#EEE9F1
border
#C9C5CB
text
#09030D
muted
#7B787E

Preview Lab

Preview with #401266

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

Preview Lab → · Contrast checker → · Palette generator →

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