#BA47DF#BA47DF

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

Color values

HEX#BA47DF
RGBrgb(186, 71, 223)
HSLhsl(285, 70%, 58%)
HSVhsv(285, 68%, 87%)
CMYKcmyk(16.6%, 68.2%, 0%, 12.5%)
CIE-LABlab(52.15, 67.43, -56.61)
CIE-LCHlch(52.15, 88.04, 319.99°)
OKLaboklab(61.7% 0.169 -0.159)
OKLCHoklch(61.7% 0.232 316.7)
XYZxyz(35.8202, 20.2747, 71.8243)
Luminance0.2027 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA47DF #6CDF47
analogous
#6E47DF #BA47DF #DF47B8
triadic
#BA47DF #DFBA47 #47DFBA
tetradic
#BA47DF #DF6E47 #6CDF47 #47B8DF
square
#BA47DF #DF6E47 #6CDF47 #47B8DF
split-complementary
#BA47DF #B8DF47 #47DF6E
monochromatic
#751992 #9E22C6 #BA47DF #CE7BE8 #E1AFF1

Accessibility & contrast

On white

4.15
#BA47DF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.05
#BA47DF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA47DF
5.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA47DF#FFFFFF#000000##000000
##BA47DF1.004.155.055.05
#FFFFFF4.151.0021.0021.00
#0000005.0521.001.001.00
##0000005.0521.001.001.00

Color blindness preview

Protanopia (red-blind)
#0075E3
Deuteranopia (green-blind)
#4980DB
Tritanopia (blue-blind)
#B8658E
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #ba47df;
/* rgb */ color: rgb(186, 71, 223);
/* oklch */ color: oklch(61.7% 0.232 316.7);
Tailwind
colors: {
  custom: {
    50: '#d383ea',
    500: '#ba47df',
    950: '#000000',
  },
}
SCSS
$custom: #ba47df;
$custom-light: #d383ea;
$custom-dark: #000000;
JSON
{
  "hex": "#ba47df",
  "rgb": {
    "r": 186,
    "g": 71,
    "b": 223
  },
  "hsl": {
    "h": 285.395,
    "s": 70.37,
    "l": 57.647
  },
  "oklch": {
    "l": 0.61698,
    "c": 0.23204,
    "h": 316.7
  },
  "luminance": 0.20273
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #BA47DF

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

Preview Lab → · Contrast checker → · Palette generator →

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