#BA7BD2#BA7BD2

#BA7BD2 is a light, vivid purple. Relative luminance 0.293; OKLCH L 68.0% C 0.141 H 316.2°. Best body text is #000000 at 6.85:1 contrast (WCAG AA passes).

Color values

HEX#BA7BD2
RGBrgb(186, 123, 210)
HSLhsl(283, 49%, 65%)
HSVhsv(283, 41%, 82%)
CMYKcmyk(11.4%, 41.4%, 0%, 17.6%)
CIE-LABlab(61.01, 39.49, -35.24)
CIE-LCHlch(61.01, 52.93, 318.25°)
OKLaboklab(67.99% 0.1016 -0.0973)
OKLCHoklch(67.99% 0.141 316.2)
XYZxyz(38.9638, 29.2592, 64.5553)
Luminance0.2926 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA7BD2 #93D27B
analogous
#8E7BD2 #BA7BD2 #D27BBF
triadic
#BA7BD2 #D2BA7B #7BD2BA
tetradic
#BA7BD2 #D28E7B #93D27B #7BBFD2
square
#BA7BD2 #D28E7B #93D27B #7BBFD2
split-complementary
#BA7BD2 #BFD27B #7BD28E
monochromatic
#81369D #A24DC2 #BA7BD2 #D2A9E2 #EAD6F1

Accessibility & contrast

On white

3.06
#BA7BD2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.85
#BA7BD2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA7BD2
6.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA7BD2#FFFFFF#000000##000000
##BA7BD21.003.066.856.85
#FFFFFF3.061.0021.0021.00
#0000006.8521.001.001.00
##0000006.8521.001.001.00

Color blindness preview

Protanopia (red-blind)
#6C8FD5
Deuteranopia (green-blind)
#7D95CF
Tritanopia (blue-blind)
#B9879D
Achromatopsia (no color)
#939393

Design tokens & code

CSS
--color: #ba7bd2;
/* rgb */ color: rgb(186, 123, 210);
/* oklch */ color: oklch(68.0% 0.141 316.2);
Tailwind
colors: {
  custom: {
    50: '#d0a2e0',
    500: '#ba7bd2',
    950: '#000000',
  },
}
SCSS
$custom: #ba7bd2;
$custom-light: #d0a2e0;
$custom-dark: #000000;
JSON
{
  "hex": "#ba7bd2",
  "rgb": {
    "r": 186,
    "g": 123,
    "b": 210
  },
  "hsl": {
    "h": 283.448,
    "s": 49.153,
    "l": 65.294
  },
  "oklch": {
    "l": 0.67991,
    "c": 0.14063,
    "h": 316.2
  },
  "luminance": 0.29258
}

Semantic roles & 50–950 ramp

primary
#BA7BD2
secondary
#CEE3C6
accent
#BC2952
background
#FCFAFD
surface
#F9F4FB
border
#D2CED4
text
#140F15
muted
#827F83

Preview Lab

Preview with #BA7BD2

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

Preview Lab → · Contrast checker → · Palette generator →

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