#A178F8#A178F8

#A178F8 is a light, vivid violet. Relative luminance 0.278; OKLCH L 67.0% C 0.184 H 295.8°. Best body text is #000000 at 6.56:1 contrast (WCAG AA passes).

Color values

HEX#A178F8
RGBrgb(161, 120, 248)
HSLhsl(259, 90%, 72%)
HSVhsv(259, 52%, 97%)
CMYKcmyk(35.1%, 51.6%, 0%, 2.7%)
CIE-LABlab(59.70, 43.21, -58.66)
CIE-LCHlch(59.70, 72.85, 306.38°)
OKLaboklab(67.04% 0.0802 -0.1659)
OKLCHoklch(67.04% 0.184 295.8)
XYZxyz(38.3534, 27.7867, 92.1314)
Luminance0.2779 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A178F8 #CFF878
analogous
#788FF8 #A178F8 #E178F8
triadic
#A178F8 #F8A178 #78F8A1
tetradic
#A178F8 #F8788F #CFF878 #78F8E1
square
#A178F8 #F8788F #CFF878 #78F8E1
split-complementary
#A178F8 #F8E178 #8FF878
monochromatic
#530CE9 #783EF5 #A178F8 #CAB2FB #EBE2FD

Accessibility & contrast

On white

3.20
#A178F8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.56
#A178F8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #A178F8
6.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A178F8#FFFFFF#000000##000000
##A178F81.003.206.566.56
#FFFFFF3.201.0021.0021.00
#0000006.5621.001.001.00
##0000006.5621.001.001.00

Color blindness preview

Protanopia (red-blind)
#4591FC
Deuteranopia (green-blind)
#4F8EF5
Tritanopia (blue-blind)
#8D92AD
Achromatopsia (no color)
#909090

Design tokens & code

CSS
--color: #a178f8;
/* rgb */ color: rgb(161, 120, 248);
/* oklch */ color: oklch(67.0% 0.184 295.8);
Tailwind
colors: {
  custom: {
    50: '#c1a0fb',
    500: '#a178f8',
    950: '#000000',
  },
}
SCSS
$custom: #a178f8;
$custom-light: #c1a0fb;
$custom-dark: #000000;
JSON
{
  "hex": "#a178f8",
  "rgb": {
    "r": 161,
    "g": 120,
    "b": 248
  },
  "hsl": {
    "h": 259.219,
    "s": 90.141,
    "l": 72.157
  },
  "oklch": {
    "l": 0.67041,
    "c": 0.18431,
    "h": 295.8
  },
  "luminance": 0.27787
}

Semantic roles & 50–950 ramp

primary
#A178F8
secondary
#EBF6D5
accent
#E6009C
background
#FCF9FF
surface
#F8F2FF
border
#D1CCD7
text
#130F17
muted
#827E85

Preview Lab

Preview with #A178F8

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

Preview Lab → · Contrast checker → · Palette generator →

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