#BA7DFB#BA7DFB

#BA7DFB is a light, vivid violet. Relative luminance 0.321; OKLCH L 70.4% C 0.185 H 304.4°. Best body text is #000000 at 7.41:1 contrast (WCAG AA passes).

Color values

HEX#BA7DFB
RGBrgb(186, 125, 251)
HSLhsl(269, 94%, 74%)
HSVhsv(269, 50%, 98%)
CMYKcmyk(25.9%, 50.2%, 0%, 1.6%)
CIE-LABlab(63.40, 47.43, -54.26)
CIE-LCHlch(63.40, 72.06, 311.16°)
OKLaboklab(70.42% 0.1045 -0.1524)
OKLCHoklch(70.42% 0.185 304.4)
XYZxyz(44.9922, 32.0716, 95.0682)
Luminance0.3207 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA7DFB #BEFB7D
analogous
#7D7FFB #BA7DFB #F97DFB
triadic
#BA7DFB #FBBA7D #7DFBBA
tetradic
#BA7DFB #FB7D7F #BEFB7D #7DFBF9
square
#BA7DFB #FB7D7F #BEFB7D #7DFBF9
split-complementary
#BA7DFB #FBF97D #7FFB7D
monochromatic
#7B08F6 #9A42F9 #BA7DFB #DAB8FD #EFE1FE

Accessibility & contrast

On white

2.83
#BA7DFB on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.41
#BA7DFB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BA7DFB
7.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA7DFB#FFFFFF#000000##000000
##BA7DFB1.002.837.417.41
#FFFFFF2.831.0021.0021.00
#0000007.4121.001.001.00
##0000007.4121.001.001.00

Color blindness preview

Protanopia (red-blind)
#5698FF
Deuteranopia (green-blind)
#679AF8
Tritanopia (blue-blind)
#AF94B1
Achromatopsia (no color)
#999999

Design tokens & code

CSS
--color: #ba7dfb;
/* rgb */ color: rgb(186, 125, 251);
/* oklch */ color: oklch(70.4% 0.185 304.4);
Tailwind
colors: {
  custom: {
    50: '#d1a4fd',
    500: '#ba7dfb',
    950: '#000000',
  },
}
SCSS
$custom: #ba7dfb;
$custom-light: #d1a4fd;
$custom-dark: #000000;
JSON
{
  "hex": "#ba7dfb",
  "rgb": {
    "r": 186,
    "g": 125,
    "b": 251
  },
  "hsl": {
    "h": 269.048,
    "s": 94.03,
    "l": 73.725
  },
  "oklch": {
    "l": 0.70418,
    "c": 0.18478,
    "h": 304.4
  },
  "luminance": 0.32071
}

Semantic roles & 50–950 ramp

primary
#BA7DFB
secondary
#E6F6D5
accent
#E60076
background
#FDFAFF
surface
#FAF4FF
border
#D3CED7
text
#140F18
muted
#837F86

Preview Lab

Preview with #BA7DFB

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

Preview Lab → · Contrast checker → · Palette generator →

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