#4018A1#4018A1

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

Color values

HEX#4018A1
RGBrgb(64, 24, 161)
HSLhsl(258, 74%, 36%)
HSVhsv(258, 85%, 63%)
CMYKcmyk(60.2%, 85.1%, 0%, 36.9%)
CIE-LABlab(24.69, 51.43, -65.63)
CIE-LCHlch(24.69, 83.38, 308.08°)
OKLaboklab(37.45% 0.0514 -0.1891)
OKLCHoklch(37.45% 0.196 285.2)
XYZxyz(8.8720, 4.3159, 34.0768)
Luminance0.0432 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4018A1 #79A118
analogous
#1835A1 #4018A1 #8518A1
triadic
#4018A1 #A14018 #18A140
tetradic
#4018A1 #A11835 #79A118 #18A185
square
#4018A1 #A11835 #79A118 #18A185
split-complementary
#4018A1 #A18518 #35A118
monochromatic
#160836 #2B106C #4018A1 #5520D6 #7A4FE5

Accessibility & contrast

On white

11.27
#4018A1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4018A1
11.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4018A1#FFFFFF#000000##FFFFFF
##4018A11.0011.271.8611.27
#FFFFFF11.271.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.271.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4018a1;
/* rgb */ color: rgb(64, 24, 161);
/* oklch */ color: oklch(37.4% 0.196 285.2);
Tailwind
colors: {
  custom: {
    50: '#825dbe',
    500: '#4018a1',
    950: '#000000',
  },
}
SCSS
$custom: #4018a1;
$custom-light: #825dbe;
$custom-dark: #000000;
JSON
{
  "hex": "#4018a1",
  "rgb": {
    "r": 64,
    "g": 24,
    "b": 161
  },
  "hsl": {
    "h": 257.518,
    "s": 74.054,
    "l": 36.275
  },
  "oklch": {
    "l": 0.37447,
    "c": 0.19599,
    "h": 285.2
  },
  "luminance": 0.04316
}

Semantic roles & 50–950 ramp

primary
#4018A1
secondary
#A4C74E
accent
#F137BB
background
#F8F5FB
surface
#F0E9F7
border
#CBC5D0
text
#0C0512
muted
#7D7981

Preview Lab

Preview with #4018A1

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

Preview Lab → · Contrast checker → · Palette generator →

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