#A28EF7#A28EF7

#A28EF7 is a light, vivid violet. Relative luminance 0.337; OKLCH L 70.8% C 0.151 H 290.8°. Best body text is #000000 at 7.75:1 contrast (WCAG AA passes).

Color values

HEX#A28EF7
RGBrgb(162, 142, 247)
HSLhsl(251, 87%, 76%)
HSVhsv(251, 43%, 97%)
CMYKcmyk(34.4%, 42.5%, 0%, 3.1%)
CIE-LABlab(64.76, 30.79, -50.05)
CIE-LCHlch(64.76, 58.77, 301.60°)
OKLaboklab(70.84% 0.0534 -0.1407)
OKLCHoklch(70.84% 0.151 290.8)
XYZxyz(41.3574, 33.7418, 92.3115)
Luminance0.3374 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A28EF7 #E3F78E
analogous
#8EAFF7 #A28EF7 #D78EF7
triadic
#A28EF7 #F7A28E #8EF7A2
tetradic
#A28EF7 #F78EAF #E3F78E #8EF7D7
square
#A28EF7 #F78EAF #E3F78E #8EF7D7
split-complementary
#A28EF7 #F7D78E #AFF78E
monochromatic
#441CEF #7355F3 #A28EF7 #D1C7FB #E7E2FD

Accessibility & contrast

On white

2.71
#A28EF7 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.75
#A28EF7 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A28EF7
7.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A28EF7#FFFFFF#000000##000000
##A28EF71.002.717.757.75
#FFFFFF2.711.0021.0021.00
#0000007.7521.001.001.00
##0000007.7521.001.001.00

Color blindness preview

Protanopia (red-blind)
#6C9FFB
Deuteranopia (green-blind)
#6D9BF4
Tritanopia (blue-blind)
#8DA2B7
Achromatopsia (no color)
#9D9D9D

Design tokens & code

CSS
--color: #a28ef7;
/* rgb */ color: rgb(162, 142, 247);
/* oklch */ color: oklch(70.8% 0.151 290.8);
Tailwind
colors: {
  custom: {
    50: '#c0affa',
    500: '#a28ef7',
    950: '#000000',
  },
}
SCSS
$custom: #a28ef7;
$custom-light: #c0affa;
$custom-dark: #000000;
JSON
{
  "hex": "#a28ef7",
  "rgb": {
    "r": 162,
    "g": 142,
    "b": 247
  },
  "hsl": {
    "h": 251.429,
    "s": 86.777,
    "l": 76.275
  },
  "oklch": {
    "l": 0.70842,
    "c": 0.15053,
    "h": 290.8
  },
  "luminance": 0.33743
}

Semantic roles & 50–950 ramp

primary
#A28EF7
secondary
#EFF5D6
accent
#E302B8
background
#FCFAFF
surface
#F8F4FF
border
#D1CED7
text
#131017
muted
#827F85

Preview Lab

Preview with #A28EF7

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

Preview Lab → · Contrast checker → · Palette generator →

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