#A178EF#A178EF

#A178EF is a light, vivid violet. Relative luminance 0.272; OKLCH L 66.5% C 0.173 H 297.4°. Best body text is #000000 at 6.45:1 contrast (WCAG AA passes).

Color values

HEX#A178EF
RGBrgb(161, 120, 239)
HSLhsl(261, 79%, 70%)
HSVhsv(261, 50%, 94%)
CMYKcmyk(32.6%, 49.8%, 0%, 6.3%)
CIE-LABlab(59.20, 40.93, -54.47)
CIE-LCHlch(59.20, 68.13, 306.92°)
OKLaboklab(66.51% 0.0796 -0.1537)
OKLCHoklch(66.51% 0.173 297.4)
XYZxyz(36.9906, 27.2415, 84.9539)
Luminance0.2724 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A178EF #C6EF78
analogous
#788AEF #A178EF #DC78EF
triadic
#A178EF #EFA178 #78EFA1
tetradic
#A178EF #EF788A #C6EF78 #78EFDC
square
#A178EF #EF788A #C6EF78 #78EFDC
split-complementary
#A178EF #EFDC78 #8AEF78
monochromatic
#5919D4 #7B41E9 #A178EF #C7AFF5 #ECE4FC

Accessibility & contrast

On white

3.26
#A178EF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.45
#A178EF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #A178EF
6.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A178EF#FFFFFF#000000##000000
##A178EF1.003.266.456.45
#FFFFFF3.261.0021.0021.00
#0000006.4521.001.001.00
##0000006.4521.001.001.00

Color blindness preview

Protanopia (red-blind)
#4D8FF3
Deuteranopia (green-blind)
#578DEC
Tritanopia (blue-blind)
#908FA8
Achromatopsia (no color)
#8E8E8E

Design tokens & code

CSS
--color: #a178ef;
/* rgb */ color: rgb(161, 120, 239);
/* oklch */ color: oklch(66.5% 0.173 297.4);
Tailwind
colors: {
  custom: {
    50: '#c0a0f5',
    500: '#a178ef',
    950: '#000000',
  },
}
SCSS
$custom: #a178ef;
$custom-light: #c0a0f5;
$custom-dark: #000000;
JSON
{
  "hex": "#a178ef",
  "rgb": {
    "r": 161,
    "g": 120,
    "b": 239
  },
  "hsl": {
    "h": 260.672,
    "s": 78.808,
    "l": 70.392
  },
  "oklch": {
    "l": 0.66509,
    "c": 0.17306,
    "h": 297.4
  },
  "luminance": 0.27242
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #A178EF

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

Preview Lab → · Contrast checker → · Palette generator →

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