#A252DC#A252DC

#A252DC is a mid, highly saturated violet. Relative luminance 0.189; OKLCH L 59.8% C 0.207 H 308.0°. Best body text is #000000 at 4.78:1 contrast (WCAG AA passes).

Color values

HEX#A252DC
RGBrgb(162, 82, 220)
HSLhsl(275, 66%, 59%)
HSVhsv(275, 63%, 86%)
CMYKcmyk(26.4%, 62.7%, 0%, 13.7%)
CIE-LABlab(50.55, 56.70, -57.64)
CIE-LCHlch(50.55, 80.85, 314.53°)
OKLaboklab(59.83% 0.1274 -0.1628)
OKLCHoklch(59.83% 0.207 308)
XYZxyz(30.8332, 18.8837, 69.7169)
Luminance0.1888 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A252DC #8CDC52
analogous
#5D52DC #A252DC #DC52D1
triadic
#A252DC #DCA252 #52DCA2
tetradic
#A252DC #DC5D52 #8CDC52 #52D1DC
square
#A252DC #DC5D52 #8CDC52 #52D1DC
split-complementary
#A252DC #D1DC52 #52DC5D
monochromatic
#631E95 #8529C8 #A252DC #BD85E6 #D9B8F1

Accessibility & contrast

On white

4.40
#A252DC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.78
#A252DC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #A252DC
4.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A252DC#FFFFFF#000000##000000
##A252DC1.004.404.784.78
#FFFFFF4.401.0021.0021.00
#0000004.7821.001.001.00
##0000004.7821.001.001.00

Color blindness preview

Protanopia (red-blind)
#0075E0
Deuteranopia (green-blind)
#3A79D9
Tritanopia (blue-blind)
#996E90
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #a252dc;
/* rgb */ color: rgb(162, 82, 220);
/* oklch */ color: oklch(59.8% 0.207 308.0);
Tailwind
colors: {
  custom: {
    50: '#c187e8',
    500: '#a252dc',
    950: '#000000',
  },
}
SCSS
$custom: #a252dc;
$custom-light: #c187e8;
$custom-dark: #000000;
JSON
{
  "hex": "#a252dc",
  "rgb": {
    "r": 162,
    "g": 82,
    "b": 220
  },
  "hsl": {
    "h": 274.783,
    "s": 66.346,
    "l": 59.216
  },
  "oklch": {
    "l": 0.59825,
    "c": 0.20672,
    "h": 308
  },
  "luminance": 0.18883
}

Semantic roles & 50–950 ramp

primary
#A252DC
secondary
#C1E0AA
accent
#E93F86
background
#FCF8FE
surface
#F8F0FD
border
#D1CBD5
text
#130C16
muted
#827D84

Preview Lab

Preview with #A252DC

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

Preview Lab → · Contrast checker → · Palette generator →

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