#A287EB#A287EB

#A287EB is a light, vivid violet. Relative luminance 0.310; OKLCH L 69.0% C 0.145 H 294.7°. Best body text is #000000 at 7.20:1 contrast (WCAG AA passes).

Color values

HEX#A287EB
RGBrgb(162, 135, 235)
HSLhsl(256, 71%, 73%)
HSVhsv(256, 43%, 92%)
CMYKcmyk(31.1%, 42.6%, 0%, 7.8%)
CIE-LABlab(62.51, 31.71, -46.99)
CIE-LCHlch(62.51, 56.69, 304.01°)
OKLaboklab(68.95% 0.0607 -0.1318)
OKLCHoklch(68.95% 0.145 294.7)
XYZxyz(38.5559, 31.0069, 82.5347)
Luminance0.3101 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A287EB #D0EB87
analogous
#879EEB #A287EB #D487EB
triadic
#A287EB #EBA287 #87EBA2
tetradic
#A287EB #EB879E #D0EB87 #87EBD4
square
#A287EB #EB879E #D0EB87 #87EBD4
split-complementary
#A287EB #EBD487 #9EEB87
monochromatic
#5323D4 #7953E2 #A287EB #CBBBF4 #EBE5FB

Accessibility & contrast

On white

2.92
#A287EB on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.20
#A287EB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A287EB
7.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A287EB#FFFFFF#000000##000000
##A287EB1.002.927.207.20
#FFFFFF2.921.0021.0021.00
#0000007.2021.001.001.00
##0000007.2021.001.001.00

Color blindness preview

Protanopia (red-blind)
#6998EF
Deuteranopia (green-blind)
#6D96E9
Tritanopia (blue-blind)
#9299AE
Achromatopsia (no color)
#979797

Design tokens & code

CSS
--color: #a287eb;
/* rgb */ color: rgb(162, 135, 235);
/* oklch */ color: oklch(69.0% 0.145 294.7);
Tailwind
colors: {
  custom: {
    50: '#c0aaf2',
    500: '#a287eb',
    950: '#000000',
  },
}
SCSS
$custom: #a287eb;
$custom-light: #c0aaf2;
$custom-dark: #000000;
JSON
{
  "hex": "#a287eb",
  "rgb": {
    "r": 162,
    "g": 135,
    "b": 235
  },
  "hsl": {
    "h": 256.2,
    "s": 71.429,
    "l": 72.549
  },
  "oklch": {
    "l": 0.68953,
    "c": 0.14511,
    "h": 294.7
  },
  "luminance": 0.31007
}

Semantic roles & 50–950 ramp

primary
#A287EB
secondary
#EBF2D9
accent
#D3129F
background
#FCFAFE
surface
#F8F4FD
border
#D1CED5
text
#121017
muted
#817F85

Preview Lab

Preview with #A287EB

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

Preview Lab → · Contrast checker → · Palette generator →

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