#A252EA#A252EA

#A252EA is a mid, highly saturated violet. Relative luminance 0.197; OKLCH L 60.8% C 0.221 H 304.8°. Best body text is #000000 at 4.93:1 contrast (WCAG AA passes).

Color values

HEX#A252EA
RGBrgb(162, 82, 234)
HSLhsl(272, 78%, 62%)
HSVhsv(272, 65%, 92%)
CMYKcmyk(30.8%, 65%, 0%, 8.2%)
CIE-LABlab(51.45, 59.87, -64.10)
CIE-LCHlch(51.45, 87.71, 313.04°)
OKLaboklab(60.76% 0.1264 -0.1818)
OKLCHoklch(60.76% 0.221 304.8)
XYZxyz(32.7656, 19.6567, 79.8939)
Luminance0.1966 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A252EA #9AEA52
analogous
#5652EA #A252EA #EA52E6
triadic
#A252EA #EAA252 #52EAA2
tetradic
#A252EA #EA5652 #9AEA52 #52E6EA
square
#A252EA #EA5652 #9AEA52 #52E6EA
split-complementary
#A252EA #E6EA52 #52EA56
monochromatic
#6515AD #851CE3 #A252EA #BF89F1 #DDBFF7

Accessibility & contrast

On white

4.26
#A252EA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.93
#A252EA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #A252EA
4.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A252EA#FFFFFF#000000##000000
##A252EA1.004.264.934.93
#FFFFFF4.261.0021.0021.00
#0000004.9321.001.001.00
##0000004.9321.001.001.00

Color blindness preview

Protanopia (red-blind)
#0078EF
Deuteranopia (green-blind)
#247BE7
Tritanopia (blue-blind)
#957397
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #a252ea;
/* rgb */ color: rgb(162, 82, 234);
/* oklch */ color: oklch(60.8% 0.221 304.8);
Tailwind
colors: {
  custom: {
    50: '#c287f2',
    500: '#a252ea',
    950: '#000000',
  },
}
SCSS
$custom: #a252ea;
$custom-light: #c287f2;
$custom-dark: #000000;
JSON
{
  "hex": "#a252ea",
  "rgb": {
    "r": 162,
    "g": 82,
    "b": 234
  },
  "hsl": {
    "h": 271.579,
    "s": 78.351,
    "l": 61.961
  },
  "oklch": {
    "l": 0.60757,
    "c": 0.22145,
    "h": 304.8
  },
  "luminance": 0.19656
}

Semantic roles & 50–950 ramp

primary
#A252EA
secondary
#CAE8B0
accent
#DB0B6D
background
#FCF8FE
surface
#F8F0FD
border
#D1CBD5
text
#130C17
muted
#827D85

Preview Lab

Preview with #A252EA

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

Preview Lab → · Contrast checker → · Palette generator →

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