#A28AFB#A28AFB

#A28AFB is a light, vivid violet. Relative luminance 0.328; OKLCH L 70.3% C 0.162 H 291.4°. Best body text is #000000 at 7.56:1 contrast (WCAG AA passes).

Color values

HEX#A28AFB
RGBrgb(162, 138, 251)
HSLhsl(253, 93%, 76%)
HSVhsv(253, 45%, 98%)
CMYKcmyk(35.5%, 45%, 0%, 1.6%)
CIE-LABlab(64.02, 34.11, -53.42)
CIE-LCHlch(64.02, 63.38, 302.56°)
OKLaboklab(70.35% 0.0592 -0.1506)
OKLCHoklch(70.35% 0.162 291.4)
XYZxyz(41.3968, 32.8224, 95.4024)
Luminance0.3282 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A28AFB #E3FB8A
analogous
#8AABFB #A28AFB #DA8AFB
triadic
#A28AFB #FBA28A #8AFBA2
tetradic
#A28AFB #FB8AAB #E3FB8A #8AFBDA
square
#A28AFB #FB8AAB #E3FB8A #8AFBDA
split-complementary
#A28AFB #FBDA8A #ABFB8A
monochromatic
#4414F7 #734FF9 #A28AFB #D1C5FD #E7E1FE

Accessibility & contrast

On white

2.78
#A28AFB on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.56
#A28AFB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A28AFB
7.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A28AFB#FFFFFF#000000##000000
##A28AFB1.002.787.567.56
#FFFFFF2.781.0021.0021.00
#0000007.5621.001.001.00
##0000007.5621.001.001.00

Color blindness preview

Protanopia (red-blind)
#639DFF
Deuteranopia (green-blind)
#6699F8
Tritanopia (blue-blind)
#8CA0B6
Achromatopsia (no color)
#9B9B9B

Design tokens & code

CSS
--color: #a28afb;
/* rgb */ color: rgb(162, 138, 251);
/* oklch */ color: oklch(70.3% 0.162 291.4);
Tailwind
colors: {
  custom: {
    50: '#c1acfd',
    500: '#a28afb',
    950: '#000000',
  },
}
SCSS
$custom: #a28afb;
$custom-light: #c1acfd;
$custom-dark: #000000;
JSON
{
  "hex": "#a28afb",
  "rgb": {
    "r": 162,
    "g": 138,
    "b": 251
  },
  "hsl": {
    "h": 252.743,
    "s": 93.388,
    "l": 76.275
  },
  "oklch": {
    "l": 0.70348,
    "c": 0.16176,
    "h": 291.4
  },
  "luminance": 0.32823
}

Semantic roles & 50–950 ramp

primary
#A28AFB
secondary
#EFF6D5
accent
#E600B5
background
#FCFAFF
surface
#F8F4FF
border
#D1CED7
text
#131018
muted
#827F86

Preview Lab

Preview with #A28AFB

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

Preview Lab → · Contrast checker → · Palette generator →

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