#BA47DD#BA47DD

#BA47DD is a mid, highly saturated purple. Relative luminance 0.202; OKLCH L 61.6% C 0.230 H 317.3°. Best body text is #000000 at 5.03:1 contrast (WCAG AA passes).

Color values

HEX#BA47DD
RGBrgb(186, 71, 221)
HSLhsl(286, 69%, 57%)
HSVhsv(286, 68%, 87%)
CMYKcmyk(15.8%, 67.9%, 0%, 13.3%)
CIE-LABlab(52.03, 67.04, -55.67)
CIE-LCHlch(52.03, 87.14, 320.30°)
OKLaboklab(61.57% 0.1691 -0.1563)
OKLCHoklch(61.57% 0.23 317.3)
XYZxyz(35.5522, 20.1675, 70.4126)
Luminance0.2017 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA47DD #6ADD47
analogous
#6F47DD #BA47DD #DD47B5
triadic
#BA47DD #DDBA47 #47DDBA
tetradic
#BA47DD #DD6F47 #6ADD47 #47B5DD
square
#BA47DD #DD6F47 #6ADD47 #47B5DD
split-complementary
#BA47DD #B5DD47 #47DD6F
monochromatic
#741A8F #9E24C3 #BA47DD #CD7BE7 #E1AEF0

Accessibility & contrast

On white

4.17
#BA47DD on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.03
#BA47DD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA47DD
5.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA47DD#FFFFFF#000000##000000
##BA47DD1.004.175.035.03
#FFFFFF4.171.0021.0021.00
#0000005.0321.001.001.00
##0000005.0321.001.001.00

Color blindness preview

Protanopia (red-blind)
#0075E1
Deuteranopia (green-blind)
#4B80D9
Tritanopia (blue-blind)
#B9648D
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #ba47dd;
/* rgb */ color: rgb(186, 71, 221);
/* oklch */ color: oklch(61.6% 0.230 317.3);
Tailwind
colors: {
  custom: {
    50: '#d383e8',
    500: '#ba47dd',
    950: '#000000',
  },
}
SCSS
$custom: #ba47dd;
$custom-light: #d383e8;
$custom-dark: #000000;
JSON
{
  "hex": "#ba47dd",
  "rgb": {
    "r": 186,
    "g": 71,
    "b": 221
  },
  "hsl": {
    "h": 286,
    "s": 68.807,
    "l": 57.255
  },
  "oklch": {
    "l": 0.61573,
    "c": 0.23025,
    "h": 317.3
  },
  "luminance": 0.20166
}

Semantic roles & 50–950 ramp

primary
#BA47DD
secondary
#B0DEA2
accent
#EC3C65
background
#FDF8FE
surface
#FAF0FD
border
#D3CBD5
text
#150B16
muted
#837C84

Preview Lab

Preview with #BA47DD

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

Preview Lab → · Contrast checker → · Palette generator →

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