#4017A0#4017A0

#4017A0 is a dark, vivid violet. Relative luminance 0.042; OKLCH L 37.3% C 0.196 H 285.5°. Best body text is #FFFFFF at 11.36:1 contrast (WCAG AA passes).

Color values

HEX#4017A0
RGBrgb(64, 23, 160)
HSLhsl(258, 75%, 36%)
HSVhsv(258, 86%, 63%)
CMYKcmyk(60%, 85.6%, 0%, 37.3%)
CIE-LABlab(24.45, 51.53, -65.42)
CIE-LCHlch(24.45, 83.28, 308.23°)
OKLaboklab(37.25% 0.0523 -0.1885)
OKLCHoklch(37.25% 0.196 285.5)
XYZxyz(8.7640, 4.2403, 33.6075)
Luminance0.0424 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4017A0 #77A017
analogous
#1733A0 #4017A0 #8417A0
triadic
#4017A0 #A04017 #17A040
tetradic
#4017A0 #A01733 #77A017 #17A084
square
#4017A0 #A01733 #77A017 #17A084
split-complementary
#4017A0 #A08417 #33A017
monochromatic
#150835 #2B0F6A #4017A0 #551FD6 #7A4CE5

Accessibility & contrast

On white

11.36
#4017A0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#4017A0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4017A0
11.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4017A0#FFFFFF#000000##FFFFFF
##4017A01.0011.361.8511.36
#FFFFFF11.361.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003EA4
Deuteranopia (green-blind)
#00369E
Tritanopia (blue-blind)
#03435E
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #4017a0;
/* rgb */ color: rgb(64, 23, 160);
/* oklch */ color: oklch(37.3% 0.196 285.5);
Tailwind
colors: {
  custom: {
    50: '#825cbd',
    500: '#4017a0',
    950: '#000000',
  },
}
SCSS
$custom: #4017a0;
$custom-light: #825cbd;
$custom-dark: #000000;
JSON
{
  "hex": "#4017a0",
  "rgb": {
    "r": 64,
    "g": 23,
    "b": 160
  },
  "hsl": {
    "h": 257.956,
    "s": 74.863,
    "l": 35.882
  },
  "oklch": {
    "l": 0.3725,
    "c": 0.19561,
    "h": 285.5
  },
  "luminance": 0.04241
}

Semantic roles & 50–950 ramp

primary
#4017A0
secondary
#A2C74C
accent
#F136B9
background
#F8F5FB
surface
#F0E9F7
border
#CBC5D0
text
#0C0412
muted
#7D7981

Preview Lab

Preview with #4017A0

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

Preview Lab → · Contrast checker → · Palette generator →

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