#BA85DC#BA85DC

#BA85DC is a light, vivid violet. Relative luminance 0.324; OKLCH L 70.1% C 0.135 H 311.3°. Best body text is #000000 at 7.48:1 contrast (WCAG AA passes).

Color values

HEX#BA85DC
RGBrgb(186, 133, 220)
HSLhsl(277, 55%, 69%)
HSVhsv(277, 40%, 86%)
CMYKcmyk(15.5%, 39.5%, 0%, 13.7%)
CIE-LABlab(63.66, 36.13, -36.71)
CIE-LCHlch(63.66, 51.51, 314.55°)
OKLaboklab(70.13% 0.0891 -0.1015)
OKLCHoklch(70.13% 0.135 311.3)
XYZxyz(41.5532, 32.3821, 71.7576)
Luminance0.3238 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA85DC #A7DC85
analogous
#8F85DC #BA85DC #DC85D3
triadic
#BA85DC #DCBA85 #85DCBA
tetradic
#BA85DC #DC8F85 #A7DC85 #85D3DC
square
#BA85DC #DC8F85 #A7DC85 #85D3DC
split-complementary
#BA85DC #D3DC85 #85DC8F
monochromatic
#8133B3 #9F55CE #BA85DC #D5B5EA #F0E4F7

Accessibility & contrast

On white

2.81
#BA85DC on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.48
#BA85DC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BA85DC
7.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA85DC#FFFFFF#000000##000000
##BA85DC1.002.817.487.48
#FFFFFF2.811.0021.0021.00
#0000007.4821.001.001.00
##0000007.4821.001.001.00

Color blindness preview

Protanopia (red-blind)
#7497DF
Deuteranopia (green-blind)
#819BDA
Tritanopia (blue-blind)
#B692A6
Achromatopsia (no color)
#9A9A9A

Design tokens & code

CSS
--color: #ba85dc;
/* rgb */ color: rgb(186, 133, 220);
/* oklch */ color: oklch(70.1% 0.135 311.3);
Tailwind
colors: {
  custom: {
    50: '#d0a9e7',
    500: '#ba85dc',
    950: '#000000',
  },
}
SCSS
$custom: #ba85dc;
$custom-light: #d0a9e7;
$custom-dark: #000000;
JSON
{
  "hex": "#ba85dc",
  "rgb": {
    "r": 186,
    "g": 133,
    "b": 220
  },
  "hsl": {
    "h": 276.552,
    "s": 55.414,
    "l": 69.216
  },
  "oklch": {
    "l": 0.70127,
    "c": 0.13508,
    "h": 311.3
  },
  "luminance": 0.32381
}

Semantic roles & 50–950 ramp

primary
#BA85DC
secondary
#DCEBD2
accent
#C32361
background
#FCFAFE
surface
#F9F4FC
border
#D2CED5
text
#141016
muted
#827F84

Preview Lab

Preview with #BA85DC

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

Preview Lab → · Contrast checker → · Palette generator →

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