#BA48DE#BA48DE

#BA48DE is a mid, highly saturated purple. Relative luminance 0.203; OKLCH L 61.7% C 0.230 H 316.9°. Best body text is #000000 at 5.07:1 contrast (WCAG AA passes).

Color values

HEX#BA48DE
RGBrgb(186, 72, 222)
HSLhsl(286, 69%, 58%)
HSVhsv(286, 68%, 87%)
CMYKcmyk(16.2%, 67.6%, 0%, 12.9%)
CIE-LABlab(52.23, 66.83, -55.91)
CIE-LCHlch(52.23, 87.13, 320.09°)
OKLaboklab(61.74% 0.168 -0.157)
OKLCHoklch(61.74% 0.23 316.9)
XYZxyz(35.7499, 20.3492, 71.1377)
Luminance0.2035 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA48DE #6CDE48
analogous
#6F48DE #BA48DE #DE48B7
triadic
#BA48DE #DEBA48 #48DEBA
tetradic
#BA48DE #DE6F48 #6CDE48 #48B7DE
square
#BA48DE #DE6F48 #6CDE48 #48B7DE
split-complementary
#BA48DE #B7DE48 #48DE6F
monochromatic
#751A91 #9E24C5 #BA48DE #CE7CE7 #E1B0F1

Accessibility & contrast

On white

4.14
#BA48DE on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.07
#BA48DE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA48DE
5.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA48DE#FFFFFF#000000##000000
##BA48DE1.004.145.075.07
#FFFFFF4.141.0021.0021.00
#0000005.0721.001.001.00
##0000005.0721.001.001.00

Color blindness preview

Protanopia (red-blind)
#0076E2
Deuteranopia (green-blind)
#4B80DA
Tritanopia (blue-blind)
#B8658E
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #ba48de;
/* rgb */ color: rgb(186, 72, 222);
/* oklch */ color: oklch(61.7% 0.230 316.9);
Tailwind
colors: {
  custom: {
    50: '#d384e9',
    500: '#ba48de',
    950: '#000000',
  },
}
SCSS
$custom: #ba48de;
$custom-light: #d384e9;
$custom-dark: #000000;
JSON
{
  "hex": "#ba48de",
  "rgb": {
    "r": 186,
    "g": 72,
    "b": 222
  },
  "hsl": {
    "h": 285.6,
    "s": 69.444,
    "l": 57.647
  },
  "oklch": {
    "l": 0.61738,
    "c": 0.22993,
    "h": 316.9
  },
  "luminance": 0.20348
}

Semantic roles & 50–950 ramp

primary
#BA48DE
secondary
#B1DFA3
accent
#EC3C66
background
#FDF8FE
surface
#FAF0FD
border
#D3CBD5
text
#150B16
muted
#837C84

Preview Lab

Preview with #BA48DE

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

Preview Lab → · Contrast checker → · Palette generator →

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