#A28CF7#A28CF7

#A28CF7 is a light, vivid violet. Relative luminance 0.332; OKLCH L 70.5% C 0.154 H 291.4°. Best body text is #000000 at 7.63:1 contrast (WCAG AA passes).

Color values

HEX#A28CF7
RGBrgb(162, 140, 247)
HSLhsl(252, 87%, 76%)
HSVhsv(252, 43%, 97%)
CMYKcmyk(34.4%, 43.3%, 0%, 3.1%)
CIE-LABlab(64.28, 31.93, -50.80)
CIE-LCHlch(64.28, 60.00, 302.15°)
OKLaboklab(70.48% 0.056 -0.1429)
OKLCHoklch(70.48% 0.154 291.4)
XYZxyz(41.0625, 33.1520, 92.2132)
Luminance0.3315 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A28CF7 #E1F78C
analogous
#8CABF7 #A28CF7 #D78CF7
triadic
#A28CF7 #F7A28C #8CF7A2
tetradic
#A28CF7 #F78CAB #E1F78C #8CF7D7
square
#A28CF7 #F78CAB #E1F78C #8CF7D7
split-complementary
#A28CF7 #F7D78C #ABF78C
monochromatic
#451AEF #7453F3 #A28CF7 #D0C5FB #E8E2FD

Accessibility & contrast

On white

2.75
#A28CF7 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.63
#A28CF7 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A28CF7
7.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A28CF7#FFFFFF#000000##000000
##A28CF71.002.757.637.63
#FFFFFF2.751.0021.0021.00
#0000007.6321.001.001.00
##0000007.6321.001.001.00

Color blindness preview

Protanopia (red-blind)
#699EFB
Deuteranopia (green-blind)
#6B9AF4
Tritanopia (blue-blind)
#8DA0B6
Achromatopsia (no color)
#9C9C9C

Design tokens & code

CSS
--color: #a28cf7;
/* rgb */ color: rgb(162, 140, 247);
/* oklch */ color: oklch(70.5% 0.154 291.4);
Tailwind
colors: {
  custom: {
    50: '#c0aefa',
    500: '#a28cf7',
    950: '#000000',
  },
}
SCSS
$custom: #a28cf7;
$custom-light: #c0aefa;
$custom-dark: #000000;
JSON
{
  "hex": "#a28cf7",
  "rgb": {
    "r": 162,
    "g": 140,
    "b": 247
  },
  "hsl": {
    "h": 252.336,
    "s": 86.992,
    "l": 75.882
  },
  "oklch": {
    "l": 0.70484,
    "c": 0.15351,
    "h": 291.4
  },
  "luminance": 0.33153
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #A28CF7

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

Preview Lab → · Contrast checker → · Palette generator →

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