#BA7DCD#BA7DCD

#BA7DCD is a light, vivid purple. Relative luminance 0.295; OKLCH L 68.1% C 0.132 H 317.9°. Best body text is #000000 at 6.90:1 contrast (WCAG AA passes).

Color values

HEX#BA7DCD
RGBrgb(186, 125, 205)
HSLhsl(286, 44%, 65%)
HSVhsv(286, 39%, 80%)
CMYKcmyk(9.3%, 39%, 0%, 19.6%)
CIE-LABlab(61.23, 37.37, -32.08)
CIE-LCHlch(61.23, 49.25, 319.36°)
OKLaboklab(68.09% 0.0976 -0.0882)
OKLCHoklch(68.09% 0.132 317.9)
XYZxyz(38.6012, 29.5152, 61.4094)
Luminance0.2951 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA7DCD #90CD7D
analogous
#927DCD #BA7DCD #CD7DB8
triadic
#BA7DCD #CDBA7D #7DCDBA
tetradic
#BA7DCD #CD927D #90CD7D #7DB8CD
square
#BA7DCD #CD927D #90CD7D #7DB8CD
split-complementary
#BA7DCD #B8CD7D #7DCD92
monochromatic
#803A96 #A351BC #BA7DCD #D1A9DE #E9D5EF

Accessibility & contrast

On white

3.04
#BA7DCD on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.90
#BA7DCD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA7DCD
6.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA7DCD#FFFFFF#000000##000000
##BA7DCD1.003.046.906.90
#FFFFFF3.041.0021.0021.00
#0000006.9021.001.001.00
##0000006.9021.001.001.00

Color blindness preview

Protanopia (red-blind)
#7190D0
Deuteranopia (green-blind)
#8196CB
Tritanopia (blue-blind)
#BA879B
Achromatopsia (no color)
#949494

Design tokens & code

CSS
--color: #ba7dcd;
/* rgb */ color: rgb(186, 125, 205);
/* oklch */ color: oklch(68.1% 0.132 317.9);
Tailwind
colors: {
  custom: {
    50: '#d0a4dc',
    500: '#ba7dcd',
    950: '#000000',
  },
}
SCSS
$custom: #ba7dcd;
$custom-light: #d0a4dc;
$custom-dark: #000000;
JSON
{
  "hex": "#ba7dcd",
  "rgb": {
    "r": 186,
    "g": 125,
    "b": 205
  },
  "hsl": {
    "h": 285.75,
    "s": 44.444,
    "l": 64.706
  },
  "oklch": {
    "l": 0.68089,
    "c": 0.13158,
    "h": 317.9
  },
  "luminance": 0.29514
}

Semantic roles & 50–950 ramp

primary
#BA7DCD
secondary
#CCE1C5
accent
#B82E4F
background
#FCFAFD
surface
#F9F4FB
border
#D2CED4
text
#140F15
muted
#827F83

Preview Lab

Preview with #BA7DCD

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

Preview Lab → · Contrast checker → · Palette generator →

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