#A287FA#A287FA

#A287FA is a light, vivid violet. Relative luminance 0.319; OKLCH L 69.8% C 0.165 H 292.4°. Best body text is #000000 at 7.38:1 contrast (WCAG AA passes).

Color values

HEX#A287FA
RGBrgb(162, 135, 250)
HSLhsl(254, 92%, 75%)
HSVhsv(254, 46%, 98%)
CMYKcmyk(35.2%, 46%, 0%, 2%)
CIE-LABlab(63.27, 35.55, -54.06)
CIE-LCHlch(63.27, 64.70, 303.33°)
OKLaboklab(69.77% 0.0628 -0.1524)
OKLCHoklch(69.77% 0.165 292.4)
XYZxyz(40.8151, 31.9105, 94.4329)
Luminance0.3191 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A287FA #DFFA87
analogous
#87A5FA #A287FA #DB87FA
triadic
#A287FA #FAA287 #87FAA2
tetradic
#A287FA #FA87A5 #DFFA87 #87FADB
square
#A287FA #FA87A5 #DFFA87 #87FADB
split-complementary
#A287FA #FADB87 #A5FA87
monochromatic
#4711F5 #744CF8 #A287FA #D0C2FC #E8E2FE

Accessibility & contrast

On white

2.84
#A287FA on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.38
#A287FA on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A287FA
7.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A287FA#FFFFFF#000000##000000
##A287FA1.002.847.387.38
#FFFFFF2.841.0021.0021.00
#0000007.3821.001.001.00
##0000007.3821.001.001.00

Color blindness preview

Protanopia (red-blind)
#5F9BFE
Deuteranopia (green-blind)
#6297F7
Tritanopia (blue-blind)
#8C9DB5
Achromatopsia (no color)
#999999

Design tokens & code

CSS
--color: #a287fa;
/* rgb */ color: rgb(162, 135, 250);
/* oklch */ color: oklch(69.8% 0.165 292.4);
Tailwind
colors: {
  custom: {
    50: '#c1aafc',
    500: '#a287fa',
    950: '#000000',
  },
}
SCSS
$custom: #a287fa;
$custom-light: #c1aafc;
$custom-dark: #000000;
JSON
{
  "hex": "#a287fa",
  "rgb": {
    "r": 162,
    "g": 135,
    "b": 250
  },
  "hsl": {
    "h": 254.087,
    "s": 92,
    "l": 75.49
  },
  "oklch": {
    "l": 0.69768,
    "c": 0.16487,
    "h": 292.4
  },
  "luminance": 0.31911
}

Semantic roles & 50–950 ramp

primary
#A287FA
secondary
#EEF6D5
accent
#E600B0
background
#FCFAFF
surface
#F8F4FF
border
#D1CED7
text
#131017
muted
#827F85

Preview Lab

Preview with #A287FA

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

Preview Lab → · Contrast checker → · Palette generator →

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