#BA48CD#BA48CD

#BA48CD is a mid, highly saturated purple. Relative luminance 0.195; OKLCH L 60.7% C 0.215 H 321.7°. Best body text is #000000 at 4.90:1 contrast (WCAG AA passes).

Color values

HEX#BA48CD
RGBrgb(186, 72, 205)
HSLhsl(291, 57%, 54%)
HSVhsv(291, 65%, 80%)
CMYKcmyk(9.3%, 64.9%, 0%, 19.6%)
CIE-LABlab(51.25, 63.62, -47.78)
CIE-LCHlch(51.25, 79.57, 323.09°)
OKLaboklab(60.72% 0.1685 -0.1332)
OKLCHoklch(60.72% 0.215 321.7)
XYZxyz(33.5853, 19.4834, 59.7374)
Luminance0.1948 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA48CD #5BCD48
analogous
#7848CD #BA48CD #CD489D
triadic
#BA48CD #CDBA48 #48CDBA
tetradic
#BA48CD #CD7848 #5BCD48 #489DCD
square
#BA48CD #CD7848 #5BCD48 #489DCD
split-complementary
#BA48CD #9DCD48 #48CD78
monochromatic
#6D2179 #982EA9 #BA48CD #CC78DA #DEA8E7

Accessibility & contrast

On white

4.29
#BA48CD on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.90
#BA48CD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA48CD
4.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA48CD#FFFFFF#000000##000000
##BA48CD1.004.294.904.90
#FFFFFF4.291.0021.0021.00
#0000004.9021.001.001.00
##0000004.9021.001.001.00

Color blindness preview

Protanopia (red-blind)
#2472D1
Deuteranopia (green-blind)
#587ECA
Tritanopia (blue-blind)
#BC5E85
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #ba48cd;
/* rgb */ color: rgb(186, 72, 205);
/* oklch */ color: oklch(60.7% 0.215 321.7);
Tailwind
colors: {
  custom: {
    50: '#d283dd',
    500: '#ba48cd',
    950: '#000000',
  },
}
SCSS
$custom: #ba48cd;
$custom-light: #d283dd;
$custom-dark: #000000;
JSON
{
  "hex": "#ba48cd",
  "rgb": {
    "r": 186,
    "g": 72,
    "b": 205
  },
  "hsl": {
    "h": 291.429,
    "s": 57.082,
    "l": 54.314
  },
  "oklch": {
    "l": 0.60716,
    "c": 0.21479,
    "h": 321.7
  },
  "luminance": 0.19482
}

Semantic roles & 50–950 ramp

primary
#BA48CD
secondary
#A4D59C
accent
#E0475D
background
#FDF8FD
surface
#FAF0FB
border
#D3CBD4
text
#140B15
muted
#837C83

Preview Lab

Preview with #BA48CD

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

Preview Lab → · Contrast checker → · Palette generator →

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