#4017A1#4017A1

#4017A1 is a dark, vivid violet. Relative luminance 0.043; OKLCH L 37.4% C 0.197 H 285.3°. Best body text is #FFFFFF at 11.32:1 contrast (WCAG AA passes).

Color values

HEX#4017A1
RGBrgb(64, 23, 161)
HSLhsl(258, 75%, 36%)
HSVhsv(258, 86%, 63%)
CMYKcmyk(60.2%, 85.7%, 0%, 36.9%)
CIE-LABlab(24.56, 51.80, -65.85)
CIE-LCHlch(24.56, 83.78, 308.19°)
OKLaboklab(37.36% 0.0519 -0.1897)
OKLCHoklch(37.36% 0.197 285.3)
XYZxyz(8.8518, 4.2754, 34.0701)
Luminance0.0428 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4017A1 #78A117
analogous
#1733A1 #4017A1 #8517A1
triadic
#4017A1 #A14017 #17A140
tetradic
#4017A1 #A11733 #78A117 #17A185
square
#4017A1 #A11733 #78A117 #17A185
split-complementary
#4017A1 #A18517 #33A117
monochromatic
#150836 #2B0F6B #4017A1 #551FD7 #7A4DE6

Accessibility & contrast

On white

11.32
#4017A1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#4017A1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4017A1
11.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4017A1#FFFFFF#000000##FFFFFF
##4017A11.0011.321.8611.32
#FFFFFF11.321.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003EA5
Deuteranopia (green-blind)
#00369F
Tritanopia (blue-blind)
#00435F
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #4017a1;
/* rgb */ color: rgb(64, 23, 161);
/* oklch */ color: oklch(37.4% 0.197 285.3);
Tailwind
colors: {
  custom: {
    50: '#825cbe',
    500: '#4017a1',
    950: '#000000',
  },
}
SCSS
$custom: #4017a1;
$custom-light: #825cbe;
$custom-dark: #000000;
JSON
{
  "hex": "#4017a1",
  "rgb": {
    "r": 64,
    "g": 23,
    "b": 161
  },
  "hsl": {
    "h": 257.826,
    "s": 75,
    "l": 36.078
  },
  "oklch": {
    "l": 0.37359,
    "c": 0.1967,
    "h": 285.3
  },
  "luminance": 0.04276
}

Semantic roles & 50–950 ramp

primary
#4017A1
secondary
#A3C74C
accent
#F236BA
background
#F8F5FB
surface
#F0E9F7
border
#CBC5D0
text
#0C0412
muted
#7D7981

Preview Lab

Preview with #4017A1

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

Preview Lab → · Contrast checker → · Palette generator →

#4017A1 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva