#BA68CC#BA68CC

#BA68CC is a light, vivid purple. Relative luminance 0.247; OKLCH L 64.7% C 0.166 H 320.2°. Best body text is #000000 at 5.94:1 contrast (WCAG AA passes).

Color values

HEX#BA68CC
RGBrgb(186, 104, 204)
HSLhsl(289, 50%, 60%)
HSVhsv(289, 49%, 80%)
CMYKcmyk(8.8%, 49%, 0%, 20%)
CIE-LABlab(56.78, 48.37, -38.46)
CIE-LCHlch(56.78, 61.80, 321.51°)
OKLaboklab(64.75% 0.1277 -0.1064)
OKLCHoklch(64.75% 0.166 320.2)
XYZxyz(36.0978, 24.7008, 59.9813)
Luminance0.2470 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA68CC #7ACC68
analogous
#8868CC #BA68CC #CC68AC
triadic
#BA68CC #CCBA68 #68CCBA
tetradic
#BA68CC #CC8868 #7ACC68 #68ACCC
square
#BA68CC #CC8868 #7ACC68 #68ACCC
split-complementary
#BA68CC #ACCC68 #68CC88
monochromatic
#7A2F8B #A23EB8 #BA68CC #CF96DB #E4C3EB

Accessibility & contrast

On white

3.54
#BA68CC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.94
#BA68CC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA68CC
5.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA68CC#FFFFFF#000000##000000
##BA68CC1.003.545.945.94
#FFFFFF3.541.0021.0021.00
#0000005.9421.001.001.00
##0000005.9421.001.001.00

Color blindness preview

Protanopia (red-blind)
#5882CF
Deuteranopia (green-blind)
#708BC9
Tritanopia (blue-blind)
#BB7591
Achromatopsia (no color)
#888888

Design tokens & code

CSS
--color: #ba68cc;
/* rgb */ color: rgb(186, 104, 204);
/* oklch */ color: oklch(64.7% 0.166 320.2);
Tailwind
colors: {
  custom: {
    50: '#d196dc',
    500: '#ba68cc',
    950: '#000000',
  },
}
SCSS
$custom: #ba68cc;
$custom-light: #d196dc;
$custom-dark: #000000;
JSON
{
  "hex": "#ba68cc",
  "rgb": {
    "r": 186,
    "g": 104,
    "b": 204
  },
  "hsl": {
    "h": 289.2,
    "s": 49.505,
    "l": 60.392
  },
  "oklch": {
    "l": 0.64748,
    "c": 0.16621,
    "h": 320.2
  },
  "luminance": 0.24699
}

Semantic roles & 50–950 ramp

primary
#BA68CC
secondary
#BCDBB5
accent
#BD2943
background
#FDF9FD
surface
#FAF2FB
border
#D3CCD4
text
#140D15
muted
#837E83

Preview Lab

Preview with #BA68CC

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

Preview Lab → · Contrast checker → · Palette generator →

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