#BA47E8#BA47E8

#BA47E8 is a light, highly saturated purple. Relative luminance 0.208; OKLCH L 62.3% C 0.240 H 314.5°. Best body text is #000000 at 5.15:1 contrast (WCAG AA passes).

Color values

HEX#BA47E8
RGBrgb(186, 71, 232)
HSLhsl(283, 78%, 59%)
HSVhsv(283, 69%, 91%)
CMYKcmyk(19.8%, 69.4%, 0%, 9%)
CIE-LABlab(52.70, 69.18, -60.80)
CIE-LCHlch(52.70, 92.10, 318.69°)
OKLaboklab(62.27% 0.1683 -0.1713)
OKLCHoklch(62.27% 0.24 314.5)
XYZxyz(37.0660, 20.7730, 78.3854)
Luminance0.2077 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA47E8 #75E847
analogous
#6A47E8 #BA47E8 #E847C6
triadic
#BA47E8 #E8BA47 #47E8BA
tetradic
#BA47E8 #E86A47 #75E847 #47C6E8
square
#BA47E8 #E86A47 #75E847 #47C6E8
split-complementary
#BA47E8 #C6E847 #47E86A
monochromatic
#7814A1 #A11BD7 #BA47E8 #CE7DEF #E3B4F6

Accessibility & contrast

On white

4.07
#BA47E8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.15
#BA47E8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA47E8
5.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA47E8#FFFFFF#000000##000000
##BA47E81.004.075.155.15
#FFFFFF4.071.0021.0021.00
#0000005.1521.001.001.00
##0000005.1521.001.001.00

Color blindness preview

Protanopia (red-blind)
#0077ED
Deuteranopia (green-blind)
#4081E4
Tritanopia (blue-blind)
#B66893
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #ba47e8;
/* rgb */ color: rgb(186, 71, 232);
/* oklch */ color: oklch(62.3% 0.240 314.5);
Tailwind
colors: {
  custom: {
    50: '#d383f0',
    500: '#ba47e8',
    950: '#000000',
  },
}
SCSS
$custom: #ba47e8;
$custom-light: #d383f0;
$custom-dark: #000000;
JSON
{
  "hex": "#ba47e8",
  "rgb": {
    "r": 186,
    "g": 71,
    "b": 232
  },
  "hsl": {
    "h": 282.857,
    "s": 77.778,
    "l": 59.412
  },
  "oklch": {
    "l": 0.6227,
    "c": 0.24013,
    "h": 314.5
  },
  "luminance": 0.20772
}

Semantic roles & 50–950 ramp

primary
#BA47E8
secondary
#B8E5A6
accent
#F4346B
background
#FDF8FE
surface
#FBF0FD
border
#D4CBD5
text
#150B17
muted
#837C85

Preview Lab

Preview with #BA47E8

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

Preview Lab → · Contrast checker → · Palette generator →

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