#401B73#401B73

#401B73 is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.1% C 0.141 H 297.2°. Best body text is #FFFFFF at 12.94:1 contrast (WCAG AA passes).

Color values

HEX#401B73
RGBrgb(64, 27, 115)
HSLhsl(265, 62%, 28%)
HSVhsv(265, 77%, 45%)
CMYKcmyk(44.3%, 76.5%, 0%, 54.9%)
CIE-LABlab(20.49, 37.30, -43.77)
CIE-LCHlch(20.49, 57.50, 310.43°)
OKLaboklab(33.12% 0.0643 -0.1252)
OKLCHoklch(33.12% 0.141 297.2)
XYZxyz(5.6000, 3.1116, 16.5219)
Luminance0.0311 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401B73 #4E731B
analogous
#1B2273 #401B73 #6C1B73
triadic
#401B73 #73401B #1B7340
tetradic
#401B73 #731B22 #4E731B #1B736C
square
#401B73 #731B22 #4E731B #1B736C
split-complementary
#401B73 #736C1B #22731B
monochromatic
#0E0619 #240F41 #401B73 #5C27A5 #7838D0

Accessibility & contrast

On white

12.94
#401B73 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#401B73 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401B73
12.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401B73#FFFFFF#000000##FFFFFF
##401B731.0012.941.6212.94
#FFFFFF12.941.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003276
Deuteranopia (green-blind)
#003071
Tritanopia (blue-blind)
#333245
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #401b73;
/* rgb */ color: rgb(64, 27, 115);
/* oklch */ color: oklch(33.1% 0.141 297.2);
Tailwind
colors: {
  custom: {
    50: '#7a5b9c',
    500: '#401b73',
    950: '#000000',
  },
}
SCSS
$custom: #401b73;
$custom-light: #7a5b9c;
$custom-dark: #000000;
JSON
{
  "hex": "#401b73",
  "rgb": {
    "r": 64,
    "g": 27,
    "b": 115
  },
  "hsl": {
    "h": 265.227,
    "s": 61.972,
    "l": 27.843
  },
  "oklch": {
    "l": 0.33122,
    "c": 0.14074,
    "h": 297.2
  },
  "luminance": 0.03112
}

Semantic roles & 50–950 ramp

primary
#401B73
secondary
#7DA842
accent
#E543A1
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A040E
muted
#7C797E

Preview Lab

Preview with #401B73

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

Preview Lab → · Contrast checker → · Palette generator →

#401B73 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva