#BA47DC#BA47DC

#BA47DC is a mid, highly saturated purple. Relative luminance 0.201; OKLCH L 61.5% C 0.229 H 317.5°. Best body text is #000000 at 5.02:1 contrast (WCAG AA passes).

Color values

HEX#BA47DC
RGBrgb(186, 71, 220)
HSLhsl(286, 68%, 57%)
HSVhsv(286, 68%, 86%)
CMYKcmyk(15.5%, 67.7%, 0%, 13.7%)
CIE-LABlab(51.97, 66.85, -55.19)
CIE-LCHlch(51.97, 86.69, 320.46°)
OKLaboklab(61.51% 0.1692 -0.1549)
OKLCHoklch(61.51% 0.229 317.5)
XYZxyz(35.4194, 20.1144, 69.7130)
Luminance0.2011 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA47DC #69DC47
analogous
#7047DC #BA47DC #DC47B3
triadic
#BA47DC #DCBA47 #47DCBA
tetradic
#BA47DC #DC7047 #69DC47 #47B3DC
square
#BA47DC #DC7047 #69DC47 #47B3DC
split-complementary
#BA47DC #B3DC47 #47DC70
monochromatic
#731B8E #9D25C1 #BA47DC #CD7AE6 #E1AEF0

Accessibility & contrast

On white

4.18
#BA47DC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.02
#BA47DC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA47DC
5.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA47DC#FFFFFF#000000##000000
##BA47DC1.004.185.025.02
#FFFFFF4.181.0021.0021.00
#0000005.0221.001.001.00
##0000005.0221.001.001.00

Color blindness preview

Protanopia (red-blind)
#0075E0
Deuteranopia (green-blind)
#4C7FD9
Tritanopia (blue-blind)
#B9638C
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #ba47dc;
/* rgb */ color: rgb(186, 71, 220);
/* oklch */ color: oklch(61.5% 0.229 317.5);
Tailwind
colors: {
  custom: {
    50: '#d383e7',
    500: '#ba47dc',
    950: '#000000',
  },
}
SCSS
$custom: #ba47dc;
$custom-light: #d383e7;
$custom-dark: #000000;
JSON
{
  "hex": "#ba47dc",
  "rgb": {
    "r": 186,
    "g": 71,
    "b": 220
  },
  "hsl": {
    "h": 286.309,
    "s": 68.037,
    "l": 57.059
  },
  "oklch": {
    "l": 0.61511,
    "c": 0.22936,
    "h": 317.5
  },
  "luminance": 0.20113
}

Semantic roles & 50–950 ramp

primary
#BA47DC
secondary
#AFDEA1
accent
#EB3D65
background
#FDF8FE
surface
#FAF0FD
border
#D3CBD5
text
#150B16
muted
#837C84

Preview Lab

Preview with #BA47DC

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

Preview Lab → · Contrast checker → · Palette generator →

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