#BA47ED#BA47ED

#BA47ED is a light, highly saturated purple. Relative luminance 0.211; OKLCH L 62.6% C 0.245 H 313.3°. Best body text is #000000 at 5.21:1 contrast (WCAG AA passes).

Color values

HEX#BA47ED
RGBrgb(186, 71, 237)
HSLhsl(282, 82%, 60%)
HSVhsv(282, 70%, 93%)
CMYKcmyk(21.5%, 70%, 0%, 7.1%)
CIE-LABlab(53.02, 70.17, -63.10)
CIE-LCHlch(53.02, 94.37, 318.03°)
OKLaboklab(62.6% 0.1678 -0.1781)
OKLCHoklch(62.6% 0.245 313.3)
XYZxyz(37.7863, 21.0612, 82.1791)
Luminance0.2106 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA47ED #7AED47
analogous
#6747ED #BA47ED #ED47CD
triadic
#BA47ED #EDBA47 #47EDBA
tetradic
#BA47ED #ED6747 #7AED47 #47CDED
square
#BA47ED #ED6747 #7AED47 #47CDED
split-complementary
#BA47ED #CDED47 #47ED67
monochromatic
#7A11A9 #A216E1 #BA47ED #CF7FF2 #E4B6F8

Accessibility & contrast

On white

4.03
#BA47ED on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.21
#BA47ED on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA47ED
5.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA47ED#FFFFFF#000000##000000
##BA47ED1.004.035.215.21
#FFFFFF4.031.0021.0021.00
#0000005.2121.001.001.00
##0000005.2121.001.001.00

Color blindness preview

Protanopia (red-blind)
#0079F2
Deuteranopia (green-blind)
#3981E9
Tritanopia (blue-blind)
#B56A96
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #ba47ed;
/* rgb */ color: rgb(186, 71, 237);
/* oklch */ color: oklch(62.6% 0.245 313.3);
Tailwind
colors: {
  custom: {
    50: '#d384f4',
    500: '#ba47ed',
    950: '#000000',
  },
}
SCSS
$custom: #ba47ed;
$custom-light: #d384f4;
$custom-dark: #000000;
JSON
{
  "hex": "#ba47ed",
  "rgb": {
    "r": 186,
    "g": 71,
    "b": 237
  },
  "hsl": {
    "h": 281.566,
    "s": 82.178,
    "l": 60.392
  },
  "oklch": {
    "l": 0.62596,
    "c": 0.24465,
    "h": 313.3
  },
  "luminance": 0.2106
}

Semantic roles & 50–950 ramp

primary
#BA47ED
secondary
#BCE8A8
accent
#DF0749
background
#FDF8FF
surface
#FBF0FE
border
#D4CBD6
text
#150C17
muted
#837D85

Preview Lab

Preview with #BA47ED

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

Preview Lab → · Contrast checker → · Palette generator →

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