#BA85FC#BA85FC

#BA85FC is a light, vivid violet. Relative luminance 0.342; OKLCH L 71.7% C 0.174 H 302.8°. Best body text is #000000 at 7.85:1 contrast (WCAG AA passes).

Color values

HEX#BA85FC
RGBrgb(186, 133, 252)
HSLhsl(267, 95%, 75%)
HSVhsv(267, 47%, 99%)
CMYKcmyk(26.2%, 47.2%, 0%, 1.2%)
CIE-LABlab(65.15, 43.34, -52.02)
CIE-LCHlch(65.15, 67.71, 309.80°)
OKLaboklab(71.74% 0.0942 -0.1459)
OKLCHoklch(71.74% 0.174 302.8)
XYZxyz(46.2040, 34.2425, 96.2519)
Luminance0.3424 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA85FC #C7FC85
analogous
#858BFC #BA85FC #F685FC
triadic
#BA85FC #FCBA85 #85FCBA
tetradic
#BA85FC #FC858B #C7FC85 #85FCF6
square
#BA85FC #FC858B #C7FC85 #85FCF6
split-complementary
#BA85FC #FCF685 #8BFC85
monochromatic
#760EF9 #9849FB #BA85FC #DCC1FD #EEE1FE

Accessibility & contrast

On white

2.68
#BA85FC on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.85
#BA85FC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BA85FC
7.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA85FC#FFFFFF#000000##000000
##BA85FC1.002.687.857.85
#FFFFFF2.681.0021.0021.00
#0000007.8521.001.001.00
##0000007.8521.001.001.00

Color blindness preview

Protanopia (red-blind)
#629DFF
Deuteranopia (green-blind)
#6F9EF9
Tritanopia (blue-blind)
#AE9AB5
Achromatopsia (no color)
#9E9E9E

Design tokens & code

CSS
--color: #ba85fc;
/* rgb */ color: rgb(186, 133, 252);
/* oklch */ color: oklch(71.7% 0.174 302.8);
Tailwind
colors: {
  custom: {
    50: '#d1a9fe',
    500: '#ba85fc',
    950: '#000000',
  },
}
SCSS
$custom: #ba85fc;
$custom-light: #d1a9fe;
$custom-dark: #000000;
JSON
{
  "hex": "#ba85fc",
  "rgb": {
    "r": 186,
    "g": 133,
    "b": 252
  },
  "hsl": {
    "h": 266.723,
    "s": 95.2,
    "l": 75.49
  },
  "oklch": {
    "l": 0.7174,
    "c": 0.17364,
    "h": 302.8
  },
  "luminance": 0.34242
}

Semantic roles & 50–950 ramp

primary
#BA85FC
secondary
#E7F6D5
accent
#E6007F
background
#FDFAFF
surface
#FAF4FF
border
#D3CED7
text
#141018
muted
#837F86

Preview Lab

Preview with #BA85FC

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

Preview Lab → · Contrast checker → · Palette generator →

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