#BA85F8#BA85F8

#BA85F8 is a light, vivid violet. Relative luminance 0.340; OKLCH L 71.5% C 0.169 H 303.7°. Best body text is #000000 at 7.80:1 contrast (WCAG AA passes).

Color values

HEX#BA85F8
RGBrgb(186, 133, 248)
HSLhsl(268, 89%, 75%)
HSVhsv(268, 46%, 97%)
CMYKcmyk(25%, 46.4%, 0%, 2.7%)
CIE-LABlab(64.96, 42.41, -50.15)
CIE-LCHlch(64.96, 65.67, 310.22°)
OKLaboklab(71.53% 0.0937 -0.1404)
OKLCHoklch(71.53% 0.169 303.7)
XYZxyz(45.5768, 33.9916, 92.9487)
Luminance0.3399 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA85F8 #C3F885
analogous
#858AF8 #BA85F8 #F385F8
triadic
#BA85F8 #F8BA85 #85F8BA
tetradic
#BA85F8 #F8858A #C3F885 #85F8F3
square
#BA85F8 #F8858A #C3F885 #85F8F3
split-complementary
#BA85F8 #F8F385 #8AF885
monochromatic
#7911F1 #994BF5 #BA85F8 #DBBFFB #EFE2FD

Accessibility & contrast

On white

2.69
#BA85F8 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.80
#BA85F8 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BA85F8
7.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA85F8#FFFFFF#000000##000000
##BA85F81.002.697.807.80
#FFFFFF2.691.0021.0021.00
#0000007.8021.001.001.00
##0000007.8021.001.001.00

Color blindness preview

Protanopia (red-blind)
#659CFC
Deuteranopia (green-blind)
#729EF5
Tritanopia (blue-blind)
#AF99B3
Achromatopsia (no color)
#9E9E9E

Design tokens & code

CSS
--color: #ba85f8;
/* rgb */ color: rgb(186, 133, 248);
/* oklch */ color: oklch(71.5% 0.169 303.7);
Tailwind
colors: {
  custom: {
    50: '#d1a9fb',
    500: '#ba85f8',
    950: '#000000',
  },
}
SCSS
$custom: #ba85f8;
$custom-light: #d1a9fb;
$custom-dark: #000000;
JSON
{
  "hex": "#ba85f8",
  "rgb": {
    "r": 186,
    "g": 133,
    "b": 248
  },
  "hsl": {
    "h": 267.652,
    "s": 89.147,
    "l": 74.706
  },
  "oklch": {
    "l": 0.71526,
    "c": 0.1688,
    "h": 303.7
  },
  "luminance": 0.33991
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #BA85F8

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

Preview Lab → · Contrast checker → · Palette generator →

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