#BA88F9#BA88F9

#BA88F9 is a light, vivid violet. Relative luminance 0.349; OKLCH L 72.1% C 0.165 H 302.9°. Best body text is #000000 at 7.98:1 contrast (WCAG AA passes).

Color values

HEX#BA88F9
RGBrgb(186, 136, 249)
HSLhsl(267, 90%, 75%)
HSVhsv(267, 45%, 98%)
CMYKcmyk(25.3%, 45.4%, 0%, 2.4%)
CIE-LABlab(65.66, 41.00, -49.58)
CIE-LCHlch(65.66, 64.34, 309.59°)
OKLaboklab(72.07% 0.0898 -0.1388)
OKLCHoklch(72.07% 0.165 302.9)
XYZxyz(46.1490, 34.8870, 93.9068)
Luminance0.3489 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA88F9 #C7F988
analogous
#888EF9 #BA88F9 #F388F9
triadic
#BA88F9 #F9BA88 #88F9BA
tetradic
#BA88F9 #F9888E #C7F988 #88F9F3
square
#BA88F9 #F9888E #C7F988 #88F9F3
split-complementary
#BA88F9 #F9F388 #8EF988
monochromatic
#7613F3 #984EF6 #BA88F9 #DCC2FC #EEE2FE

Accessibility & contrast

On white

2.63
#BA88F9 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.98
#BA88F9 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BA88F9
7.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA88F9#FFFFFF#000000##000000
##BA88F91.002.637.987.98
#FFFFFF2.631.0021.0021.00
#0000007.9821.001.001.00
##0000007.9821.001.001.00

Color blindness preview

Protanopia (red-blind)
#699EFD
Deuteranopia (green-blind)
#759FF6
Tritanopia (blue-blind)
#AF9CB5
Achromatopsia (no color)
#9F9F9F

Design tokens & code

CSS
--color: #ba88f9;
/* rgb */ color: rgb(186, 136, 249);
/* oklch */ color: oklch(72.1% 0.165 302.9);
Tailwind
colors: {
  custom: {
    50: '#d1abfc',
    500: '#ba88f9',
    950: '#000000',
  },
}
SCSS
$custom: #ba88f9;
$custom-light: #d1abfc;
$custom-dark: #000000;
JSON
{
  "hex": "#ba88f9",
  "rgb": {
    "r": 186,
    "g": 136,
    "b": 249
  },
  "hsl": {
    "h": 266.549,
    "s": 90.4,
    "l": 75.49
  },
  "oklch": {
    "l": 0.7207,
    "c": 0.1653,
    "h": 302.9
  },
  "luminance": 0.34887
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #BA88F9

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

Preview Lab → · Contrast checker → · Palette generator →

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