#401767#401767

#401767 is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.5% C 0.132 H 302.7°. Best body text is #FFFFFF at 13.67:1 contrast (WCAG AA passes).

Color values

HEX#401767
RGBrgb(64, 23, 103)
HSLhsl(271, 63%, 25%)
HSVhsv(271, 78%, 40%)
CMYKcmyk(37.9%, 77.7%, 0%, 59.6%)
CIE-LABlab(18.72, 36.02, -38.84)
CIE-LCHlch(18.72, 52.98, 312.84°)
OKLaboklab(31.55% 0.0712 -0.1107)
OKLCHoklch(31.55% 0.132 302.7)
XYZxyz(4.8684, 2.6820, 13.0905)
Luminance0.0268 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401767 #3E6717
analogous
#181767 #401767 #671766
triadic
#401767 #674017 #176740
tetradic
#401767 #671817 #3E6717 #176667
square
#401767 #671817 #3E6717 #176667
split-complementary
#401767 #666717 #176718
monochromatic
#100619 #210C35 #401767 #5F2299 #7E2DCB

Accessibility & contrast

On white

13.67
#401767 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #401767
13.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401767#FFFFFF#000000##FFFFFF
##4017671.0013.671.5413.67
#FFFFFF13.671.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.671.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #401767;
/* rgb */ color: rgb(64, 23, 103);
/* oklch */ color: oklch(31.5% 0.132 302.7);
Tailwind
colors: {
  custom: {
    50: '#795893',
    500: '#401767',
    950: '#000000',
  },
}
SCSS
$custom: #401767;
$custom-light: #795893;
$custom-dark: #000000;
JSON
{
  "hex": "#401767",
  "rgb": {
    "r": 64,
    "g": 23,
    "b": 103
  },
  "hsl": {
    "h": 270.75,
    "s": 63.492,
    "l": 24.706
  },
  "oklch": {
    "l": 0.31547,
    "c": 0.13162,
    "h": 302.7
  },
  "luminance": 0.02682
}

Semantic roles & 50–950 ramp

primary
#401767
secondary
#6C9D3D
accent
#E74192
background
#F7F5F9
surface
#EEE9F1
border
#C9C5CB
text
#09040D
muted
#7B797E

Preview Lab

Preview with #401767

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

Preview Lab → · Contrast checker → · Palette generator →

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