#BA85F7#BA85F7

#BA85F7 is a light, vivid violet. Relative luminance 0.339; OKLCH L 71.5% C 0.168 H 303.9°. Best body text is #000000 at 7.79:1 contrast (WCAG AA passes).

Color values

HEX#BA85F7
RGBrgb(186, 133, 247)
HSLhsl(268, 88%, 75%)
HSVhsv(268, 46%, 97%)
CMYKcmyk(24.7%, 46.2%, 0%, 3.1%)
CIE-LABlab(64.91, 42.18, -49.67)
CIE-LCHlch(64.91, 65.16, 310.33°)
OKLaboklab(71.47% 0.0935 -0.139)
OKLCHoklch(71.47% 0.168 303.9)
XYZxyz(45.4221, 33.9297, 92.1338)
Luminance0.3393 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA85F7 #C2F785
analogous
#8589F7 #BA85F7 #F385F7
triadic
#BA85F7 #F7BA85 #85F7BA
tetradic
#BA85F7 #F78589 #C2F785 #85F7F3
square
#BA85F7 #F78589 #C2F785 #85F7F3
split-complementary
#BA85F7 #F7F385 #89F785
monochromatic
#7912EF #9A4CF3 #BA85F7 #DABEFB #EFE2FD

Accessibility & contrast

On white

2.70
#BA85F7 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.79
#BA85F7 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BA85F7
7.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA85F7#FFFFFF#000000##000000
##BA85F71.002.707.797.79
#FFFFFF2.701.0021.0021.00
#0000007.7921.001.001.00
##0000007.7921.001.001.00

Color blindness preview

Protanopia (red-blind)
#659CFB
Deuteranopia (green-blind)
#739DF4
Tritanopia (blue-blind)
#B099B2
Achromatopsia (no color)
#9D9D9D

Design tokens & code

CSS
--color: #ba85f7;
/* rgb */ color: rgb(186, 133, 247);
/* oklch */ color: oklch(71.5% 0.168 303.9);
Tailwind
colors: {
  custom: {
    50: '#d1a9fa',
    500: '#ba85f7',
    950: '#000000',
  },
}
SCSS
$custom: #ba85f7;
$custom-light: #d1a9fa;
$custom-dark: #000000;
JSON
{
  "hex": "#ba85f7",
  "rgb": {
    "r": 186,
    "g": 133,
    "b": 247
  },
  "hsl": {
    "h": 267.895,
    "s": 87.692,
    "l": 74.51
  },
  "oklch": {
    "l": 0.71474,
    "c": 0.16758,
    "h": 303.9
  },
  "luminance": 0.3393
}

Semantic roles & 50–950 ramp

primary
#BA85F7
secondary
#E7F5D6
accent
#E4017B
background
#FDFAFF
surface
#FAF4FF
border
#D3CED7
text
#141017
muted
#837F85

Preview Lab

Preview with #BA85F7

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

Preview Lab → · Contrast checker → · Palette generator →

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