#BA48DF#BA48DF

#BA48DF is a mid, highly saturated purple. Relative luminance 0.204; OKLCH L 61.8% C 0.231 H 316.7°. Best body text is #000000 at 5.08:1 contrast (WCAG AA passes).

Color values

HEX#BA48DF
RGBrgb(186, 72, 223)
HSLhsl(285, 70%, 58%)
HSVhsv(285, 68%, 87%)
CMYKcmyk(16.6%, 67.7%, 0%, 12.5%)
CIE-LABlab(52.29, 67.02, -56.38)
CIE-LCHlch(52.29, 87.58, 319.93°)
OKLaboklab(61.8% 0.1679 -0.1583)
OKLCHoklch(61.8% 0.231 316.7)
XYZxyz(35.8844, 20.4030, 71.8457)
Luminance0.2040 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA48DF #6DDF48
analogous
#6E48DF #BA48DF #DF48B9
triadic
#BA48DF #DFBA48 #48DFBA
tetradic
#BA48DF #DF6E48 #6DDF48 #48B9DF
square
#BA48DF #DF6E48 #6DDF48 #48B9DF
split-complementary
#BA48DF #B9DF48 #48DF6E
monochromatic
#751A93 #9F23C7 #BA48DF #CE7CE8 #E1B0F1

Accessibility & contrast

On white

4.13
#BA48DF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.08
#BA48DF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA48DF
5.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA48DF#FFFFFF#000000##000000
##BA48DF1.004.135.085.08
#FFFFFF4.131.0021.0021.00
#0000005.0821.001.001.00
##0000005.0821.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #ba48df;
/* rgb */ color: rgb(186, 72, 223);
/* oklch */ color: oklch(61.8% 0.231 316.7);
Tailwind
colors: {
  custom: {
    50: '#d384ea',
    500: '#ba48df',
    950: '#000000',
  },
}
SCSS
$custom: #ba48df;
$custom-light: #d384ea;
$custom-dark: #000000;
JSON
{
  "hex": "#ba48df",
  "rgb": {
    "r": 186,
    "g": 72,
    "b": 223
  },
  "hsl": {
    "h": 285.298,
    "s": 70.233,
    "l": 57.843
  },
  "oklch": {
    "l": 0.618,
    "c": 0.23082,
    "h": 316.7
  },
  "luminance": 0.20402
}

Semantic roles & 50–950 ramp

primary
#BA48DF
secondary
#B2E0A3
accent
#ED3B66
background
#FDF8FE
surface
#FAF0FD
border
#D3CBD5
text
#150B16
muted
#837C84

Preview Lab

Preview with #BA48DF

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

Preview Lab → · Contrast checker → · Palette generator →

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