#A28AF2#A28AF2

#A28AF2 is a light, vivid violet. Relative luminance 0.323; OKLCH L 69.9% C 0.150 H 292.7°. Best body text is #000000 at 7.45:1 contrast (WCAG AA passes).

Color values

HEX#A28AF2
RGBrgb(162, 138, 242)
HSLhsl(254, 80%, 75%)
HSVhsv(254, 43%, 95%)
CMYKcmyk(33.1%, 43%, 0%, 5.1%)
CIE-LABlab(63.56, 31.78, -49.19)
CIE-LCHlch(63.56, 58.57, 302.87°)
OKLaboklab(69.86% 0.0579 -0.1382)
OKLCHoklch(69.86% 0.15 292.7)
XYZxyz(40.0117, 32.2683, 88.1075)
Luminance0.3227 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A28AF2 #DAF28A
analogous
#8AA6F2 #A28AF2 #D68AF2
triadic
#A28AF2 #F2A28A #8AF2A2
tetradic
#A28AF2 #F28AA6 #DAF28A #8AF2D6
square
#A28AF2 #F28AA6 #DAF28A #8AF2D6
split-complementary
#A28AF2 #F2D68A #A6F28A
monochromatic
#4A1CE6 #7653EC #A28AF2 #CEC1F8 #E9E3FC

Accessibility & contrast

On white

2.82
#A28AF2 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.45
#A28AF2 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A28AF2
7.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A28AF2#FFFFFF#000000##000000
##A28AF21.002.827.457.45
#FFFFFF2.821.0021.0021.00
#0000007.4521.001.001.00
##0000007.4521.001.001.00

Color blindness preview

Protanopia (red-blind)
#699BF6
Deuteranopia (green-blind)
#6C98EF
Tritanopia (blue-blind)
#8F9DB2
Achromatopsia (no color)
#9A9A9A

Design tokens & code

CSS
--color: #a28af2;
/* rgb */ color: rgb(162, 138, 242);
/* oklch */ color: oklch(69.9% 0.150 292.7);
Tailwind
colors: {
  custom: {
    50: '#c0acf7',
    500: '#a28af2',
    950: '#000000',
  },
}
SCSS
$custom: #a28af2;
$custom-light: #c0acf7;
$custom-dark: #000000;
JSON
{
  "hex": "#a28af2",
  "rgb": {
    "r": 162,
    "g": 138,
    "b": 242
  },
  "hsl": {
    "h": 253.846,
    "s": 80,
    "l": 74.51
  },
  "oklch": {
    "l": 0.69859,
    "c": 0.14984,
    "h": 292.7
  },
  "luminance": 0.32269
}

Semantic roles & 50–950 ramp

primary
#A28AF2
secondary
#EDF4D7
accent
#DC09AC
background
#FCFAFF
surface
#F8F4FF
border
#D1CED7
text
#121017
muted
#817F85

Preview Lab

Preview with #A28AF2

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

Preview Lab → · Contrast checker → · Palette generator →

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