#A852EB#A852EB

#A852EB is a mid, highly saturated violet. Relative luminance 0.204; OKLCH L 61.5% C 0.224 H 306.8°. Best body text is #000000 at 5.07:1 contrast (WCAG AA passes).

Color values

HEX#A852EB
RGBrgb(168, 82, 235)
HSLhsl(274, 79%, 62%)
HSVhsv(274, 65%, 92%)
CMYKcmyk(28.5%, 65.1%, 0%, 7.8%)
CIE-LABlab(52.24, 61.35, -63.35)
CIE-LCHlch(52.24, 88.19, 314.08°)
OKLaboklab(61.51% 0.134 -0.1794)
OKLCHoklch(61.51% 0.224 306.8)
XYZxyz(34.1580, 20.3580, 80.7112)
Luminance0.2036 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A852EB #95EB52
analogous
#5B52EB #A852EB #EB52E2
triadic
#A852EB #EBA852 #52EBA8
tetradic
#A852EB #EB5B52 #95EB52 #52E2EB
square
#A852EB #EB5B52 #95EB52 #52E2EB
split-complementary
#A852EB #E2EB52 #52EB5B
monochromatic
#6B14AE #8C1BE5 #A852EB #C489F1 #DFC0F8

Accessibility & contrast

On white

4.14
#A852EB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.07
#A852EB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #A852EB
5.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A852EB#FFFFFF#000000##000000
##A852EB1.004.145.075.07
#FFFFFF4.141.0021.0021.00
#0000005.0721.001.001.00
##0000005.0721.001.001.00

Color blindness preview

Protanopia (red-blind)
#007AF0
Deuteranopia (green-blind)
#2E7DE8
Tritanopia (blue-blind)
#9D7398
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #a852eb;
/* rgb */ color: rgb(168, 82, 235);
/* oklch */ color: oklch(61.5% 0.224 306.8);
Tailwind
colors: {
  custom: {
    50: '#c688f2',
    500: '#a852eb',
    950: '#000000',
  },
}
SCSS
$custom: #a852eb;
$custom-light: #c688f2;
$custom-dark: #000000;
JSON
{
  "hex": "#a852eb",
  "rgb": {
    "r": 168,
    "g": 82,
    "b": 235
  },
  "hsl": {
    "h": 273.725,
    "s": 79.275,
    "l": 62.157
  },
  "oklch": {
    "l": 0.61506,
    "c": 0.22395,
    "h": 306.8
  },
  "luminance": 0.20358
}

Semantic roles & 50–950 ramp

primary
#A852EB
secondary
#C9E8B0
accent
#DC0A66
background
#FCF8FE
surface
#F9F0FD
border
#D2CBD5
text
#130C17
muted
#827D85

Preview Lab

Preview with #A852EB

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

Preview Lab → · Contrast checker → · Palette generator →

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