#A252CB#A252CB

#A252CB is a mid, vivid violet. Relative luminance 0.180; OKLCH L 58.8% C 0.189 H 312.5°. Best body text is #000000 at 4.61:1 contrast (WCAG AA passes).

Color values

HEX#A252CB
RGBrgb(162, 82, 203)
HSLhsl(280, 54%, 56%)
HSVhsv(280, 60%, 80%)
CMYKcmyk(20.2%, 59.6%, 0%, 20.4%)
CIE-LABlab(49.53, 52.96, -49.57)
CIE-LCHlch(49.53, 72.54, 316.90°)
OKLaboklab(58.76% 0.1277 -0.1392)
OKLCHoklch(58.76% 0.189 312.5)
XYZxyz(28.6952, 18.0285, 58.4566)
Luminance0.1803 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A252CB #7BCB52
analogous
#6552CB #A252CB #CB52B8
triadic
#A252CB #CBA252 #52CBA2
tetradic
#A252CB #CB6552 #7BCB52 #52B8CB
square
#A252CB #CB6552 #7BCB52 #52B8CB
split-complementary
#A252CB #B8CB52 #52CB65
monochromatic
#5F267D #8334AC #A252CB #BB81D9 #D5B0E7

Accessibility & contrast

On white

4.56
#A252CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.61
#A252CB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #A252CB
4.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A252CB#FFFFFF#000000##000000
##A252CB1.004.564.614.61
#FFFFFF4.561.0021.0021.00
#0000004.6121.001.001.00
##0000004.6121.001.001.00

Color blindness preview

Protanopia (red-blind)
#2872CF
Deuteranopia (green-blind)
#4A78C8
Tritanopia (blue-blind)
#9E6887
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #a252cb;
/* rgb */ color: rgb(162, 82, 203);
/* oklch */ color: oklch(58.8% 0.189 312.5);
Tailwind
colors: {
  custom: {
    50: '#c187db',
    500: '#a252cb',
    950: '#000000',
  },
}
SCSS
$custom: #a252cb;
$custom-light: #c187db;
$custom-dark: #000000;
JSON
{
  "hex": "#a252cb",
  "rgb": {
    "r": 162,
    "g": 82,
    "b": 203
  },
  "hsl": {
    "h": 279.669,
    "s": 53.778,
    "l": 55.882
  },
  "oklch": {
    "l": 0.58757,
    "c": 0.18888,
    "h": 312.5
  },
  "luminance": 0.18028
}

Semantic roles & 50–950 ramp

primary
#A252CB
secondary
#B4D5A3
accent
#DD4B7C
background
#FCF8FD
surface
#F8F0FB
border
#D1CBD4
text
#130B15
muted
#827C83

Preview Lab

Preview with #A252CB

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

Preview Lab → · Contrast checker → · Palette generator →

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