#A178F6#A178F6

#A178F6 is a light, vivid violet. Relative luminance 0.277; OKLCH L 66.9% C 0.182 H 296.1°. Best body text is #000000 at 6.53:1 contrast (WCAG AA passes).

Color values

HEX#A178F6
RGBrgb(161, 120, 246)
HSLhsl(260, 88%, 72%)
HSVhsv(260, 51%, 96%)
CMYKcmyk(34.6%, 51.2%, 0%, 3.5%)
CIE-LABlab(59.58, 42.70, -57.73)
CIE-LCHlch(59.58, 71.81, 306.49°)
OKLaboklab(66.92% 0.0801 -0.1632)
OKLCHoklch(66.92% 0.182 296.1)
XYZxyz(38.0448, 27.6632, 90.5060)
Luminance0.2766 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A178F6 #CDF678
analogous
#788EF6 #A178F6 #E078F6
triadic
#A178F6 #F6A178 #78F6A1
tetradic
#A178F6 #F6788E #CDF678 #78F6E0
square
#A178F6 #F6788E #CDF678 #78F6E0
split-complementary
#A178F6 #F6E078 #8EF678
monochromatic
#550FE4 #793FF2 #A178F6 #C9B1FA #EBE2FD

Accessibility & contrast

On white

3.21
#A178F6 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.53
#A178F6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #A178F6
6.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A178F6#FFFFFF#000000##000000
##A178F61.003.216.536.53
#FFFFFF3.211.0021.0021.00
#0000006.5321.001.001.00
##0000006.5321.001.001.00

Color blindness preview

Protanopia (red-blind)
#4790FA
Deuteranopia (green-blind)
#518EF3
Tritanopia (blue-blind)
#8D91AC
Achromatopsia (no color)
#8F8F8F

Design tokens & code

CSS
--color: #a178f6;
/* rgb */ color: rgb(161, 120, 246);
/* oklch */ color: oklch(66.9% 0.182 296.1);
Tailwind
colors: {
  custom: {
    50: '#c1a0fa',
    500: '#a178f6',
    950: '#000000',
  },
}
SCSS
$custom: #a178f6;
$custom-light: #c1a0fa;
$custom-dark: #000000;
JSON
{
  "hex": "#a178f6",
  "rgb": {
    "r": 161,
    "g": 120,
    "b": 246
  },
  "hsl": {
    "h": 259.524,
    "s": 87.5,
    "l": 71.765
  },
  "oklch": {
    "l": 0.66921,
    "c": 0.18182,
    "h": 296.1
  },
  "luminance": 0.27664
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #A178F6

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

Preview Lab → · Contrast checker → · Palette generator →

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