#A478F6#A478F6

#A478F6 is a light, vivid violet. Relative luminance 0.280; OKLCH L 67.2% C 0.182 H 297.4°. Best body text is #000000 at 6.60:1 contrast (WCAG AA passes).

Color values

HEX#A478F6
RGBrgb(164, 120, 246)
HSLhsl(261, 88%, 72%)
HSVhsv(261, 51%, 96%)
CMYKcmyk(33.3%, 51.2%, 0%, 3.5%)
CIE-LABlab(59.87, 43.43, -57.26)
CIE-LCHlch(59.87, 71.86, 307.18°)
OKLaboklab(67.2% 0.0838 -0.1617)
OKLCHoklch(67.2% 0.182 297.4)
XYZxyz(38.6568, 27.9788, 90.5347)
Luminance0.2798 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A478F6 #CAF678
analogous
#788BF6 #A478F6 #E378F6
triadic
#A478F6 #F6A478 #78F6A4
tetradic
#A478F6 #F6788B #CAF678 #78F6E3
square
#A478F6 #F6788B #CAF678 #78F6E3
split-complementary
#A478F6 #F6E378 #8BF678
monochromatic
#5A0FE4 #7D3FF2 #A478F6 #CBB1FA #ECE2FD

Accessibility & contrast

On white

3.18
#A478F6 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.60
#A478F6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #A478F6
6.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A478F6#FFFFFF#000000##000000
##A478F61.003.186.606.60
#FFFFFF3.181.0021.0021.00
#0000006.6021.001.001.00
##0000006.6021.001.001.00

Color blindness preview

Protanopia (red-blind)
#4891FA
Deuteranopia (green-blind)
#548FF3
Tritanopia (blue-blind)
#9291AC
Achromatopsia (no color)
#909090

Design tokens & code

CSS
--color: #a478f6;
/* rgb */ color: rgb(164, 120, 246);
/* oklch */ color: oklch(67.2% 0.182 297.4);
Tailwind
colors: {
  custom: {
    50: '#c3a0fa',
    500: '#a478f6',
    950: '#000000',
  },
}
SCSS
$custom: #a478f6;
$custom-light: #c3a0fa;
$custom-dark: #000000;
JSON
{
  "hex": "#a478f6",
  "rgb": {
    "r": 164,
    "g": 120,
    "b": 246
  },
  "hsl": {
    "h": 260.952,
    "s": 87.5,
    "l": 71.765
  },
  "oklch": {
    "l": 0.67201,
    "c": 0.18216,
    "h": 297.4
  },
  "luminance": 0.27979
}

Semantic roles & 50–950 ramp

primary
#A478F6
secondary
#EAF5D5
accent
#E40195
background
#FCF9FF
surface
#F8F2FF
border
#D1CCD7
text
#130F17
muted
#827E85

Preview Lab

Preview with #A478F6

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

Preview Lab → · Contrast checker → · Palette generator →

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