#A170F2#A170F2

#A170F2 is a light, vivid violet. Relative luminance 0.256; OKLCH L 65.4% C 0.189 H 298.4°. Best body text is #000000 at 6.12:1 contrast (WCAG AA passes).

Color values

HEX#A170F2
RGBrgb(161, 112, 242)
HSLhsl(263, 83%, 69%)
HSVhsv(263, 54%, 95%)
CMYKcmyk(33.5%, 53.7%, 0%, 5.1%)
CIE-LABlab(57.63, 46.10, -58.64)
CIE-LCHlch(57.63, 74.59, 308.18°)
OKLaboklab(65.4% 0.0898 -0.1659)
OKLCHoklch(65.4% 0.189 298.4)
XYZxyz(36.5152, 25.5758, 87.0000)
Luminance0.2558 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A170F2 #C1F270
analogous
#7080F2 #A170F2 #E270F2
triadic
#A170F2 #F2A170 #70F2A1
tetradic
#A170F2 #F27080 #C1F270 #70F2E2
square
#A170F2 #F27080 #C1F270 #70F2E2
split-complementary
#A170F2 #F2E270 #80F270
monochromatic
#5C13D4 #7C38ED #A170F2 #C6A8F7 #EBE0FC

Accessibility & contrast

On white

3.43
#A170F2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.12
#A170F2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #A170F2
6.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A170F2#FFFFFF#000000##000000
##A170F21.003.436.126.12
#FFFFFF3.431.0021.0021.00
#0000006.1221.001.001.00
##0000006.1221.001.001.00

Color blindness preview

Protanopia (red-blind)
#3A8BF6
Deuteranopia (green-blind)
#4A89EF
Tritanopia (blue-blind)
#8F8AA6
Achromatopsia (no color)
#8A8A8A

Design tokens & code

CSS
--color: #a170f2;
/* rgb */ color: rgb(161, 112, 242);
/* oklch */ color: oklch(65.4% 0.189 298.4);
Tailwind
colors: {
  custom: {
    50: '#c19af7',
    500: '#a170f2',
    950: '#000000',
  },
}
SCSS
$custom: #a170f2;
$custom-light: #c19af7;
$custom-dark: #000000;
JSON
{
  "hex": "#a170f2",
  "rgb": {
    "r": 161,
    "g": 112,
    "b": 242
  },
  "hsl": {
    "h": 262.615,
    "s": 83.333,
    "l": 69.412
  },
  "oklch": {
    "l": 0.65402,
    "c": 0.18863,
    "h": 298.4
  },
  "luminance": 0.25576
}

Semantic roles & 50–950 ramp

primary
#A170F2
secondary
#E4F2CC
accent
#E0068E
background
#FCF9FF
surface
#F8F2FF
border
#D1CCD7
text
#130E17
muted
#827E85

Preview Lab

Preview with #A170F2

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

Preview Lab → · Contrast checker → · Palette generator →

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