#A28EC7#A28EC7

#A28EC7 is a light, moderate violet. Relative luminance 0.312; OKLCH L 68.5% C 0.085 H 300.3°. Best body text is #000000 at 7.23:1 contrast (WCAG AA passes).

Color values

HEX#A28EC7
RGBrgb(162, 142, 199)
HSLhsl(261, 34%, 67%)
HSVhsv(261, 29%, 78%)
CMYKcmyk(18.6%, 28.6%, 0%, 22%)
CIE-LABlab(62.63, 19.03, -26.73)
CIE-LCHlch(62.63, 32.81, 305.44°)
OKLaboklab(68.53% 0.0429 -0.0735)
OKLCHoklch(68.53% 0.085 300.3)
XYZxyz(34.8799, 31.1508, 58.1969)
Luminance0.3115 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A28EC7 #B3C78E
analogous
#8E97C7 #A28EC7 #BF8EC7
triadic
#A28EC7 #C7A28E #8EC7A2
tetradic
#A28EC7 #C78E97 #B3C78E #8EC7BF
square
#A28EC7 #C78E97 #B3C78E #8EC7BF
split-complementary
#A28EC7 #C7BF8E #97C78E
monochromatic
#624892 #8065B3 #A28EC7 #C4B7DB #E5E0F0

Accessibility & contrast

On white

2.90
#A28EC7 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.23
#A28EC7 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A28EC7
7.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A28EC7#FFFFFF#000000##000000
##A28EC71.002.907.237.23
#FFFFFF2.901.0021.0021.00
#0000007.2321.001.001.00
##0000007.2321.001.001.00

Color blindness preview

Protanopia (red-blind)
#8297C9
Deuteranopia (green-blind)
#8597C5
Tritanopia (blue-blind)
#9C97A2
Achromatopsia (no color)
#979797

Design tokens & code

CSS
--color: #a28ec7;
/* rgb */ color: rgb(162, 142, 199);
/* oklch */ color: oklch(68.5% 0.085 300.3);
Tailwind
colors: {
  custom: {
    50: '#beafd8',
    500: '#a28ec7',
    950: '#000000',
  },
}
SCSS
$custom: #a28ec7;
$custom-light: #beafd8;
$custom-dark: #000000;
JSON
{
  "hex": "#a28ec7",
  "rgb": {
    "r": 162,
    "g": 142,
    "b": 199
  },
  "hsl": {
    "h": 261.053,
    "s": 33.728,
    "l": 66.863
  },
  "oklch": {
    "l": 0.68527,
    "c": 0.08509,
    "h": 300.3
  },
  "luminance": 0.31151
}

Semantic roles & 50–950 ramp

primary
#A28EC7
secondary
#DBE2CF
accent
#AD3984
background
#FBFAFD
surface
#F7F4FA
border
#D0CED3
text
#121014
muted
#817F83

Preview Lab

Preview with #A28EC7

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

Preview Lab → · Contrast checker → · Palette generator →

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