#BA7FCA#BA7FCA

#BA7FCA is a light, vivid purple. Relative luminance 0.299; OKLCH L 68.3% C 0.125 H 318.9°. Best body text is #000000 at 6.98:1 contrast (WCAG AA passes).

Color values

HEX#BA7FCA
RGBrgb(186, 127, 202)
HSLhsl(287, 41%, 65%)
HSVhsv(287, 37%, 79%)
CMYKcmyk(7.9%, 37.1%, 0%, 20.8%)
CIE-LABlab(61.55, 35.66, -29.90)
CIE-LCHlch(61.55, 46.54, 320.03°)
OKLaboklab(68.29% 0.094 -0.082)
OKLCHoklch(68.29% 0.125 318.9)
XYZxyz(38.4983, 29.8832, 59.6057)
Luminance0.2988 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA7FCA #8FCA7F
analogous
#957FCA #BA7FCA #CA7FB5
triadic
#BA7FCA #CABA7F #7FCABA
tetradic
#BA7FCA #CA957F #8FCA7F #7FB5CA
square
#BA7FCA #CA957F #8FCA7F #7FB5CA
split-complementary
#BA7FCA #B5CA7F #7FCA95
monochromatic
#803C92 #A354B8 #BA7FCA #D1AADC #E9D6EE

Accessibility & contrast

On white

3.01
#BA7FCA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.98
#BA7FCA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA7FCA
6.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA7FCA#FFFFFF#000000##000000
##BA7FCA1.003.016.986.98
#FFFFFF3.011.0021.0021.00
#0000006.9821.001.001.00
##0000006.9821.001.001.00

Color blindness preview

Protanopia (red-blind)
#7591CD
Deuteranopia (green-blind)
#8397C8
Tritanopia (blue-blind)
#BB889B
Achromatopsia (no color)
#959595

Design tokens & code

CSS
--color: #ba7fca;
/* rgb */ color: rgb(186, 127, 202);
/* oklch */ color: oklch(68.3% 0.125 318.9);
Tailwind
colors: {
  custom: {
    50: '#d0a5da',
    500: '#ba7fca',
    950: '#000000',
  },
}
SCSS
$custom: #ba7fca;
$custom-light: #d0a5da;
$custom-dark: #000000;
JSON
{
  "hex": "#ba7fca",
  "rgb": {
    "r": 186,
    "g": 127,
    "b": 202
  },
  "hsl": {
    "h": 287.2,
    "s": 41.436,
    "l": 64.51
  },
  "oklch": {
    "l": 0.68289,
    "c": 0.12474,
    "h": 318.9
  },
  "luminance": 0.29882
}

Semantic roles & 50–950 ramp

primary
#BA7FCA
secondary
#CBDFC5
accent
#B4314D
background
#FCFAFD
surface
#F9F4FA
border
#D2CED3
text
#140F15
muted
#827F83

Preview Lab

Preview with #BA7FCA

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

Preview Lab → · Contrast checker → · Palette generator →

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