#BA52BE#BA52BE

#BA52BE is a mid, vivid purple. Relative luminance 0.202; OKLCH L 61.0% C 0.188 H 326.1°. Best body text is #000000 at 5.04:1 contrast (WCAG AA passes).

Color values

HEX#BA52BE
RGBrgb(186, 82, 190)
HSLhsl(298, 45%, 53%)
HSVhsv(298, 57%, 75%)
CMYKcmyk(2.1%, 56.8%, 0%, 25.5%)
CIE-LABlab(52.06, 56.51, -37.87)
CIE-LCHlch(52.06, 68.03, 326.17°)
OKLaboklab(61.05% 0.1557 -0.1045)
OKLCHoklch(61.05% 0.188 326.1)
XYZxyz(32.5606, 20.1933, 50.8879)
Luminance0.2019 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA52BE #56BE52
analogous
#8452BE #BA52BE #BE528C
triadic
#BA52BE #BEBA52 #52BEBA
tetradic
#BA52BE #BE8452 #56BE52 #528CBE
square
#BA52BE #BE8452 #56BE52 #528CBE
split-complementary
#BA52BE #8CBE52 #52BE84
monochromatic
#6A296D #963A99 #BA52BE #CC7ECF #DDABDF

Accessibility & contrast

On white

4.17
#BA52BE on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.04
#BA52BE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA52BE
5.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA52BE#FFFFFF#000000##000000
##BA52BE1.004.175.045.04
#FFFFFF4.171.0021.0021.00
#0000005.0421.001.001.00
##0000005.0421.001.001.00

Color blindness preview

Protanopia (red-blind)
#4474C1
Deuteranopia (green-blind)
#6781BB
Tritanopia (blue-blind)
#BF6080
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #ba52be;
/* rgb */ color: rgb(186, 82, 190);
/* oklch */ color: oklch(61.0% 0.188 326.1);
Tailwind
colors: {
  custom: {
    50: '#d188d2',
    500: '#ba52be',
    950: '#000000',
  },
}
SCSS
$custom: #ba52be;
$custom-light: #d188d2;
$custom-dark: #000000;
JSON
{
  "hex": "#ba52be",
  "rgb": {
    "r": 186,
    "g": 82,
    "b": 190
  },
  "hsl": {
    "h": 297.778,
    "s": 45.378,
    "l": 53.333
  },
  "oklch": {
    "l": 0.61048,
    "c": 0.18752,
    "h": 326.1
  },
  "luminance": 0.20191
}

Semantic roles & 50–950 ramp

primary
#BA52BE
secondary
#A0CD9F
accent
#D55358
background
#FDF8FC
surface
#FAF0F9
border
#D3CBD2
text
#140C14
muted
#837D82

Preview Lab

Preview with #BA52BE

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

Preview Lab → · Contrast checker → · Palette generator →

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