#A178EB#A178EB

#A178EB is a light, vivid violet. Relative luminance 0.270; OKLCH L 66.3% C 0.168 H 298.1°. Best body text is #000000 at 6.40:1 contrast (WCAG AA passes).

Color values

HEX#A178EB
RGBrgb(161, 120, 235)
HSLhsl(261, 74%, 70%)
HSVhsv(261, 49%, 92%)
CMYKcmyk(31.5%, 48.9%, 0%, 7.8%)
CIE-LABlab(58.98, 39.92, -52.59)
CIE-LCHlch(58.98, 66.03, 307.20°)
OKLaboklab(66.28% 0.0792 -0.1482)
OKLCHoklch(66.28% 0.168 298.1)
XYZxyz(36.4062, 27.0078, 81.8761)
Luminance0.2701 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A178EB #C2EB78
analogous
#7889EB #A178EB #DA78EB
triadic
#A178EB #EBA178 #78EBA1
tetradic
#A178EB #EB7889 #C2EB78 #78EBDA
square
#A178EB #EB7889 #C2EB78 #78EBDA
split-complementary
#A178EB #EBDA78 #89EB78
monochromatic
#5C1ECB #7C43E3 #A178EB #C6ADF3 #EBE3FB

Accessibility & contrast

On white

3.28
#A178EB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.40
#A178EB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #A178EB
6.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A178EB#FFFFFF#000000##000000
##A178EB1.003.286.406.40
#FFFFFF3.281.0021.0021.00
#0000006.4021.001.001.00
##0000006.4021.001.001.00

Color blindness preview

Protanopia (red-blind)
#518EEF
Deuteranopia (green-blind)
#5A8DE8
Tritanopia (blue-blind)
#918EA7
Achromatopsia (no color)
#8E8E8E

Design tokens & code

CSS
--color: #a178eb;
/* rgb */ color: rgb(161, 120, 235);
/* oklch */ color: oklch(66.3% 0.168 298.1);
Tailwind
colors: {
  custom: {
    50: '#c0a0f2',
    500: '#a178eb',
    950: '#000000',
  },
}
SCSS
$custom: #a178eb;
$custom-light: #c0a0f2;
$custom-dark: #000000;
JSON
{
  "hex": "#a178eb",
  "rgb": {
    "r": 161,
    "g": 120,
    "b": 235
  },
  "hsl": {
    "h": 261.391,
    "s": 74.194,
    "l": 69.608
  },
  "oklch": {
    "l": 0.66278,
    "c": 0.16802,
    "h": 298.1
  },
  "luminance": 0.27008
}

Semantic roles & 50–950 ramp

primary
#A178EB
secondary
#E4F0CF
accent
#D60F8F
background
#FCF9FE
surface
#F8F2FD
border
#D1CCD5
text
#130F17
muted
#827E85

Preview Lab

Preview with #A178EB

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

Preview Lab → · Contrast checker → · Palette generator →

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