#A170E4#A170E4

#A170E4 is a light, vivid violet. Relative luminance 0.248; OKLCH L 64.6% C 0.172 H 301.2°. Best body text is #000000 at 5.95:1 contrast (WCAG AA passes).

Color values

HEX#A170E4
RGBrgb(161, 112, 228)
HSLhsl(265, 68%, 67%)
HSVhsv(265, 51%, 89%)
CMYKcmyk(29.4%, 50.9%, 0%, 10.6%)
CIE-LABlab(56.85, 42.64, -52.08)
CIE-LCHlch(56.85, 67.31, 309.31°)
OKLaboklab(64.57% 0.089 -0.1467)
OKLCHoklch(64.57% 0.172 301.2)
XYZxyz(34.4925, 24.7667, 76.3470)
Luminance0.2477 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A170E4 #B3E470
analogous
#7079E4 #A170E4 #DB70E4
triadic
#A170E4 #E4A170 #70E4A1
tetradic
#A170E4 #E47079 #B3E470 #70E4DB
square
#A170E4 #E47079 #B3E470 #70E4DB
split-complementary
#A170E4 #E4DB70 #79E470
monochromatic
#6123B7 #7F3DDA #A170E4 #C3A3EE #E5D7F7

Accessibility & contrast

On white

3.53
#A170E4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.95
#A170E4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #A170E4
5.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A170E4#FFFFFF#000000##000000
##A170E41.003.535.955.95
#FFFFFF3.531.0021.0021.00
#0000005.9521.001.001.00
##0000005.9521.001.001.00

Color blindness preview

Protanopia (red-blind)
#4988E8
Deuteranopia (green-blind)
#5688E1
Tritanopia (blue-blind)
#9486A0
Achromatopsia (no color)
#888888

Design tokens & code

CSS
--color: #a170e4;
/* rgb */ color: rgb(161, 112, 228);
/* oklch */ color: oklch(64.6% 0.172 301.2);
Tailwind
colors: {
  custom: {
    50: '#c09aed',
    500: '#a170e4',
    950: '#000000',
  },
}
SCSS
$custom: #a170e4;
$custom-light: #c09aed;
$custom-dark: #000000;
JSON
{
  "hex": "#a170e4",
  "rgb": {
    "r": 161,
    "g": 112,
    "b": 228
  },
  "hsl": {
    "h": 265.345,
    "s": 68.235,
    "l": 66.667
  },
  "oklch": {
    "l": 0.64567,
    "c": 0.17156,
    "h": 301.2
  },
  "luminance": 0.24767
}

Semantic roles & 50–950 ramp

primary
#A170E4
secondary
#DBEBC5
accent
#D01581
background
#FCF9FE
surface
#F8F2FD
border
#D1CCD5
text
#130E16
muted
#827E84

Preview Lab

Preview with #A170E4

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

Preview Lab → · Contrast checker → · Palette generator →

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