#401867#401867

#401867 is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.7% C 0.130 H 302.6°. Best body text is #FFFFFF at 13.60:1 contrast (WCAG AA passes).

Color values

HEX#401867
RGBrgb(64, 24, 103)
HSLhsl(270, 62%, 25%)
HSVhsv(270, 77%, 40%)
CMYKcmyk(37.9%, 76.7%, 0%, 59.6%)
CIE-LABlab(18.90, 35.53, -38.56)
CIE-LCHlch(18.90, 52.43, 312.66°)
OKLaboklab(31.67% 0.0701 -0.1099)
OKLCHoklch(31.67% 0.13 302.6)
XYZxyz(4.8886, 2.7225, 13.0973)
Luminance0.0272 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401867 #3F6718
analogous
#191867 #401867 #671867
triadic
#401867 #674018 #186740
tetradic
#401867 #671918 #3F6718 #186767
square
#401867 #671918 #3F6718 #186767
split-complementary
#401867 #676718 #186719
monochromatic
#0F0619 #210C35 #401867 #5F2499 #7E2FCA

Accessibility & contrast

On white

13.60
#401867 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#401867 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401867
13.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401867#FFFFFF#000000##FFFFFF
##4018671.0013.601.5413.60
#FFFFFF13.601.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D69
Deuteranopia (green-blind)
#002E65
Tritanopia (blue-blind)
#382B3E
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #401867;
/* rgb */ color: rgb(64, 24, 103);
/* oklch */ color: oklch(31.7% 0.130 302.6);
Tailwind
colors: {
  custom: {
    50: '#795993',
    500: '#401867',
    950: '#000000',
  },
}
SCSS
$custom: #401867;
$custom-light: #795993;
$custom-dark: #000000;
JSON
{
  "hex": "#401867",
  "rgb": {
    "r": 64,
    "g": 24,
    "b": 103
  },
  "hsl": {
    "h": 270.38,
    "s": 62.205,
    "l": 24.902
  },
  "oklch": {
    "l": 0.3167,
    "c": 0.13036,
    "h": 302.6
  },
  "luminance": 0.02723
}

Semantic roles & 50–950 ramp

primary
#401867
secondary
#6D9D3E
accent
#E54393
background
#F7F5F9
surface
#EEE9F1
border
#C9C5CB
text
#09040D
muted
#7B797E

Preview Lab

Preview with #401867

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

Preview Lab → · Contrast checker → · Palette generator →

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