#A170E6#A170E6

#A170E6 is a light, vivid violet. Relative luminance 0.249; OKLCH L 64.7% C 0.174 H 300.8°. Best body text is #000000 at 5.98:1 contrast (WCAG AA passes).

Color values

HEX#A170E6
RGBrgb(161, 112, 230)
HSLhsl(265, 70%, 67%)
HSVhsv(265, 51%, 90%)
CMYKcmyk(30%, 51.3%, 0%, 9.8%)
CIE-LABlab(56.96, 43.13, -53.03)
CIE-LCHlch(56.96, 68.35, 309.13°)
OKLaboklab(64.68% 0.0891 -0.1494)
OKLCHoklch(64.68% 0.174 300.8)
XYZxyz(34.7717, 24.8784, 77.8177)
Luminance0.2488 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A170E6 #B5E670
analogous
#707AE6 #A170E6 #DC70E6
triadic
#A170E6 #E6A170 #70E6A1
tetradic
#A170E6 #E6707A #B5E670 #70E6DC
square
#A170E6 #E6707A #B5E670 #70E6DC
split-complementary
#A170E6 #E6DC70 #7AE670
monochromatic
#6121BB #7F3CDD #A170E6 #C3A4EF #E5D8F8

Accessibility & contrast

On white

3.51
#A170E6 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.98
#A170E6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #A170E6
5.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A170E6#FFFFFF#000000##000000
##A170E61.003.515.985.98
#FFFFFF3.511.0021.0021.00
#0000005.9821.001.001.00
##0000005.9821.001.001.00

Color blindness preview

Protanopia (red-blind)
#4788EA
Deuteranopia (green-blind)
#5588E3
Tritanopia (blue-blind)
#9386A1
Achromatopsia (no color)
#898989

Design tokens & code

CSS
--color: #a170e6;
/* rgb */ color: rgb(161, 112, 230);
/* oklch */ color: oklch(64.7% 0.174 300.8);
Tailwind
colors: {
  custom: {
    50: '#c09aee',
    500: '#a170e6',
    950: '#000000',
  },
}
SCSS
$custom: #a170e6;
$custom-light: #c09aee;
$custom-dark: #000000;
JSON
{
  "hex": "#a170e6",
  "rgb": {
    "r": 161,
    "g": 112,
    "b": 230
  },
  "hsl": {
    "h": 264.915,
    "s": 70.238,
    "l": 67.059
  },
  "oklch": {
    "l": 0.64684,
    "c": 0.174,
    "h": 300.8
  },
  "luminance": 0.24879
}

Semantic roles & 50–950 ramp

primary
#A170E6
secondary
#DCECC6
accent
#D21383
background
#FCF9FE
surface
#F8F2FD
border
#D1CCD5
text
#130E16
muted
#827E84

Preview Lab

Preview with #A170E6

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

Preview Lab → · Contrast checker → · Palette generator →

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