#BA85F9#BA85F9

#BA85F9 is a light, vivid violet. Relative luminance 0.341; OKLCH L 71.6% C 0.170 H 303.5°. Best body text is #000000 at 7.81:1 contrast (WCAG AA passes).

Color values

HEX#BA85F9
RGBrgb(186, 133, 249)
HSLhsl(267, 91%, 75%)
HSVhsv(267, 47%, 98%)
CMYKcmyk(25.3%, 46.6%, 0%, 2.4%)
CIE-LABlab(65.01, 42.64, -50.62)
CIE-LCHlch(65.01, 66.18, 310.11°)
OKLaboklab(71.58% 0.0938 -0.1418)
OKLCHoklch(71.58% 0.17 303.5)
XYZxyz(45.7324, 34.0538, 93.7679)
Luminance0.3405 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA85F9 #C4F985
analogous
#858AF9 #BA85F9 #F485F9
triadic
#BA85F9 #F9BA85 #85F9BA
tetradic
#BA85F9 #F9858A #C4F985 #85F9F4
square
#BA85F9 #F9858A #C4F985 #85F9F4
split-complementary
#BA85F9 #F9F485 #8AF985
monochromatic
#7810F3 #994BF6 #BA85F9 #DBBFFC #EFE2FE

Accessibility & contrast

On white

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

On black

7.81
#BA85F9 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BA85F9
7.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA85F9#FFFFFF#000000##000000
##BA85F91.002.697.817.81
#FFFFFF2.691.0021.0021.00
#0000007.8121.001.001.00
##0000007.8121.001.001.00

Color blindness preview

Protanopia (red-blind)
#649CFD
Deuteranopia (green-blind)
#719EF6
Tritanopia (blue-blind)
#AF99B3
Achromatopsia (no color)
#9E9E9E

Design tokens & code

CSS
--color: #ba85f9;
/* rgb */ color: rgb(186, 133, 249);
/* oklch */ color: oklch(71.6% 0.170 303.5);
Tailwind
colors: {
  custom: {
    50: '#d1a9fc',
    500: '#ba85f9',
    950: '#000000',
  },
}
SCSS
$custom: #ba85f9;
$custom-light: #d1a9fc;
$custom-dark: #000000;
JSON
{
  "hex": "#ba85f9",
  "rgb": {
    "r": 186,
    "g": 133,
    "b": 249
  },
  "hsl": {
    "h": 267.414,
    "s": 90.625,
    "l": 74.902
  },
  "oklch": {
    "l": 0.71579,
    "c": 0.17,
    "h": 303.5
  },
  "luminance": 0.34054
}

Semantic roles & 50–950 ramp

primary
#BA85F9
secondary
#E7F6D5
accent
#E6007D
background
#FDFAFF
surface
#FAF4FF
border
#D3CED7
text
#141017
muted
#837F85

Preview Lab

Preview with #BA85F9

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

Preview Lab → · Contrast checker → · Palette generator →

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