#A252ED#A252ED

#A252ED is a mid, highly saturated violet. Relative luminance 0.198; OKLCH L 61.0% C 0.225 H 304.2°. Best body text is #000000 at 4.97:1 contrast (WCAG AA passes).

Color values

HEX#A252ED
RGBrgb(162, 82, 237)
HSLhsl(271, 81%, 63%)
HSVhsv(271, 65%, 93%)
CMYKcmyk(31.6%, 65.4%, 0%, 7.1%)
CIE-LABlab(51.65, 60.56, -65.47)
CIE-LCHlch(51.65, 89.18, 312.77°)
OKLaboklab(60.96% 0.1261 -0.1858)
OKLCHoklch(60.96% 0.225 304.2)
XYZxyz(33.2002, 19.8305, 82.1830)
Luminance0.1983 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A252ED #9DED52
analogous
#5552ED #A252ED #ED52EA
triadic
#A252ED #EDA252 #52EDA2
tetradic
#A252ED #ED5552 #9DED52 #52EAED
square
#A252ED #ED5552 #9DED52 #52EAED
split-complementary
#A252ED #EAED52 #52ED55
monochromatic
#6513B2 #841BE7 #A252ED #C089F3 #DEC1F9

Accessibility & contrast

On white

4.23
#A252ED on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.97
#A252ED on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #A252ED
4.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A252ED#FFFFFF#000000##000000
##A252ED1.004.234.974.97
#FFFFFF4.231.0021.0021.00
#0000004.9721.001.001.00
##0000004.9721.001.001.00

Color blindness preview

Protanopia (red-blind)
#0079F2
Deuteranopia (green-blind)
#1D7BEA
Tritanopia (blue-blind)
#947499
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #a252ed;
/* rgb */ color: rgb(162, 82, 237);
/* oklch */ color: oklch(61.0% 0.225 304.2);
Tailwind
colors: {
  custom: {
    50: '#c388f4',
    500: '#a252ed',
    950: '#000000',
  },
}
SCSS
$custom: #a252ed;
$custom-light: #c388f4;
$custom-dark: #000000;
JSON
{
  "hex": "#a252ed",
  "rgb": {
    "r": 162,
    "g": 82,
    "b": 237
  },
  "hsl": {
    "h": 270.968,
    "s": 81.152,
    "l": 62.549
  },
  "oklch": {
    "l": 0.60962,
    "c": 0.22459,
    "h": 304.2
  },
  "luminance": 0.1983
}

Semantic roles & 50–950 ramp

primary
#A252ED
secondary
#CCEAB1
accent
#DE086F
background
#FCF8FF
surface
#F8F0FE
border
#D1CBD6
text
#130C17
muted
#827D85

Preview Lab

Preview with #A252ED

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

Preview Lab → · Contrast checker → · Palette generator →

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