#4018A0#4018A0

#4018A0 is a dark, vivid violet. Relative luminance 0.043; OKLCH L 37.3% C 0.195 H 285.4°. Best body text is #FFFFFF at 11.31:1 contrast (WCAG AA passes).

Color values

HEX#4018A0
RGBrgb(64, 24, 160)
HSLhsl(258, 74%, 36%)
HSVhsv(258, 85%, 63%)
CMYKcmyk(60%, 85%, 0%, 37.3%)
CIE-LABlab(24.58, 51.15, -65.21)
CIE-LCHlch(24.58, 82.88, 308.11°)
OKLaboklab(37.34% 0.0518 -0.1879)
OKLCHoklch(37.34% 0.195 285.4)
XYZxyz(8.7842, 4.2808, 33.6143)
Luminance0.0428 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4018A0 #78A018
analogous
#1834A0 #4018A0 #8418A0
triadic
#4018A0 #A04018 #18A040
tetradic
#4018A0 #A01834 #78A018 #18A084
square
#4018A0 #A01834 #78A018 #18A084
split-complementary
#4018A0 #A08418 #34A018
monochromatic
#150836 #2B106B #4018A0 #5520D5 #7A4EE4

Accessibility & contrast

On white

11.31
#4018A0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#4018A0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4018A0
11.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4018A0#FFFFFF#000000##FFFFFF
##4018A01.0011.311.8611.31
#FFFFFF11.311.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.311.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4018a0;
/* rgb */ color: rgb(64, 24, 160);
/* oklch */ color: oklch(37.3% 0.195 285.4);
Tailwind
colors: {
  custom: {
    50: '#825dbd',
    500: '#4018a0',
    950: '#000000',
  },
}
SCSS
$custom: #4018a0;
$custom-light: #825dbd;
$custom-dark: #000000;
JSON
{
  "hex": "#4018a0",
  "rgb": {
    "r": 64,
    "g": 24,
    "b": 160
  },
  "hsl": {
    "h": 257.647,
    "s": 73.913,
    "l": 36.078
  },
  "oklch": {
    "l": 0.37338,
    "c": 0.19489,
    "h": 285.4
  },
  "luminance": 0.04281
}

Semantic roles & 50–950 ramp

primary
#4018A0
secondary
#A3C64D
accent
#F137BA
background
#F8F5FB
surface
#F0E9F7
border
#CBC5D0
text
#0C0412
muted
#7D7981

Preview Lab

Preview with #4018A0

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

Preview Lab → · Contrast checker → · Palette generator →

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