#A28DFE#A28DFE

#A28DFE is a light, vivid violet. Relative luminance 0.339; OKLCH L 71.0% C 0.161 H 290.2°. Best body text is #000000 at 7.78:1 contrast (WCAG AA passes).

Color values

HEX#A28DFE
RGBrgb(162, 141, 254)
HSLhsl(251, 98%, 77%)
HSVhsv(251, 44%, 100%)
CMYKcmyk(36.2%, 44.5%, 0%, 0.4%)
CIE-LABlab(64.87, 33.19, -53.71)
CIE-LCHlch(64.87, 63.13, 301.71°)
OKLaboklab(71.04% 0.0558 -0.1514)
OKLCHoklch(71.04% 0.161 290.2)
XYZxyz(42.3098, 33.8858, 98.0581)
Luminance0.3389 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A28DFE #E9FE8D
analogous
#8DB1FE #A28DFE #DA8DFE
triadic
#A28DFE #FEA28D #8DFEA2
tetradic
#A28DFE #FE8DB1 #E9FE8D #8DFEDA
square
#A28DFE #FE8DB1 #E9FE8D #8DFEDA
split-complementary
#A28DFE #FEDA8D #B1FE8D
monochromatic
#3F14FD #7150FD #A28DFE #D3CAFF #E6E1FF

Accessibility & contrast

On white

2.70
#A28DFE on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.78
#A28DFE on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A28DFE
7.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A28DFE#FFFFFF#000000##000000
##A28DFE1.002.707.787.78
#FFFFFF2.701.0021.0021.00
#0000007.7821.001.001.00
##0000007.7821.001.001.00

Color blindness preview

Protanopia (red-blind)
#66A0FF
Deuteranopia (green-blind)
#679BFB
Tritanopia (blue-blind)
#8AA3B9
Achromatopsia (no color)
#9D9D9D

Design tokens & code

CSS
--color: #a28dfe;
/* rgb */ color: rgb(162, 141, 254);
/* oklch */ color: oklch(71.0% 0.161 290.2);
Tailwind
colors: {
  custom: {
    50: '#c1aeff',
    500: '#a28dfe',
    950: '#000000',
  },
}
SCSS
$custom: #a28dfe;
$custom-light: #c1aeff;
$custom-dark: #000000;
JSON
{
  "hex": "#a28dfe",
  "rgb": {
    "r": 162,
    "g": 141,
    "b": 254
  },
  "hsl": {
    "h": 251.15,
    "s": 98.261,
    "l": 77.451
  },
  "oklch": {
    "l": 0.71043,
    "c": 0.16133,
    "h": 290.2
  },
  "luminance": 0.33887
}

Semantic roles & 50–950 ramp

primary
#A28DFE
secondary
#F1F7D4
accent
#E600BB
background
#FCFAFF
surface
#F8F4FF
border
#D1CED7
text
#131018
muted
#827F86

Preview Lab

Preview with #A28DFE

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

Preview Lab → · Contrast checker → · Palette generator →

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