#A52FB7#A52FB7

#A52FB7 is a mid, highly saturated purple. Relative luminance 0.135; OKLCH L 54.1% C 0.216 H 322.0°. Best body text is #FFFFFF at 5.69:1 contrast (WCAG AA passes).

Color values

HEX#A52FB7
RGBrgb(165, 47, 183)
HSLhsl(292, 59%, 45%)
HSVhsv(292, 74%, 72%)
CMYKcmyk(9.8%, 74.3%, 0%, 28.2%)
CIE-LABlab(43.44, 64.50, -47.66)
CIE-LCHlch(43.44, 80.20, 323.54°)
OKLaboklab(54.08% 0.1706 -0.1333)
OKLCHoklch(54.08% 0.217 322)
XYZxyz(25.0799, 13.4527, 46.0662)
Luminance0.1345 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A52FB7 #41B72F
analogous
#612FB7 #A52FB7 #B72F85
triadic
#A52FB7 #B7A52F #2FB7A5
tetradic
#A52FB7 #B7612F #41B72F #2F85B7
square
#A52FB7 #B7612F #41B72F #2F85B7
split-complementary
#A52FB7 #85B72F #2FB761
monochromatic
#4D1656 #792286 #A52FB7 #C151D2 #D282DF

Accessibility & contrast

On white

5.69
#A52FB7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.69
#A52FB7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A52FB7
5.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A52FB7#FFFFFF#000000##FFFFFF
##A52FB71.005.693.695.69
#FFFFFF5.691.0021.001.00
#0000003.6921.001.0021.00
##FFFFFF5.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EBB
Deuteranopia (green-blind)
#426BB4
Tritanopia (blue-blind)
#A74971
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #a52fb7;
/* rgb */ color: rgb(165, 47, 183);
/* oklch */ color: oklch(54.1% 0.216 322.0);
Tailwind
colors: {
  custom: {
    50: '#c474cd',
    500: '#a52fb7',
    950: '#000000',
  },
}
SCSS
$custom: #a52fb7;
$custom-light: #c474cd;
$custom-dark: #000000;
JSON
{
  "hex": "#a52fb7",
  "rgb": {
    "r": 165,
    "g": 47,
    "b": 183
  },
  "hsl": {
    "h": 292.059,
    "s": 59.13,
    "l": 45.098
  },
  "oklch": {
    "l": 0.54075,
    "c": 0.2165,
    "h": 322
  },
  "luminance": 0.13451
}

Semantic roles & 50–950 ramp

primary
#A52FB7
secondary
#84C87A
accent
#E2455A
background
#FCF7FC
surface
#F8EDF9
border
#D1C8D2
text
#130913
muted
#827B82

Preview Lab

Preview with #A52FB7

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

Preview Lab → · Contrast checker → · Palette generator →

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