#BA47DE#BA47DE

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

Color values

HEX#BA47DE
RGBrgb(186, 71, 222)
HSLhsl(286, 70%, 57%)
HSVhsv(286, 68%, 87%)
CMYKcmyk(16.2%, 68%, 0%, 12.9%)
CIE-LABlab(52.09, 67.23, -56.14)
CIE-LCHlch(52.09, 87.59, 320.14°)
OKLaboklab(61.64% 0.1691 -0.1576)
OKLCHoklch(61.64% 0.231 317)
XYZxyz(35.6858, 20.2210, 71.1163)
Luminance0.2022 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA47DE #6BDE47
analogous
#6E47DE #BA47DE #DE47B7
triadic
#BA47DE #DEBA47 #47DEBA
tetradic
#BA47DE #DE6E47 #6BDE47 #47B7DE
square
#BA47DE #DE6E47 #6BDE47 #47B7DE
split-complementary
#BA47DE #B7DE47 #47DE6E
monochromatic
#741A91 #9E23C5 #BA47DE #CD7BE7 #E1AFF1

Accessibility & contrast

On white

4.16
#BA47DE on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.04
#BA47DE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA47DE
5.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA47DE#FFFFFF#000000##000000
##BA47DE1.004.165.045.04
#FFFFFF4.161.0021.0021.00
#0000005.0421.001.001.00
##0000005.0421.001.001.00

Color blindness preview

Protanopia (red-blind)
#0075E2
Deuteranopia (green-blind)
#4A80DA
Tritanopia (blue-blind)
#B8648D
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #ba47de;
/* rgb */ color: rgb(186, 71, 222);
/* oklch */ color: oklch(61.6% 0.231 317.0);
Tailwind
colors: {
  custom: {
    50: '#d383e9',
    500: '#ba47de',
    950: '#000000',
  },
}
SCSS
$custom: #ba47de;
$custom-light: #d383e9;
$custom-dark: #000000;
JSON
{
  "hex": "#ba47de",
  "rgb": {
    "r": 186,
    "g": 71,
    "b": 222
  },
  "hsl": {
    "h": 285.695,
    "s": 69.585,
    "l": 57.451
  },
  "oklch": {
    "l": 0.61635,
    "c": 0.23115,
    "h": 317
  },
  "luminance": 0.2022
}

Semantic roles & 50–950 ramp

primary
#BA47DE
secondary
#B0DFA2
accent
#EC3B66
background
#FDF8FE
surface
#FAF0FD
border
#D3CBD5
text
#150B16
muted
#837C84

Preview Lab

Preview with #BA47DE

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

Preview Lab → · Contrast checker → · Palette generator →

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