#BA7FCB#BA7FCB

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

Color values

HEX#BA7FCB
RGBrgb(186, 127, 203)
HSLhsl(287, 42%, 65%)
HSVhsv(287, 37%, 80%)
CMYKcmyk(8.4%, 37.4%, 0%, 20.4%)
CIE-LABlab(61.59, 35.87, -30.40)
CIE-LCHlch(61.59, 47.01, 319.72°)
OKLaboklab(68.33% 0.0942 -0.0834)
OKLCHoklch(68.33% 0.126 318.5)
XYZxyz(38.6171, 29.9307, 60.2313)
Luminance0.2993 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA7FCB #90CB7F
analogous
#947FCB #BA7FCB #CB7FB6
triadic
#BA7FCB #CBBA7F #7FCBBA
tetradic
#BA7FCB #CB947F #90CB7F #7FB6CB
square
#BA7FCB #CB947F #90CB7F #7FB6CB
split-complementary
#BA7FCB #B6CB7F #7FCB94
monochromatic
#803C94 #A353B9 #BA7FCB #D1ABDD #E9D6EE

Accessibility & contrast

On white

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

On black

6.99
#BA7FCB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA7FCB
6.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA7FCB#FFFFFF#000000##000000
##BA7FCB1.003.016.996.99
#FFFFFF3.011.0021.0021.00
#0000006.9921.001.001.00
##0000006.9921.001.001.00

Color blindness preview

Protanopia (red-blind)
#7491CE
Deuteranopia (green-blind)
#8397C9
Tritanopia (blue-blind)
#BA889C
Achromatopsia (no color)
#959595

Design tokens & code

CSS
--color: #ba7fcb;
/* rgb */ color: rgb(186, 127, 203);
/* oklch */ color: oklch(68.3% 0.126 318.5);
Tailwind
colors: {
  custom: {
    50: '#d0a5db',
    500: '#ba7fcb',
    950: '#000000',
  },
}
SCSS
$custom: #ba7fcb;
$custom-light: #d0a5db;
$custom-dark: #000000;
JSON
{
  "hex": "#ba7fcb",
  "rgb": {
    "r": 186,
    "g": 127,
    "b": 203
  },
  "hsl": {
    "h": 286.579,
    "s": 42.222,
    "l": 64.706
  },
  "oklch": {
    "l": 0.68334,
    "c": 0.12584,
    "h": 318.5
  },
  "luminance": 0.2993
}

Semantic roles & 50–950 ramp

primary
#BA7FCB
secondary
#CCE0C6
accent
#B5304E
background
#FCFAFD
surface
#F9F4FB
border
#D2CED4
text
#140F15
muted
#827F83

Preview Lab

Preview with #BA7FCB

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

Preview Lab → · Contrast checker → · Palette generator →

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