#BA48E5#BA48E5

#BA48E5 is a light, highly saturated purple. Relative luminance 0.207; OKLCH L 62.2% C 0.236 H 315.2°. Best body text is #000000 at 5.15:1 contrast (WCAG AA passes).

Color values

HEX#BA48E5
RGBrgb(186, 72, 229)
HSLhsl(284, 75%, 59%)
HSVhsv(284, 69%, 90%)
CMYKcmyk(18.8%, 68.6%, 0%, 10.2%)
CIE-LABlab(52.66, 68.19, -59.18)
CIE-LCHlch(52.66, 90.29, 319.05°)
OKLaboklab(62.18% 0.1675 -0.1666)
OKLCHoklch(62.18% 0.236 315.2)
XYZxyz(36.7076, 20.7323, 76.1817)
Luminance0.2073 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA48E5 #73E548
analogous
#6C48E5 #BA48E5 #E548C2
triadic
#BA48E5 #E5BA48 #48E5BA
tetradic
#BA48E5 #E56C48 #73E548 #48C2E5
square
#BA48E5 #E56C48 #73E548 #48C2E5
split-complementary
#BA48E5 #C2E548 #48E56C
monochromatic
#78169C #A11ED2 #BA48E5 #CE7EED #E2B3F4

Accessibility & contrast

On white

4.08
#BA48E5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.15
#BA48E5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA48E5
5.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA48E5#FFFFFF#000000##000000
##BA48E51.004.085.155.15
#FFFFFF4.081.0021.0021.00
#0000005.1521.001.001.00
##0000005.1521.001.001.00

Color blindness preview

Protanopia (red-blind)
#0077EA
Deuteranopia (green-blind)
#4481E1
Tritanopia (blue-blind)
#B76891
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #ba48e5;
/* rgb */ color: rgb(186, 72, 229);
/* oklch */ color: oklch(62.2% 0.236 315.2);
Tailwind
colors: {
  custom: {
    50: '#d384ee',
    500: '#ba48e5',
    950: '#000000',
  },
}
SCSS
$custom: #ba48e5;
$custom-light: #d384ee;
$custom-dark: #000000;
JSON
{
  "hex": "#ba48e5",
  "rgb": {
    "r": 186,
    "g": 72,
    "b": 229
  },
  "hsl": {
    "h": 283.567,
    "s": 75.12,
    "l": 59.02
  },
  "oklch": {
    "l": 0.62179,
    "c": 0.23624,
    "h": 315.2
  },
  "luminance": 0.20731
}

Semantic roles & 50–950 ramp

primary
#BA48E5
secondary
#B6E3A6
accent
#F23669
background
#FDF8FE
surface
#FAF0FD
border
#D3CBD5
text
#150C16
muted
#837D84

Preview Lab

Preview with #BA48E5

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

Preview Lab → · Contrast checker → · Palette generator →

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