#BA47D9#BA47D9

#BA47D9 is a mid, highly saturated purple. Relative luminance 0.200; OKLCH L 61.3% C 0.227 H 318.3°. Best body text is #000000 at 4.99:1 contrast (WCAG AA passes).

Color values

HEX#BA47D9
RGBrgb(186, 71, 217)
HSLhsl(287, 66%, 56%)
HSVhsv(287, 67%, 85%)
CMYKcmyk(14.3%, 67.3%, 0%, 14.9%)
CIE-LABlab(51.79, 66.28, -53.77)
CIE-LCHlch(51.79, 85.35, 320.95°)
OKLaboklab(61.33% 0.1693 -0.1507)
OKLCHoklch(61.33% 0.227 318.3)
XYZxyz(35.0256, 19.9569, 67.6393)
Luminance0.1996 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA47D9 #66D947
analogous
#7147D9 #BA47D9 #D947AF
triadic
#BA47D9 #D9BA47 #47D9BA
tetradic
#BA47D9 #D97147 #66D947 #47AFD9
square
#BA47D9 #D97147 #66D947 #47AFD9
split-complementary
#BA47D9 #AFD947 #47D971
monochromatic
#721C89 #9C27BC #BA47D9 #CD7AE3 #E0ACEE

Accessibility & contrast

On white

4.21
#BA47D9 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.99
#BA47D9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA47D9
4.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA47D9#FFFFFF#000000##000000
##BA47D91.004.214.994.99
#FFFFFF4.211.0021.0021.00
#0000004.9921.001.001.00
##0000004.9921.001.001.00

Color blindness preview

Protanopia (red-blind)
#0074DD
Deuteranopia (green-blind)
#4E7FD6
Tritanopia (blue-blind)
#B9628B
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #ba47d9;
/* rgb */ color: rgb(186, 71, 217);
/* oklch */ color: oklch(61.3% 0.227 318.3);
Tailwind
colors: {
  custom: {
    50: '#d283e5',
    500: '#ba47d9',
    950: '#000000',
  },
}
SCSS
$custom: #ba47d9;
$custom-light: #d283e5;
$custom-dark: #000000;
JSON
{
  "hex": "#ba47d9",
  "rgb": {
    "r": 186,
    "g": 71,
    "b": 217
  },
  "hsl": {
    "h": 287.26,
    "s": 65.766,
    "l": 56.471
  },
  "oklch": {
    "l": 0.61326,
    "c": 0.22668,
    "h": 318.3
  },
  "luminance": 0.19955
}

Semantic roles & 50–950 ramp

primary
#BA47D9
secondary
#ADDCA0
accent
#E93F63
background
#FDF8FE
surface
#FAF0FC
border
#D3CBD5
text
#150B16
muted
#837C84

Preview Lab

Preview with #BA47D9

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

Preview Lab → · Contrast checker → · Palette generator →

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