#BA88F7#BA88F7

#BA88F7 is a light, vivid violet. Relative luminance 0.348; OKLCH L 72.0% C 0.163 H 303.3°. Best body text is #000000 at 7.95:1 contrast (WCAG AA passes).

Color values

HEX#BA88F7
RGBrgb(186, 136, 247)
HSLhsl(267, 87%, 75%)
HSVhsv(267, 45%, 97%)
CMYKcmyk(24.7%, 44.9%, 0%, 3.1%)
CIE-LABlab(65.56, 40.54, -48.64)
CIE-LCHlch(65.56, 63.31, 309.81°)
OKLaboklab(71.97% 0.0895 -0.136)
OKLCHoklch(71.97% 0.163 303.3)
XYZxyz(45.8387, 34.7629, 92.2727)
Luminance0.3476 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA88F7 #C5F788
analogous
#888DF7 #BA88F7 #F288F7
triadic
#BA88F7 #F7BA88 #88F7BA
tetradic
#BA88F7 #F7888D #C5F788 #88F7F2
square
#BA88F7 #F7888D #C5F788 #88F7F2
split-complementary
#BA88F7 #F7F288 #8DF788
monochromatic
#7715EF #994FF3 #BA88F7 #DBC1FB #EEE2FD

Accessibility & contrast

On white

2.64
#BA88F7 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.95
#BA88F7 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BA88F7
7.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA88F7#FFFFFF#000000##000000
##BA88F71.002.647.957.95
#FFFFFF2.641.0021.0021.00
#0000007.9521.001.001.00
##0000007.9521.001.001.00

Color blindness preview

Protanopia (red-blind)
#6A9EFB
Deuteranopia (green-blind)
#769FF4
Tritanopia (blue-blind)
#AF9BB4
Achromatopsia (no color)
#9F9F9F

Design tokens & code

CSS
--color: #ba88f7;
/* rgb */ color: rgb(186, 136, 247);
/* oklch */ color: oklch(72.0% 0.163 303.3);
Tailwind
colors: {
  custom: {
    50: '#d1abfa',
    500: '#ba88f7',
    950: '#000000',
  },
}
SCSS
$custom: #ba88f7;
$custom-light: #d1abfa;
$custom-dark: #000000;
JSON
{
  "hex": "#ba88f7",
  "rgb": {
    "r": 186,
    "g": 136,
    "b": 247
  },
  "hsl": {
    "h": 267.027,
    "s": 87.402,
    "l": 75.098
  },
  "oklch": {
    "l": 0.71966,
    "c": 0.16285,
    "h": 303.3
  },
  "luminance": 0.34763
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #BA88F7

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

Preview Lab → · Contrast checker → · Palette generator →

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