#401983#401983

#401983 is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.4% C 0.162 H 292.4°. Best body text is #FFFFFF at 12.46:1 contrast (WCAG AA passes).

Color values

HEX#401983
RGBrgb(64, 25, 131)
HSLhsl(262, 68%, 31%)
HSVhsv(262, 81%, 51%)
CMYKcmyk(51.1%, 80.9%, 0%, 48.6%)
CIE-LABlab(21.67, 42.72, -52.03)
CIE-LCHlch(21.67, 67.32, 309.38°)
OKLaboklab(34.42% 0.0615 -0.1494)
OKLCHoklch(34.42% 0.162 292.4)
XYZxyz(6.5576, 3.4237, 21.7837)
Luminance0.0342 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401983 #5C8319
analogous
#192783 #401983 #751983
triadic
#401983 #834019 #198340
tetradic
#401983 #831927 #5C8319 #198375
square
#401983 #831927 #5C8319 #198375
split-complementary
#401983 #837519 #278319
monochromatic
#0E051C #270F50 #401983 #5923B6 #763DDA

Accessibility & contrast

On white

12.46
#401983 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#401983 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401983
12.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401983#FFFFFF#000000##FFFFFF
##4019831.0012.461.6812.46
#FFFFFF12.461.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003586
Deuteranopia (green-blind)
#003281
Tritanopia (blue-blind)
#2A374E
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #401983;
/* rgb */ color: rgb(64, 25, 131);
/* oklch */ color: oklch(34.4% 0.162 292.4);
Tailwind
colors: {
  custom: {
    50: '#7d5ba8',
    500: '#401983',
    950: '#000000',
  },
}
SCSS
$custom: #401983;
$custom-light: #7d5ba8;
$custom-dark: #000000;
JSON
{
  "hex": "#401983",
  "rgb": {
    "r": 64,
    "g": 25,
    "b": 131
  },
  "hsl": {
    "h": 262.075,
    "s": 67.949,
    "l": 30.588
  },
  "oklch": {
    "l": 0.34415,
    "c": 0.16157,
    "h": 292.4
  },
  "luminance": 0.03424
}

Semantic roles & 50–950 ramp

primary
#401983
secondary
#8BB741
accent
#EB3DAB
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #401983

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

Preview Lab → · Contrast checker → · Palette generator →

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