#BA85FE#BA85FE

#BA85FE is a light, vivid violet. Relative luminance 0.344; OKLCH L 71.8% C 0.176 H 302.4°. Best body text is #000000 at 7.87:1 contrast (WCAG AA passes).

Color values

HEX#BA85FE
RGBrgb(186, 133, 254)
HSLhsl(266, 98%, 76%)
HSVhsv(266, 48%, 100%)
CMYKcmyk(26.8%, 47.6%, 0%, 0.4%)
CIE-LABlab(65.26, 43.81, -52.96)
CIE-LCHlch(65.26, 68.73, 309.60°)
OKLaboklab(71.85% 0.0944 -0.1486)
OKLCHoklch(71.85% 0.176 302.4)
XYZxyz(46.5226, 34.3699, 97.9298)
Luminance0.3437 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA85FE #C9FE85
analogous
#858CFE #BA85FE #F685FE
triadic
#BA85FE #FEBA85 #85FEBA
tetradic
#BA85FE #FE858C #C9FE85 #85FEF6
square
#BA85FE #FE858C #C9FE85 #85FEF6
split-complementary
#BA85FE #FEF685 #8CFE85
monochromatic
#750CFD #9848FE #BA85FE #DCC2FE #EEE1FF

Accessibility & contrast

On white

2.67
#BA85FE on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.87
#BA85FE on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BA85FE
7.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA85FE#FFFFFF#000000##000000
##BA85FE1.002.677.877.87
#FFFFFF2.671.0021.0021.00
#0000007.8721.001.001.00
##0000007.8721.001.001.00

Color blindness preview

Protanopia (red-blind)
#619DFF
Deuteranopia (green-blind)
#6E9EFB
Tritanopia (blue-blind)
#AE9BB6
Achromatopsia (no color)
#9E9E9E

Design tokens & code

CSS
--color: #ba85fe;
/* rgb */ color: rgb(186, 133, 254);
/* oklch */ color: oklch(71.8% 0.176 302.4);
Tailwind
colors: {
  custom: {
    50: '#d1a9ff',
    500: '#ba85fe',
    950: '#000000',
  },
}
SCSS
$custom: #ba85fe;
$custom-light: #d1a9ff;
$custom-dark: #000000;
JSON
{
  "hex": "#ba85fe",
  "rgb": {
    "r": 186,
    "g": 133,
    "b": 254
  },
  "hsl": {
    "h": 266.281,
    "s": 98.374,
    "l": 75.882
  },
  "oklch": {
    "l": 0.71847,
    "c": 0.17605,
    "h": 302.4
  },
  "luminance": 0.3437
}

Semantic roles & 50–950 ramp

primary
#BA85FE
secondary
#E8F7D4
accent
#E60081
background
#FDFAFF
surface
#FAF4FF
border
#D3CED7
text
#141018
muted
#837F86

Preview Lab

Preview with #BA85FE

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

Preview Lab → · Contrast checker → · Palette generator →

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