#A478EF#A478EF

#A478EF is a light, vivid violet. Relative luminance 0.276; OKLCH L 66.8% C 0.173 H 298.7°. Best body text is #000000 at 6.51:1 contrast (WCAG AA passes).

Color values

HEX#A478EF
RGBrgb(164, 120, 239)
HSLhsl(262, 79%, 70%)
HSVhsv(262, 50%, 94%)
CMYKcmyk(31.4%, 49.8%, 0%, 6.3%)
CIE-LABlab(59.49, 41.68, -53.99)
CIE-LCHlch(59.49, 68.21, 307.67°)
OKLaboklab(66.79% 0.0833 -0.1522)
OKLCHoklch(66.79% 0.173 298.7)
XYZxyz(37.6026, 27.5571, 84.9826)
Luminance0.2756 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A478EF #C3EF78
analogous
#7887EF #A478EF #E078EF
triadic
#A478EF #EFA478 #78EFA4
tetradic
#A478EF #EF7887 #C3EF78 #78EFE0
square
#A478EF #EF7887 #C3EF78 #78EFE0
split-complementary
#A478EF #EFE078 #87EF78
monochromatic
#5E19D4 #7F41E9 #A478EF #C9AFF5 #EDE4FC

Accessibility & contrast

On white

3.23
#A478EF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.51
#A478EF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #A478EF
6.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A478EF#FFFFFF#000000##000000
##A478EF1.003.236.516.51
#FFFFFF3.231.0021.0021.00
#0000006.5121.001.001.00
##0000006.5121.001.001.00

Color blindness preview

Protanopia (red-blind)
#4F8FF3
Deuteranopia (green-blind)
#5A8EEC
Tritanopia (blue-blind)
#948FA8
Achromatopsia (no color)
#8F8F8F

Design tokens & code

CSS
--color: #a478ef;
/* rgb */ color: rgb(164, 120, 239);
/* oklch */ color: oklch(66.8% 0.173 298.7);
Tailwind
colors: {
  custom: {
    50: '#c2a0f5',
    500: '#a478ef',
    950: '#000000',
  },
}
SCSS
$custom: #a478ef;
$custom-light: #c2a0f5;
$custom-dark: #000000;
JSON
{
  "hex": "#a478ef",
  "rgb": {
    "r": 164,
    "g": 120,
    "b": 239
  },
  "hsl": {
    "h": 262.185,
    "s": 78.808,
    "l": 70.392
  },
  "oklch": {
    "l": 0.66792,
    "c": 0.17347,
    "h": 298.7
  },
  "luminance": 0.27557
}

Semantic roles & 50–950 ramp

primary
#A478EF
secondary
#E6F2D1
accent
#DB0A8E
background
#FCF9FF
surface
#F8F2FE
border
#D1CCD6
text
#130F17
muted
#827E85

Preview Lab

Preview with #A478EF

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

Preview Lab → · Contrast checker → · Palette generator →

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