#A28EF2#A28EF2

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

Color values

HEX#A28EF2
RGBrgb(162, 142, 242)
HSLhsl(252, 79%, 75%)
HSVhsv(252, 41%, 95%)
CMYKcmyk(33.1%, 41.3%, 0%, 5.1%)
CIE-LABlab(64.51, 29.51, -47.69)
CIE-LCHlch(64.51, 56.08, 301.74°)
OKLaboklab(70.58% 0.0526 -0.1338)
OKLCHoklch(70.58% 0.144 291.5)
XYZxyz(40.5961, 33.4373, 88.3024)
Luminance0.3344 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A28EF2 #DEF28E
analogous
#8EACF2 #A28EF2 #D48EF2
triadic
#A28EF2 #F2A28E #8EF2A2
tetradic
#A28EF2 #F28EAC #DEF28E #8EF2D4
square
#A28EF2 #F28EAC #DEF28E #8EF2D4
split-complementary
#A28EF2 #F2D48E #ACF28E
monochromatic
#4820E5 #7557EC #A28EF2 #CFC5F8 #E8E4FC

Accessibility & contrast

On white

2.73
#A28EF2 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.69
#A28EF2 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A28EF2
7.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A28EF2#FFFFFF#000000##000000
##A28EF21.002.737.697.69
#FFFFFF2.731.0021.0021.00
#0000007.6921.001.001.00
##0000007.6921.001.001.00

Color blindness preview

Protanopia (red-blind)
#6F9EF6
Deuteranopia (green-blind)
#709AF0
Tritanopia (blue-blind)
#8FA1B4
Achromatopsia (no color)
#9C9C9C

Design tokens & code

CSS
--color: #a28ef2;
/* rgb */ color: rgb(162, 142, 242);
/* oklch */ color: oklch(70.6% 0.144 291.5);
Tailwind
colors: {
  custom: {
    50: '#c0aff7',
    500: '#a28ef2',
    950: '#000000',
  },
}
SCSS
$custom: #a28ef2;
$custom-light: #c0aff7;
$custom-dark: #000000;
JSON
{
  "hex": "#a28ef2",
  "rgb": {
    "r": 162,
    "g": 142,
    "b": 242
  },
  "hsl": {
    "h": 252,
    "s": 79.365,
    "l": 75.294
  },
  "oklch": {
    "l": 0.70578,
    "c": 0.14382,
    "h": 291.5
  },
  "luminance": 0.33438
}

Semantic roles & 50–950 ramp

primary
#A28EF2
secondary
#EEF4D7
accent
#DC0AB2
background
#FCFAFF
surface
#F8F4FE
border
#D1CED6
text
#121017
muted
#817F85

Preview Lab

Preview with #A28EF2

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

Preview Lab → · Contrast checker → · Palette generator →

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