#A87AF2#A87AF2

#A87AF2 is a light, vivid violet. Relative luminance 0.287; OKLCH L 67.7% C 0.175 H 299.4°. Best body text is #000000 at 6.73:1 contrast (WCAG AA passes).

Color values

HEX#A87AF2
RGBrgb(168, 122, 242)
HSLhsl(263, 82%, 71%)
HSVhsv(263, 50%, 95%)
CMYKcmyk(30.6%, 49.6%, 0%, 5.1%)
CIE-LABlab(60.48, 42.33, -54.06)
CIE-LCHlch(60.48, 68.66, 308.06°)
OKLaboklab(67.67% 0.0858 -0.1523)
OKLCHoklch(67.67% 0.175 299.4)
XYZxyz(39.1312, 28.6544, 87.4564)
Luminance0.2866 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A87AF2 #C4F27A
analogous
#7A88F2 #A87AF2 #E47AF2
triadic
#A87AF2 #F2A87A #7AF2A8
tetradic
#A87AF2 #F27A88 #C4F27A #7AF2E4
square
#A87AF2 #F27A88 #C4F27A #7AF2E4
split-complementary
#A87AF2 #F2E47A #88F27A
monochromatic
#6216DC #8442ED #A87AF2 #CCB2F7 #EDE3FC

Accessibility & contrast

On white

3.12
#A87AF2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.73
#A87AF2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #A87AF2
6.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A87AF2#FFFFFF#000000##000000
##A87AF21.003.126.736.73
#FFFFFF3.121.0021.0021.00
#0000006.7321.001.001.00
##0000006.7321.001.001.00

Color blindness preview

Protanopia (red-blind)
#5192F6
Deuteranopia (green-blind)
#5D91EF
Tritanopia (blue-blind)
#9991AB
Achromatopsia (no color)
#929292

Design tokens & code

CSS
--color: #a87af2;
/* rgb */ color: rgb(168, 122, 242);
/* oklch */ color: oklch(67.7% 0.175 299.4);
Tailwind
colors: {
  custom: {
    50: '#c5a1f7',
    500: '#a87af2',
    950: '#000000',
  },
}
SCSS
$custom: #a87af2;
$custom-light: #c5a1f7;
$custom-dark: #000000;
JSON
{
  "hex": "#a87af2",
  "rgb": {
    "r": 168,
    "g": 122,
    "b": 242
  },
  "hsl": {
    "h": 263,
    "s": 82.192,
    "l": 71.373
  },
  "oklch": {
    "l": 0.67671,
    "c": 0.17478,
    "h": 299.4
  },
  "luminance": 0.28655
}

Semantic roles & 50–950 ramp

primary
#A87AF2
secondary
#E8F3D4
accent
#DF078C
background
#FCFAFF
surface
#F8F3FF
border
#D1CDD7
text
#130F17
muted
#827F85

Preview Lab

Preview with #A87AF2

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

Preview Lab → · Contrast checker → · Palette generator →

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