#A28EF8#A28EF8

#A28EF8 is a light, vivid violet. Relative luminance 0.338; OKLCH L 70.9% C 0.152 H 290.7°. Best body text is #000000 at 7.76:1 contrast (WCAG AA passes).

Color values

HEX#A28EF8
RGBrgb(162, 142, 248)
HSLhsl(251, 88%, 76%)
HSVhsv(251, 43%, 97%)
CMYKcmyk(34.7%, 42.7%, 0%, 2.7%)
CIE-LABlab(64.81, 31.05, -50.52)
CIE-LCHlch(64.81, 59.30, 301.58°)
OKLaboklab(70.9% 0.0536 -0.1421)
OKLCHoklch(70.9% 0.152 290.7)
XYZxyz(41.5121, 33.8037, 93.1264)
Luminance0.3381 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A28EF8 #E4F88E
analogous
#8EAFF8 #A28EF8 #D78EF8
triadic
#A28EF8 #F8A28E #8EF8A2
tetradic
#A28EF8 #F88EAF #E4F88E #8EF8D7
square
#A28EF8 #F88EAF #E4F88E #8EF8D7
split-complementary
#A28EF8 #F8D78E #AFF88E
monochromatic
#431BF1 #7354F4 #A28EF8 #D1C8FC #E7E2FD

Accessibility & contrast

On white

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

On black

7.76
#A28EF8 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A28EF8
7.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A28EF8#FFFFFF#000000##000000
##A28EF81.002.717.767.76
#FFFFFF2.711.0021.0021.00
#0000007.7621.001.001.00
##0000007.7621.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #a28ef8;
/* rgb */ color: rgb(162, 142, 248);
/* oklch */ color: oklch(70.9% 0.152 290.7);
Tailwind
colors: {
  custom: {
    50: '#c0affb',
    500: '#a28ef8',
    950: '#000000',
  },
}
SCSS
$custom: #a28ef8;
$custom-light: #c0affb;
$custom-dark: #000000;
JSON
{
  "hex": "#a28ef8",
  "rgb": {
    "r": 162,
    "g": 142,
    "b": 248
  },
  "hsl": {
    "h": 251.321,
    "s": 88.333,
    "l": 76.471
  },
  "oklch": {
    "l": 0.70895,
    "c": 0.15187,
    "h": 290.7
  },
  "luminance": 0.33805
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #A28EF8

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

Preview Lab → · Contrast checker → · Palette generator →

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