#A28CD7#A28CD7

#A28CD7 is a light, moderate violet. Relative luminance 0.313; OKLCH L 68.9% C 0.110 H 296.9°. Best body text is #000000 at 7.27:1 contrast (WCAG AA passes).

Color values

HEX#A28CD7
RGBrgb(162, 140, 215)
HSLhsl(258, 48%, 70%)
HSVhsv(258, 35%, 84%)
CMYKcmyk(24.7%, 34.9%, 0%, 15.7%)
CIE-LABlab(62.80, 23.93, -35.43)
CIE-LCHlch(62.80, 42.76, 304.03°)
OKLaboklab(68.87% 0.0499 -0.0984)
OKLCHoklch(68.87% 0.11 296.9)
XYZxyz(36.5413, 31.3435, 68.4016)
Luminance0.3134 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A28CD7 #C1D78C
analogous
#8C9CD7 #A28CD7 #C88CD7
triadic
#A28CD7 #D7A28C #8CD7A2
tetradic
#A28CD7 #D78C9C #C1D78C #8CD7C8
square
#A28CD7 #D78C9C #C1D78C #8CD7C8
split-complementary
#A28CD7 #D7C88C #9CD78C
monochromatic
#5D3CAD #7D5FC7 #A28CD7 #C7B9E7 #EBE7F7

Accessibility & contrast

On white

2.89
#A28CD7 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.27
#A28CD7 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A28CD7
7.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A28CD7#FFFFFF#000000##000000
##A28CD71.002.897.277.27
#FFFFFF2.891.0021.0021.00
#0000007.2721.001.001.00
##0000007.2721.001.001.00

Color blindness preview

Protanopia (red-blind)
#7998DA
Deuteranopia (green-blind)
#7D97D5
Tritanopia (blue-blind)
#9898A8
Achromatopsia (no color)
#989898

Design tokens & code

CSS
--color: #a28cd7;
/* rgb */ color: rgb(162, 140, 215);
/* oklch */ color: oklch(68.9% 0.110 296.9);
Tailwind
colors: {
  custom: {
    50: '#bfade3',
    500: '#a28cd7',
    950: '#000000',
  },
}
SCSS
$custom: #a28cd7;
$custom-light: #bfade3;
$custom-dark: #000000;
JSON
{
  "hex": "#a28cd7",
  "rgb": {
    "r": 162,
    "g": 140,
    "b": 215
  },
  "hsl": {
    "h": 257.6,
    "s": 48.387,
    "l": 69.608
  },
  "oklch": {
    "l": 0.68867,
    "c": 0.11029,
    "h": 296.9
  },
  "luminance": 0.31344
}

Semantic roles & 50–950 ramp

primary
#A28CD7
secondary
#E4EAD5
accent
#BC2A91
background
#FBFAFD
surface
#F7F4FB
border
#D0CED4
text
#121015
muted
#817F83

Preview Lab

Preview with #A28CD7

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

Preview Lab → · Contrast checker → · Palette generator →

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