#A252CC#A252CC

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

Color values

HEX#A252CC
RGBrgb(162, 82, 204)
HSLhsl(279, 54%, 56%)
HSVhsv(279, 60%, 80%)
CMYKcmyk(20.6%, 59.8%, 0%, 20%)
CIE-LABlab(49.59, 53.18, -50.05)
CIE-LCHlch(49.59, 73.03, 316.74°)
OKLaboklab(58.82% 0.1277 -0.1406)
OKLCHoklch(58.82% 0.19 312.2)
XYZxyz(28.8147, 18.0763, 59.0862)
Luminance0.1808 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A252CC #7CCC52
analogous
#6552CC #A252CC #CC52B9
triadic
#A252CC #CCA252 #52CCA2
tetradic
#A252CC #CC6552 #7CCC52 #52B9CC
square
#A252CC #CC6552 #7CCC52 #52B9CC
split-complementary
#A252CC #B9CC52 #52CC65
monochromatic
#60257E #8333AE #A252CC #BB81DA #D5B1E8

Accessibility & contrast

On white

4.55
#A252CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##A252CC#FFFFFF#000000##000000
##A252CC1.004.554.624.62
#FFFFFF4.551.0021.0021.00
#0000004.6221.001.001.00
##0000004.6221.001.001.00

Color blindness preview

Protanopia (red-blind)
#2772D0
Deuteranopia (green-blind)
#4A78C9
Tritanopia (blue-blind)
#9D6887
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #a252cc;
/* rgb */ color: rgb(162, 82, 204);
/* oklch */ color: oklch(58.8% 0.190 312.2);
Tailwind
colors: {
  custom: {
    50: '#c187dc',
    500: '#a252cc',
    950: '#000000',
  },
}
SCSS
$custom: #a252cc;
$custom-light: #c187dc;
$custom-dark: #000000;
JSON
{
  "hex": "#a252cc",
  "rgb": {
    "r": 162,
    "g": 82,
    "b": 204
  },
  "hsl": {
    "h": 279.344,
    "s": 54.464,
    "l": 56.078
  },
  "oklch": {
    "l": 0.58818,
    "c": 0.18993,
    "h": 312.2
  },
  "luminance": 0.18076
}

Semantic roles & 50–950 ramp

primary
#A252CC
secondary
#B5D6A4
accent
#DE4A7D
background
#FCF8FD
surface
#F8F0FB
border
#D1CBD4
text
#130B15
muted
#827C83

Preview Lab

Preview with #A252CC

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

Preview Lab → · Contrast checker → · Palette generator →

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