#A28FEF#A28FEF

#A28FEF is a light, vivid violet. Relative luminance 0.336; OKLCH L 70.6% C 0.138 H 291.5°. Best body text is #000000 at 7.71:1 contrast (WCAG AA passes).

Color values

HEX#A28FEF
RGBrgb(162, 143, 239)
HSLhsl(252, 75%, 75%)
HSVhsv(252, 40%, 94%)
CMYKcmyk(32.2%, 40.2%, 0%, 6.3%)
CIE-LABlab(64.61, 28.17, -45.89)
CIE-LCHlch(64.61, 53.85, 301.54°)
OKLaboklab(70.6% 0.0508 -0.1286)
OKLCHoklch(70.6% 0.138 291.5)
XYZxyz(40.2987, 33.5575, 85.9987)
Luminance0.3356 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A28FEF #DCEF8F
analogous
#8FACEF #A28FEF #D28FEF
triadic
#A28FEF #EFA28F #8FEFA2
tetradic
#A28FEF #EF8FAC #DCEF8F #8FEFD2
square
#A28FEF #EF8FAC #DCEF8F #8FEFD2
split-complementary
#A28FEF #EFD28F #ACEF8F
monochromatic
#4924E0 #7659E7 #A28FEF #CEC5F7 #E9E4FB

Accessibility & contrast

On white

2.72
#A28FEF on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.71
#A28FEF on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A28FEF
7.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A28FEF#FFFFFF#000000##000000
##A28FEF1.002.727.717.71
#FFFFFF2.721.0021.0021.00
#0000007.7121.001.001.00
##0000007.7121.001.001.00

Color blindness preview

Protanopia (red-blind)
#729EF3
Deuteranopia (green-blind)
#739BED
Tritanopia (blue-blind)
#90A1B4
Achromatopsia (no color)
#9D9D9D

Design tokens & code

CSS
--color: #a28fef;
/* rgb */ color: rgb(162, 143, 239);
/* oklch */ color: oklch(70.6% 0.138 291.5);
Tailwind
colors: {
  custom: {
    50: '#c0b0f4',
    500: '#a28fef',
    950: '#000000',
  },
}
SCSS
$custom: #a28fef;
$custom-light: #c0b0f4;
$custom-dark: #000000;
JSON
{
  "hex": "#a28fef",
  "rgb": {
    "r": 162,
    "g": 143,
    "b": 239
  },
  "hsl": {
    "h": 251.875,
    "s": 75,
    "l": 74.902
  },
  "oklch": {
    "l": 0.70604,
    "c": 0.13827,
    "h": 291.5
  },
  "luminance": 0.33558
}

Semantic roles & 50–950 ramp

primary
#A28FEF
secondary
#EEF3D8
accent
#D70EAF
background
#FCFAFE
surface
#F8F4FD
border
#D1CED5
text
#121017
muted
#817F85

Preview Lab

Preview with #A28FEF

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

Preview Lab → · Contrast checker → · Palette generator →

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