#BA7BF8#BA7BF8

#BA7BF8 is a light, vivid violet. Relative luminance 0.314; OKLCH L 69.9% C 0.184 H 305.4°. Best body text is #000000 at 7.28:1 contrast (WCAG AA passes).

Color values

HEX#BA7BF8
RGBrgb(186, 123, 248)
HSLhsl(270, 90%, 73%)
HSVhsv(270, 50%, 97%)
CMYKcmyk(25%, 50.4%, 0%, 2.7%)
CIE-LABlab(62.83, 47.80, -53.52)
CIE-LCHlch(62.83, 71.76, 311.77°)
OKLaboklab(69.94% 0.1068 -0.1502)
OKLCHoklch(69.94% 0.184 305.4)
XYZxyz(44.2724, 31.3826, 92.5139)
Luminance0.3138 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA7BF8 #B9F87B
analogous
#7B7BF8 #BA7BF8 #F87BF7
triadic
#BA7BF8 #F8BA7B #7BF8BA
tetradic
#BA7BF8 #F87B7B #B9F87B #7BF7F8
square
#BA7BF8 #F87B7B #B9F87B #7BF7F8
split-complementary
#BA7BF8 #F7F87B #7BF87B
monochromatic
#7D0DEC #9C41F5 #BA7BF8 #D8B5FB #F0E2FD

Accessibility & contrast

On white

2.89
#BA7BF8 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.28
#BA7BF8 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BA7BF8
7.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA7BF8#FFFFFF#000000##000000
##BA7BF81.002.897.287.28
#FFFFFF2.891.0021.0021.00
#0000007.2821.001.001.00
##0000007.2821.001.001.00

Color blindness preview

Protanopia (red-blind)
#5596FC
Deuteranopia (green-blind)
#6798F5
Tritanopia (blue-blind)
#B091AE
Achromatopsia (no color)
#989898

Design tokens & code

CSS
--color: #ba7bf8;
/* rgb */ color: rgb(186, 123, 248);
/* oklch */ color: oklch(69.9% 0.184 305.4);
Tailwind
colors: {
  custom: {
    50: '#d1a3fb',
    500: '#ba7bf8',
    950: '#000000',
  },
}
SCSS
$custom: #ba7bf8;
$custom-light: #d1a3fb;
$custom-dark: #000000;
JSON
{
  "hex": "#ba7bf8",
  "rgb": {
    "r": 186,
    "g": 123,
    "b": 248
  },
  "hsl": {
    "h": 270.24,
    "s": 89.928,
    "l": 72.745
  },
  "oklch": {
    "l": 0.69942,
    "c": 0.18434,
    "h": 305.4
  },
  "luminance": 0.31382
}

Semantic roles & 50–950 ramp

primary
#BA7BF8
secondary
#E5F6D5
accent
#E60072
background
#FDFAFF
surface
#FAF4FF
border
#D3CED7
text
#140F17
muted
#837F85

Preview Lab

Preview with #BA7BF8

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

Preview Lab → · Contrast checker → · Palette generator →

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