#A170F8#A170F8

#A170F8 is a light, vivid violet. Relative luminance 0.259; OKLCH L 65.8% C 0.196 H 297.4°. Best body text is #000000 at 6.19:1 contrast (WCAG AA passes).

Color values

HEX#A170F8
RGBrgb(161, 112, 248)
HSLhsl(262, 91%, 71%)
HSVhsv(262, 55%, 97%)
CMYKcmyk(35.1%, 54.8%, 0%, 2.7%)
CIE-LABlab(57.98, 47.61, -61.40)
CIE-LCHlch(57.98, 77.69, 307.79°)
OKLaboklab(65.77% 0.09 -0.174)
OKLCHoklch(65.77% 0.196 297.4)
XYZxyz(37.4311, 25.9422, 91.8240)
Luminance0.2594 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A170F8 #C7F870
analogous
#7083F8 #A170F8 #E570F8
triadic
#A170F8 #F8A170 #70F8A1
tetradic
#A170F8 #F87083 #C7F870 #70F8E5
square
#A170F8 #F87083 #C7F870 #70F8E5
split-complementary
#A170F8 #F8E570 #83F870
monochromatic
#590BE3 #7B36F5 #A170F8 #C7AAFB #ECE2FE

Accessibility & contrast

On white

3.39
#A170F8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.19
#A170F8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #A170F8
6.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A170F8#FFFFFF#000000##000000
##A170F81.003.396.196.19
#FFFFFF3.391.0021.0021.00
#0000006.1921.001.001.00
##0000006.1921.001.001.00

Color blindness preview

Protanopia (red-blind)
#338CFD
Deuteranopia (green-blind)
#438AF5
Tritanopia (blue-blind)
#8D8CA9
Achromatopsia (no color)
#8B8B8B

Design tokens & code

CSS
--color: #a170f8;
/* rgb */ color: rgb(161, 112, 248);
/* oklch */ color: oklch(65.8% 0.196 297.4);
Tailwind
colors: {
  custom: {
    50: '#c19afb',
    500: '#a170f8',
    950: '#000000',
  },
}
SCSS
$custom: #a170f8;
$custom-light: #c19afb;
$custom-dark: #000000;
JSON
{
  "hex": "#a170f8",
  "rgb": {
    "r": 161,
    "g": 112,
    "b": 248
  },
  "hsl": {
    "h": 261.618,
    "s": 90.667,
    "l": 70.588
  },
  "oklch": {
    "l": 0.65773,
    "c": 0.19588,
    "h": 297.4
  },
  "luminance": 0.25943
}

Semantic roles & 50–950 ramp

primary
#A170F8
secondary
#E7F4CF
accent
#E60093
background
#FCF9FF
surface
#F8F2FF
border
#D1CCD7
text
#130E17
muted
#827E85

Preview Lab

Preview with #A170F8

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

Preview Lab → · Contrast checker → · Palette generator →

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