#A178F2#A178F2

#A178F2 is a light, vivid violet. Relative luminance 0.274; OKLCH L 66.7% C 0.177 H 296.8°. Best body text is #000000 at 6.48:1 contrast (WCAG AA passes).

Color values

HEX#A178F2
RGBrgb(161, 120, 242)
HSLhsl(260, 82%, 71%)
HSVhsv(260, 50%, 95%)
CMYKcmyk(33.5%, 50.4%, 0%, 5.1%)
CIE-LABlab(59.36, 41.68, -55.87)
CIE-LCHlch(59.36, 69.71, 306.72°)
OKLaboklab(66.68% 0.0798 -0.1578)
OKLCHoklch(66.68% 0.177 296.8)
XYZxyz(37.4374, 27.4203, 87.3074)
Luminance0.2742 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A178F2 #C9F278
analogous
#788CF2 #A178F2 #DE78F2
triadic
#A178F2 #F2A178 #78F2A1
tetradic
#A178F2 #F2788C #C9F278 #78F2DE
square
#A178F2 #F2788C #C9F278 #78F2DE
split-complementary
#A178F2 #F2DE78 #8CF278
monochromatic
#5715DB #7A40ED #A178F2 #C8B0F7 #ECE3FC

Accessibility & contrast

On white

3.24
#A178F2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.48
#A178F2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #A178F2
6.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A178F2#FFFFFF#000000##000000
##A178F21.003.246.486.48
#FFFFFF3.241.0021.0021.00
#0000006.4821.001.001.00
##0000006.4821.001.001.00

Color blindness preview

Protanopia (red-blind)
#4B8FF6
Deuteranopia (green-blind)
#558DEF
Tritanopia (blue-blind)
#8F90AA
Achromatopsia (no color)
#8F8F8F

Design tokens & code

CSS
--color: #a178f2;
/* rgb */ color: rgb(161, 120, 242);
/* oklch */ color: oklch(66.7% 0.177 296.8);
Tailwind
colors: {
  custom: {
    50: '#c0a0f7',
    500: '#a178f2',
    950: '#000000',
  },
}
SCSS
$custom: #a178f2;
$custom-light: #c0a0f7;
$custom-dark: #000000;
JSON
{
  "hex": "#a178f2",
  "rgb": {
    "r": 161,
    "g": 120,
    "b": 242
  },
  "hsl": {
    "h": 260.164,
    "s": 82.432,
    "l": 70.98
  },
  "oklch": {
    "l": 0.66684,
    "c": 0.17682,
    "h": 296.8
  },
  "luminance": 0.27421
}

Semantic roles & 50–950 ramp

primary
#A178F2
secondary
#E8F3D3
accent
#DF0796
background
#FCF9FF
surface
#F8F2FF
border
#D1CCD7
text
#130F17
muted
#827E85

Preview Lab

Preview with #A178F2

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

Preview Lab → · Contrast checker → · Palette generator →

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