#A52FD8#A52FD8

#A52FD8 is a mid, highly saturated purple. Relative luminance 0.150; OKLCH L 56.3% C 0.244 H 312.8°. Best body text is #FFFFFF at 5.25:1 contrast (WCAG AA passes).

Color values

HEX#A52FD8
RGBrgb(165, 47, 216)
HSLhsl(282, 68%, 52%)
HSVhsv(282, 78%, 85%)
CMYKcmyk(23.6%, 78.2%, 0%, 15.3%)
CIE-LABlab(45.62, 70.71, -63.29)
CIE-LCHlch(45.62, 94.90, 318.17°)
OKLaboklab(56.31% 0.1661 -0.1791)
OKLCHoklch(56.31% 0.244 312.8)
XYZxyz(28.9260, 14.9911, 66.3223)
Luminance0.1499 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A52FD8 #62D82F
analogous
#502FD8 #A52FD8 #D82FB7
triadic
#A52FD8 #D8A52F #2FD8A5
tetradic
#A52FD8 #D8502F #62D82F #2FB7D8
square
#A52FD8 #D8502F #62D82F #2FB7D8
split-complementary
#A52FD8 #B7D82F #2FD850
monochromatic
#591676 #8020AA #A52FD8 #BB63E2 #D296EB

Accessibility & contrast

On white

5.25
#A52FD8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.00
#A52FD8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A52FD8
5.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A52FD8#FFFFFF#000000##FFFFFF
##A52FD81.005.254.005.25
#FFFFFF5.251.0021.001.00
#0000004.0021.001.0021.00
##FFFFFF5.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066DD
Deuteranopia (green-blind)
#126ED5
Tritanopia (blue-blind)
#9F5884
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #a52fd8;
/* rgb */ color: rgb(165, 47, 216);
/* oklch */ color: oklch(56.3% 0.244 312.8);
Tailwind
colors: {
  custom: {
    50: '#c575e5',
    500: '#a52fd8',
    950: '#000000',
  },
}
SCSS
$custom: #a52fd8;
$custom-light: #c575e5;
$custom-dark: #000000;
JSON
{
  "hex": "#a52fd8",
  "rgb": {
    "r": 165,
    "g": 47,
    "b": 216
  },
  "hsl": {
    "h": 281.893,
    "s": 68.421,
    "l": 51.569
  },
  "oklch": {
    "l": 0.56312,
    "c": 0.24429,
    "h": 312.8
  },
  "luminance": 0.1499
}

Semantic roles & 50–950 ramp

primary
#A52FD8
secondary
#A3D78C
accent
#EB3D71
background
#FCF7FE
surface
#F9EEFC
border
#D2C9D5
text
#130916
muted
#827B84

Preview Lab

Preview with #A52FD8

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

Preview Lab → · Contrast checker → · Palette generator →

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