#A287FE#A287FE

#A287FE is a light, vivid violet. Relative luminance 0.322; OKLCH L 70.0% C 0.170 H 291.8°. Best body text is #000000 at 7.43:1 contrast (WCAG AA passes).

Color values

HEX#A287FE
RGBrgb(162, 135, 254)
HSLhsl(254, 98%, 76%)
HSVhsv(254, 47%, 100%)
CMYKcmyk(36.2%, 46.9%, 0%, 0.4%)
CIE-LABlab(63.48, 36.59, -55.92)
CIE-LCHlch(63.48, 66.82, 303.20°)
OKLaboklab(69.99% 0.0633 -0.1579)
OKLCHoklch(69.99% 0.17 291.8)
XYZxyz(41.4489, 32.1641, 97.7712)
Luminance0.3216 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A287FE #E3FE87
analogous
#87A8FE #A287FE #DD87FE
triadic
#A287FE #FEA287 #87FEA2
tetradic
#A287FE #FE87A8 #E3FE87 #87FEDD
square
#A287FE #FE87A8 #E3FE87 #87FEDD
split-complementary
#A287FE #FEDD87 #A8FE87
monochromatic
#440EFD #734AFD #A287FE #D1C4FF #E7E1FF

Accessibility & contrast

On white

2.83
#A287FE on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.43
#A287FE on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A287FE
7.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A287FE#FFFFFF#000000##000000
##A287FE1.002.837.437.43
#FFFFFF2.831.0021.0021.00
#0000007.4321.001.001.00
##0000007.4321.001.001.00

Color blindness preview

Protanopia (red-blind)
#5C9CFF
Deuteranopia (green-blind)
#5F97FB
Tritanopia (blue-blind)
#8B9EB6
Achromatopsia (no color)
#9A9A9A

Design tokens & code

CSS
--color: #a287fe;
/* rgb */ color: rgb(162, 135, 254);
/* oklch */ color: oklch(70.0% 0.170 291.8);
Tailwind
colors: {
  custom: {
    50: '#c1aaff',
    500: '#a287fe',
    950: '#000000',
  },
}
SCSS
$custom: #a287fe;
$custom-light: #c1aaff;
$custom-dark: #000000;
JSON
{
  "hex": "#a287fe",
  "rgb": {
    "r": 162,
    "g": 135,
    "b": 254
  },
  "hsl": {
    "h": 253.613,
    "s": 98.347,
    "l": 76.275
  },
  "oklch": {
    "l": 0.69993,
    "c": 0.17008,
    "h": 291.8
  },
  "luminance": 0.32165
}

Semantic roles & 50–950 ramp

primary
#A287FE
secondary
#EFF7D4
accent
#E600B1
background
#FCFAFF
surface
#F8F4FF
border
#D1CED7
text
#131018
muted
#827F86

Preview Lab

Preview with #A287FE

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

Preview Lab → · Contrast checker → · Palette generator →

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