#BA7DCC#BA7DCC

#BA7DCC is a light, vivid purple. Relative luminance 0.295; OKLCH L 68.0% C 0.130 H 318.3°. Best body text is #000000 at 6.89:1 contrast (WCAG AA passes).

Color values

HEX#BA7DCC
RGBrgb(186, 125, 204)
HSLhsl(286, 44%, 65%)
HSVhsv(286, 39%, 80%)
CMYKcmyk(8.8%, 38.7%, 0%, 20%)
CIE-LABlab(61.19, 37.17, -31.58)
CIE-LCHlch(61.19, 48.77, 319.64°)
OKLaboklab(68.04% 0.0974 -0.0868)
OKLCHoklch(68.04% 0.13 318.3)
XYZxyz(38.4809, 29.4671, 60.7757)
Luminance0.2947 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA7DCC #8FCC7D
analogous
#937DCC #BA7DCC #CC7DB7
triadic
#BA7DCC #CCBA7D #7DCCBA
tetradic
#BA7DCC #CC937D #8FCC7D #7DB7CC
square
#BA7DCC #CC937D #8FCC7D #7DB7CC
split-complementary
#BA7DCC #B7CC7D #7DCC93
monochromatic
#803A94 #A351BB #BA7DCC #D1A9DD #E9D5EE

Accessibility & contrast

On white

3.05
#BA7DCC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.89
#BA7DCC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA7DCC
6.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA7DCC#FFFFFF#000000##000000
##BA7DCC1.003.056.896.89
#FFFFFF3.051.0021.0021.00
#0000006.8921.001.001.00
##0000006.8921.001.001.00

Color blindness preview

Protanopia (red-blind)
#7290CF
Deuteranopia (green-blind)
#8196CA
Tritanopia (blue-blind)
#BA879B
Achromatopsia (no color)
#949494

Design tokens & code

CSS
--color: #ba7dcc;
/* rgb */ color: rgb(186, 125, 204);
/* oklch */ color: oklch(68.0% 0.130 318.3);
Tailwind
colors: {
  custom: {
    50: '#d0a4dc',
    500: '#ba7dcc',
    950: '#000000',
  },
}
SCSS
$custom: #ba7dcc;
$custom-light: #d0a4dc;
$custom-dark: #000000;
JSON
{
  "hex": "#ba7dcc",
  "rgb": {
    "r": 186,
    "g": 125,
    "b": 204
  },
  "hsl": {
    "h": 286.329,
    "s": 43.646,
    "l": 64.51
  },
  "oklch": {
    "l": 0.68043,
    "c": 0.13047,
    "h": 318.3
  },
  "luminance": 0.29466
}

Semantic roles & 50–950 ramp

primary
#BA7DCC
secondary
#CBE0C5
accent
#B72F4E
background
#FCFAFD
surface
#F9F4FB
border
#D2CED4
text
#140F15
muted
#827F83

Preview Lab

Preview with #BA7DCC

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

Preview Lab → · Contrast checker → · Palette generator →

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