#A478EB#A478EB

#A478EB is a light, vivid violet. Relative luminance 0.273; OKLCH L 66.6% C 0.168 H 299.5°. Best body text is #000000 at 6.46:1 contrast (WCAG AA passes).

Color values

HEX#A478EB
RGBrgb(164, 120, 235)
HSLhsl(263, 74%, 70%)
HSVhsv(263, 49%, 92%)
CMYKcmyk(30.2%, 48.9%, 0%, 7.8%)
CIE-LABlab(59.27, 40.69, -52.11)
CIE-LCHlch(59.27, 66.12, 307.99°)
OKLaboklab(66.56% 0.0829 -0.1467)
OKLCHoklch(66.56% 0.168 299.5)
XYZxyz(37.0182, 27.3233, 81.9048)
Luminance0.2732 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A478EB #BFEB78
analogous
#7885EB #A478EB #DE78EB
triadic
#A478EB #EBA478 #78EBA4
tetradic
#A478EB #EB7885 #BFEB78 #78EBDE
square
#A478EB #EB7885 #BFEB78 #78EBDE
split-complementary
#A478EB #EBDE78 #85EB78
monochromatic
#601ECB #8043E3 #A478EB #C8ADF3 #ECE3FB

Accessibility & contrast

On white

3.25
#A478EB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.46
#A478EB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #A478EB
6.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A478EB#FFFFFF#000000##000000
##A478EB1.003.256.466.46
#FFFFFF3.251.0021.0021.00
#0000006.4621.001.001.00
##0000006.4621.001.001.00

Color blindness preview

Protanopia (red-blind)
#528FEF
Deuteranopia (green-blind)
#5D8EE8
Tritanopia (blue-blind)
#968DA7
Achromatopsia (no color)
#8F8F8F

Design tokens & code

CSS
--color: #a478eb;
/* rgb */ color: rgb(164, 120, 235);
/* oklch */ color: oklch(66.6% 0.168 299.5);
Tailwind
colors: {
  custom: {
    50: '#c2a0f2',
    500: '#a478eb',
    950: '#000000',
  },
}
SCSS
$custom: #a478eb;
$custom-light: #c2a0f2;
$custom-dark: #000000;
JSON
{
  "hex": "#a478eb",
  "rgb": {
    "r": 164,
    "g": 120,
    "b": 235
  },
  "hsl": {
    "h": 262.957,
    "s": 74.194,
    "l": 69.608
  },
  "oklch": {
    "l": 0.66563,
    "c": 0.16848,
    "h": 299.5
  },
  "luminance": 0.27324
}

Semantic roles & 50–950 ramp

primary
#A478EB
secondary
#E3F0CF
accent
#D60F8A
background
#FCF9FE
surface
#F8F2FD
border
#D1CCD5
text
#130F17
muted
#827E85

Preview Lab

Preview with #A478EB

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

Preview Lab → · Contrast checker → · Palette generator →

#A478EB Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva