#A178F7#A178F7

#A178F7 is a light, vivid violet. Relative luminance 0.277; OKLCH L 67.0% C 0.183 H 296.0°. Best body text is #000000 at 6.54:1 contrast (WCAG AA passes).

Color values

HEX#A178F7
RGBrgb(161, 120, 247)
HSLhsl(259, 89%, 72%)
HSVhsv(259, 51%, 97%)
CMYKcmyk(34.8%, 51.4%, 0%, 3.1%)
CIE-LABlab(59.64, 42.95, -58.20)
CIE-LCHlch(59.64, 72.33, 306.43°)
OKLaboklab(66.98% 0.0802 -0.1646)
OKLCHoklch(66.98% 0.183 296)
XYZxyz(38.1987, 27.7248, 91.3166)
Luminance0.2772 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A178F7 #CEF778
analogous
#788FF7 #A178F7 #E078F7
triadic
#A178F7 #F7A178 #78F7A1
tetradic
#A178F7 #F7788F #CEF778 #78F7E0
square
#A178F7 #F7788F #CEF778 #78F7E0
split-complementary
#A178F7 #F7E078 #8FF778
monochromatic
#540EE7 #793EF4 #A178F7 #C9B2FA #EBE2FD

Accessibility & contrast

On white

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

On black

6.54
#A178F7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #A178F7
6.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A178F7#FFFFFF#000000##000000
##A178F71.003.216.546.54
#FFFFFF3.211.0021.0021.00
#0000006.5421.001.001.00
##0000006.5421.001.001.00

Color blindness preview

Protanopia (red-blind)
#4690FB
Deuteranopia (green-blind)
#508EF4
Tritanopia (blue-blind)
#8D91AC
Achromatopsia (no color)
#909090

Design tokens & code

CSS
--color: #a178f7;
/* rgb */ color: rgb(161, 120, 247);
/* oklch */ color: oklch(67.0% 0.183 296.0);
Tailwind
colors: {
  custom: {
    50: '#c1a0fa',
    500: '#a178f7',
    950: '#000000',
  },
}
SCSS
$custom: #a178f7;
$custom-light: #c1a0fa;
$custom-dark: #000000;
JSON
{
  "hex": "#a178f7",
  "rgb": {
    "r": 161,
    "g": 120,
    "b": 247
  },
  "hsl": {
    "h": 259.37,
    "s": 88.811,
    "l": 71.961
  },
  "oklch": {
    "l": 0.66981,
    "c": 0.18307,
    "h": 296
  },
  "luminance": 0.27725
}

Semantic roles & 50–950 ramp

primary
#A178F7
secondary
#EBF5D5
accent
#E5009B
background
#FCF9FF
surface
#F8F2FF
border
#D1CCD7
text
#130F17
muted
#827E85

Preview Lab

Preview with #A178F7

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

Preview Lab → · Contrast checker → · Palette generator →

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