#A178E9#A178E9

#A178E9 is a light, vivid violet. Relative luminance 0.269; OKLCH L 66.2% C 0.166 H 298.5°. Best body text is #000000 at 6.38:1 contrast (WCAG AA passes).

Color values

HEX#A178E9
RGBrgb(161, 120, 233)
HSLhsl(262, 72%, 69%)
HSVhsv(262, 48%, 91%)
CMYKcmyk(30.9%, 48.5%, 0%, 8.6%)
CIE-LABlab(58.88, 39.42, -51.65)
CIE-LCHlch(58.88, 64.98, 307.36°)
OKLaboklab(66.16% 0.079 -0.1454)
OKLCHoklch(66.16% 0.166 298.5)
XYZxyz(36.1189, 26.8929, 80.3629)
Luminance0.2689 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A178E9 #C0E978
analogous
#7888E9 #A178E9 #DA78E9
triadic
#A178E9 #E9A178 #78E9A1
tetradic
#A178E9 #E97888 #C0E978 #78E9DA
square
#A178E9 #E97888 #C0E978 #78E9DA
split-complementary
#A178E9 #E9DA78 #88E978
monochromatic
#5D20C6 #7C43E0 #A178E9 #C6ADF2 #EAE1FA

Accessibility & contrast

On white

3.29
#A178E9 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.38
#A178E9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #A178E9
6.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A178E9#FFFFFF#000000##000000
##A178E91.003.296.386.38
#FFFFFF3.291.0021.0021.00
#0000006.3821.001.001.00
##0000006.3821.001.001.00

Color blindness preview

Protanopia (red-blind)
#528EED
Deuteranopia (green-blind)
#5C8DE6
Tritanopia (blue-blind)
#928DA6
Achromatopsia (no color)
#8E8E8E

Design tokens & code

CSS
--color: #a178e9;
/* rgb */ color: rgb(161, 120, 233);
/* oklch */ color: oklch(66.2% 0.166 298.5);
Tailwind
colors: {
  custom: {
    50: '#c0a0f0',
    500: '#a178e9',
    950: '#000000',
  },
}
SCSS
$custom: #a178e9;
$custom-light: #c0a0f0;
$custom-dark: #000000;
JSON
{
  "hex": "#a178e9",
  "rgb": {
    "r": 161,
    "g": 120,
    "b": 233
  },
  "hsl": {
    "h": 261.77,
    "s": 71.975,
    "l": 69.216
  },
  "oklch": {
    "l": 0.66164,
    "c": 0.1655,
    "h": 298.5
  },
  "luminance": 0.26893
}

Semantic roles & 50–950 ramp

primary
#A178E9
secondary
#E3EFCE
accent
#D4118D
background
#FCF9FE
surface
#F8F2FD
border
#D1CCD5
text
#120F17
muted
#817E85

Preview Lab

Preview with #A178E9

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

Preview Lab → · Contrast checker → · Palette generator →

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