#BA52CE#BA52CE

#BA52CE is a mid, highly saturated purple. Relative luminance 0.209; OKLCH L 61.9% C 0.202 H 320.9°. Best body text is #000000 at 5.19:1 contrast (WCAG AA passes).

Color values

HEX#BA52CE
RGBrgb(186, 82, 206)
HSLhsl(290, 56%, 56%)
HSVhsv(290, 60%, 81%)
CMYKcmyk(9.7%, 60.2%, 0%, 19.2%)
CIE-LABlab(52.87, 59.47, -45.77)
CIE-LCHlch(52.87, 75.05, 322.42°)
OKLaboklab(61.91% 0.1568 -0.1274)
OKLCHoklch(61.91% 0.202 320.9)
XYZxyz(34.4063, 20.9316, 60.6084)
Luminance0.2093 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA52CE #66CE52
analogous
#7C52CE #BA52CE #CE52A4
triadic
#BA52CE #CEBA52 #52CEBA
tetradic
#BA52CE #CE7C52 #66CE52 #52A4CE
square
#BA52CE #CE7C52 #66CE52 #52A4CE
split-complementary
#BA52CE #A4CE52 #52CE7C
monochromatic
#722581 #9C32B1 #BA52CE #CD82DC #E0B1E9

Accessibility & contrast

On white

4.05
#BA52CE on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.19
#BA52CE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA52CE
5.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA52CE#FFFFFF#000000##000000
##BA52CE1.004.055.195.19
#FFFFFF4.051.0021.0021.00
#0000005.1921.001.001.00
##0000005.1921.001.001.00

Color blindness preview

Protanopia (red-blind)
#3677D2
Deuteranopia (green-blind)
#5E82CB
Tritanopia (blue-blind)
#BB6589
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #ba52ce;
/* rgb */ color: rgb(186, 82, 206);
/* oklch */ color: oklch(61.9% 0.202 320.9);
Tailwind
colors: {
  custom: {
    50: '#d289dd',
    500: '#ba52ce',
    950: '#000000',
  },
}
SCSS
$custom: #ba52ce;
$custom-light: #d289dd;
$custom-dark: #000000;
JSON
{
  "hex": "#ba52ce",
  "rgb": {
    "r": 186,
    "g": 82,
    "b": 206
  },
  "hsl": {
    "h": 290.323,
    "s": 55.856,
    "l": 56.471
  },
  "oklch": {
    "l": 0.61912,
    "c": 0.20205,
    "h": 320.9
  },
  "luminance": 0.2093
}

Semantic roles & 50–950 ramp

primary
#BA52CE
secondary
#ADD7A4
accent
#DF4961
background
#FDF8FD
surface
#FAF0FB
border
#D3CBD4
text
#140C15
muted
#837D83

Preview Lab

Preview with #BA52CE

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

Preview Lab → · Contrast checker → · Palette generator →

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