#A252BB#A252BB

#A252BB is a mid, vivid purple. Relative luminance 0.173; OKLCH L 57.8% C 0.172 H 317.5°. Best body text is #FFFFFF at 4.71:1 contrast (WCAG AA passes).

Color values

HEX#A252BB
RGBrgb(162, 82, 187)
HSLhsl(286, 44%, 53%)
HSVhsv(286, 56%, 73%)
CMYKcmyk(13.4%, 56.1%, 0%, 26.7%)
CIE-LABlab(48.64, 49.59, -41.74)
CIE-LCHlch(48.64, 64.82, 319.92°)
OKLaboklab(57.82% 0.1271 -0.1163)
OKLCHoklch(57.82% 0.172 317.5)
XYZxyz(26.8860, 17.3048, 48.9280)
Luminance0.1730 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A252BB #6BBB52
analogous
#6D52BB #A252BB #BB52A0
triadic
#A252BB #BBA252 #52BBA2
tetradic
#A252BB #BB6D52 #6BBB52 #52A0BB
square
#A252BB #BB6D52 #6BBB52 #52A0BB
split-complementary
#A252BB #A0BB52 #52BB6D
monochromatic
#5A2969 #803B95 #A252BB #BA7ECC #D1AADE

Accessibility & contrast

On white

4.71
#A252BB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.46
#A252BB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A252BB
4.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A252BB#FFFFFF#000000##FFFFFF
##A252BB1.004.714.464.71
#FFFFFF4.711.0021.001.00
#0000004.4621.001.0021.00
##FFFFFF4.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3A6EBE
Deuteranopia (green-blind)
#5676B8
Tritanopia (blue-blind)
#A1637F
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #a252bb;
/* rgb */ color: rgb(162, 82, 187);
/* oklch */ color: oklch(57.8% 0.172 317.5);
Tailwind
colors: {
  custom: {
    50: '#c086d0',
    500: '#a252bb',
    950: '#000000',
  },
}
SCSS
$custom: #a252bb;
$custom-light: #c086d0;
$custom-dark: #000000;
JSON
{
  "hex": "#a252bb",
  "rgb": {
    "r": 162,
    "g": 82,
    "b": 187
  },
  "hsl": {
    "h": 285.714,
    "s": 43.568,
    "l": 52.745
  },
  "oklch": {
    "l": 0.57821,
    "c": 0.17228,
    "h": 317.5
  },
  "luminance": 0.17304
}

Semantic roles & 50–950 ramp

primary
#A252BB
secondary
#A8CB9E
accent
#D35473
background
#FCF8FC
surface
#F8F0F9
border
#D1CBD2
text
#130B14
muted
#827C82

Preview Lab

Preview with #A252BB

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

Preview Lab → · Contrast checker → · Palette generator →

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