#4015A1#4015A1

#4015A1 is a dark, vivid violet. Relative luminance 0.042; OKLCH L 37.2% C 0.198 H 285.5°. Best body text is #FFFFFF at 11.41:1 contrast (WCAG AA passes).

Color values

HEX#4015A1
RGBrgb(64, 21, 161)
HSLhsl(258, 77%, 36%)
HSVhsv(258, 87%, 63%)
CMYKcmyk(60.2%, 87%, 0%, 36.9%)
CIE-LABlab(24.32, 52.52, -66.25)
CIE-LCHlch(24.32, 84.54, 308.41°)
OKLaboklab(37.19% 0.0528 -0.1909)
OKLCHoklch(37.19% 0.198 285.5)
XYZxyz(8.8136, 4.1990, 34.0574)
Luminance0.0420 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4015A1 #76A115
analogous
#1530A1 #4015A1 #8615A1
triadic
#4015A1 #A14015 #15A140
tetradic
#4015A1 #A11530 #76A115 #15A186
square
#4015A1 #A11530 #76A115 #15A186
split-complementary
#4015A1 #A18615 #30A115
monochromatic
#150735 #2A0E6B #4015A1 #561CD7 #7A49E7

Accessibility & contrast

On white

11.41
#4015A1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#4015A1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4015A1
11.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4015A1#FFFFFF#000000##FFFFFF
##4015A11.0011.411.8411.41
#FFFFFF11.411.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.411.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4015a1;
/* rgb */ color: rgb(64, 21, 161);
/* oklch */ color: oklch(37.2% 0.198 285.5);
Tailwind
colors: {
  custom: {
    50: '#825bbe',
    500: '#4015a1',
    950: '#000000',
  },
}
SCSS
$custom: #4015a1;
$custom-light: #825bbe;
$custom-dark: #000000;
JSON
{
  "hex": "#4015a1",
  "rgb": {
    "r": 64,
    "g": 21,
    "b": 161
  },
  "hsl": {
    "h": 258.429,
    "s": 76.923,
    "l": 35.686
  },
  "oklch": {
    "l": 0.37193,
    "c": 0.19805,
    "h": 285.5
  },
  "luminance": 0.042
}

Semantic roles & 50–950 ramp

primary
#4015A1
secondary
#A1C849
accent
#F334B9
background
#F8F5FB
surface
#F0E9F7
border
#CBC5D0
text
#0C0412
muted
#7D7981

Preview Lab

Preview with #4015A1

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

Preview Lab → · Contrast checker → · Palette generator →

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