#A252CD#A252CD

#A252CD is a mid, vivid violet. Relative luminance 0.181; OKLCH L 58.9% C 0.191 H 312.0°. Best body text is #000000 at 4.62:1 contrast (WCAG AA passes).

Color values

HEX#A252CD
RGBrgb(162, 82, 205)
HSLhsl(279, 55%, 56%)
HSVhsv(279, 60%, 80%)
CMYKcmyk(21%, 60%, 0%, 19.6%)
CIE-LABlab(49.65, 53.40, -50.53)
CIE-LCHlch(49.65, 73.51, 316.58°)
OKLaboklab(58.88% 0.1277 -0.142)
OKLCHoklch(58.88% 0.191 312)
XYZxyz(28.9351, 18.1245, 59.7199)
Luminance0.1812 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A252CD #7DCD52
analogous
#6552CD #A252CD #CD52BB
triadic
#A252CD #CDA252 #52CDA2
tetradic
#A252CD #CD6552 #7DCD52 #52BBCD
square
#A252CD #CD6552 #7DCD52 #52BBCD
split-complementary
#A252CD #BBCD52 #52CD65
monochromatic
#602580 #8433AF #A252CD #BC81DB #D5B1E8

Accessibility & contrast

On white

4.54
#A252CD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.62
#A252CD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #A252CD
4.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A252CD#FFFFFF#000000##000000
##A252CD1.004.544.624.62
#FFFFFF4.541.0021.0021.00
#0000004.6221.001.001.00
##0000004.6221.001.001.00

Color blindness preview

Protanopia (red-blind)
#2572D1
Deuteranopia (green-blind)
#4978CA
Tritanopia (blue-blind)
#9D6988
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #a252cd;
/* rgb */ color: rgb(162, 82, 205);
/* oklch */ color: oklch(58.9% 0.191 312.0);
Tailwind
colors: {
  custom: {
    50: '#c187dd',
    500: '#a252cd',
    950: '#000000',
  },
}
SCSS
$custom: #a252cd;
$custom-light: #c187dd;
$custom-dark: #000000;
JSON
{
  "hex": "#a252cd",
  "rgb": {
    "r": 162,
    "g": 82,
    "b": 205
  },
  "hsl": {
    "h": 279.024,
    "s": 55.157,
    "l": 56.275
  },
  "oklch": {
    "l": 0.58879,
    "c": 0.19097,
    "h": 312
  },
  "luminance": 0.18124
}

Semantic roles & 50–950 ramp

primary
#A252CD
secondary
#B6D7A4
accent
#DE497D
background
#FCF8FD
surface
#F8F0FB
border
#D1CBD4
text
#130B15
muted
#827C83

Preview Lab

Preview with #A252CD

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

Preview Lab → · Contrast checker → · Palette generator →

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