#BA85EC#BA85EC

#BA85EC is a light, vivid violet. Relative luminance 0.333; OKLCH L 70.9% C 0.154 H 306.6°. Best body text is #000000 at 7.65:1 contrast (WCAG AA passes).

Color values

HEX#BA85EC
RGBrgb(186, 133, 236)
HSLhsl(271, 73%, 72%)
HSVhsv(271, 44%, 93%)
CMYKcmyk(21.2%, 43.6%, 0%, 7.5%)
CIE-LABlab(64.38, 39.66, -44.45)
CIE-LCHlch(64.38, 59.57, 311.75°)
OKLaboklab(70.91% 0.092 -0.1239)
OKLCHoklch(70.91% 0.154 306.6)
XYZxyz(43.7745, 33.2707, 83.4564)
Luminance0.3327 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA85EC #B7EC85
analogous
#8785EC #BA85EC #EC85EA
triadic
#BA85EC #ECBA85 #85ECBA
tetradic
#BA85EC #EC8785 #B7EC85 #85EAEC
square
#BA85EC #EC8785 #B7EC85 #85EAEC
split-complementary
#BA85EC #EAEC85 #85EC87
monochromatic
#7E21D5 #9C50E4 #BA85EC #D8BAF4 #F0E5FB

Accessibility & contrast

On white

2.74
#BA85EC on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.65
#BA85EC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BA85EC
7.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA85EC#FFFFFF#000000##000000
##BA85EC1.002.747.657.65
#FFFFFF2.741.0021.0021.00
#0000007.6521.001.001.00
##0000007.6521.001.001.00

Color blindness preview

Protanopia (red-blind)
#6C9AF0
Deuteranopia (green-blind)
#799DE9
Tritanopia (blue-blind)
#B396AD
Achromatopsia (no color)
#9C9C9C

Design tokens & code

CSS
--color: #ba85ec;
/* rgb */ color: rgb(186, 133, 236);
/* oklch */ color: oklch(70.9% 0.154 306.6);
Tailwind
colors: {
  custom: {
    50: '#d0a9f2',
    500: '#ba85ec',
    950: '#000000',
  },
}
SCSS
$custom: #ba85ec;
$custom-light: #d0a9f2;
$custom-dark: #000000;
JSON
{
  "hex": "#ba85ec",
  "rgb": {
    "r": 186,
    "g": 133,
    "b": 236
  },
  "hsl": {
    "h": 270.874,
    "s": 73.05,
    "l": 72.353
  },
  "oklch": {
    "l": 0.70906,
    "c": 0.15428,
    "h": 306.6
  },
  "luminance": 0.3327
}

Semantic roles & 50–950 ramp

primary
#BA85EC
secondary
#E5F3D8
accent
#D51070
background
#FDFAFE
surface
#FAF4FD
border
#D3CED5
text
#141017
muted
#837F85

Preview Lab

Preview with #BA85EC

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

Preview Lab → · Contrast checker → · Palette generator →

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