#A252DD#A252DD

#A252DD is a mid, highly saturated violet. Relative luminance 0.189; OKLCH L 59.9% C 0.208 H 307.8°. Best body text is #000000 at 4.79:1 contrast (WCAG AA passes).

Color values

HEX#A252DD
RGBrgb(162, 82, 221)
HSLhsl(275, 67%, 59%)
HSVhsv(275, 63%, 87%)
CMYKcmyk(26.7%, 62.9%, 0%, 13.3%)
CIE-LABlab(50.61, 56.92, -58.11)
CIE-LCHlch(50.61, 81.34, 314.41°)
OKLaboklab(59.89% 0.1273 -0.1642)
OKLCHoklch(59.89% 0.208 307.8)
XYZxyz(30.9660, 18.9368, 70.4165)
Luminance0.1894 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A252DD #8DDD52
analogous
#5C52DD #A252DD #DD52D3
triadic
#A252DD #DDA252 #52DDA2
tetradic
#A252DD #DD5C52 #8DDD52 #52D3DD
square
#A252DD #DD5C52 #8DDD52 #52D3DD
split-complementary
#A252DD #D3DD52 #52DD5C
monochromatic
#631E97 #8528CA #A252DD #BD85E7 #D9B8F1

Accessibility & contrast

On white

4.39
#A252DD on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.79
#A252DD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #A252DD
4.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A252DD#FFFFFF#000000##000000
##A252DD1.004.394.794.79
#FFFFFF4.391.0021.0021.00
#0000004.7921.001.001.00
##0000004.7921.001.001.00

Color blindness preview

Protanopia (red-blind)
#0075E1
Deuteranopia (green-blind)
#3979DA
Tritanopia (blue-blind)
#996E90
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #a252dd;
/* rgb */ color: rgb(162, 82, 221);
/* oklch */ color: oklch(59.9% 0.208 307.8);
Tailwind
colors: {
  custom: {
    50: '#c287e8',
    500: '#a252dd',
    950: '#000000',
  },
}
SCSS
$custom: #a252dd;
$custom-light: #c287e8;
$custom-dark: #000000;
JSON
{
  "hex": "#a252dd",
  "rgb": {
    "r": 162,
    "g": 82,
    "b": 221
  },
  "hsl": {
    "h": 274.532,
    "s": 67.15,
    "l": 59.412
  },
  "oklch": {
    "l": 0.5989,
    "c": 0.20778,
    "h": 307.8
  },
  "luminance": 0.18936
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #A252DD

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

Preview Lab → · Contrast checker → · Palette generator →

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