#BA47E1#BA47E1

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

Color values

HEX#BA47E1
RGBrgb(186, 71, 225)
HSLhsl(285, 72%, 58%)
HSVhsv(285, 68%, 88%)
CMYKcmyk(17.3%, 68.4%, 0%, 11.8%)
CIE-LABlab(52.27, 67.81, -57.54)
CIE-LCHlch(52.27, 88.94, 319.68°)
OKLaboklab(61.82% 0.1689 -0.1618)
OKLCHoklch(61.82% 0.234 316.2)
XYZxyz(36.0915, 20.3832, 73.2528)
Luminance0.2038 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA47E1 #6EE147
analogous
#6D47E1 #BA47E1 #E147BB
triadic
#BA47E1 #E1BA47 #47E1BA
tetradic
#BA47E1 #E16D47 #6EE147 #47BBE1
square
#BA47E1 #E16D47 #6EE147 #47BBE1
split-complementary
#BA47E1 #BBE147 #47E16D
monochromatic
#761895 #9F21CA #BA47E1 #CE7CEA #E1B0F2

Accessibility & contrast

On white

4.14
#BA47E1 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##BA47E1#FFFFFF#000000##000000
##BA47E11.004.145.085.08
#FFFFFF4.141.0021.0021.00
#0000005.0821.001.001.00
##0000005.0821.001.001.00

Color blindness preview

Protanopia (red-blind)
#0076E5
Deuteranopia (green-blind)
#4780DD
Tritanopia (blue-blind)
#B8658F
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #ba47e1;
/* rgb */ color: rgb(186, 71, 225);
/* oklch */ color: oklch(61.8% 0.234 316.2);
Tailwind
colors: {
  custom: {
    50: '#d383eb',
    500: '#ba47e1',
    950: '#000000',
  },
}
SCSS
$custom: #ba47e1;
$custom-light: #d383eb;
$custom-dark: #000000;
JSON
{
  "hex": "#ba47e1",
  "rgb": {
    "r": 186,
    "g": 71,
    "b": 225
  },
  "hsl": {
    "h": 284.805,
    "s": 71.963,
    "l": 58.039
  },
  "oklch": {
    "l": 0.61823,
    "c": 0.23384,
    "h": 316.2
  },
  "luminance": 0.20382
}

Semantic roles & 50–950 ramp

primary
#BA47E1
secondary
#B3E1A3
accent
#EF3967
background
#FDF8FE
surface
#FAF0FD
border
#D3CBD5
text
#150B16
muted
#837C84

Preview Lab

Preview with #BA47E1

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

Preview Lab → · Contrast checker → · Palette generator →

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