#BA7DF8#BA7DF8

#BA7DF8 is a light, vivid violet. Relative luminance 0.319; OKLCH L 70.3% C 0.181 H 305.1°. Best body text is #000000 at 7.38:1 contrast (WCAG AA passes).

Color values

HEX#BA7DF8
RGBrgb(186, 125, 248)
HSLhsl(270, 90%, 73%)
HSVhsv(270, 50%, 97%)
CMYKcmyk(25%, 49.6%, 0%, 2.7%)
CIE-LABlab(63.25, 46.73, -52.85)
CIE-LCHlch(63.25, 70.55, 311.48°)
OKLaboklab(70.25% 0.1042 -0.1483)
OKLCHoklch(70.25% 0.181 305.1)
XYZxyz(44.5230, 31.8839, 92.5974)
Luminance0.3188 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA7DF8 #BBF87D
analogous
#7D7DF8 #BA7DF8 #F77DF8
triadic
#BA7DF8 #F8BA7D #7DF8BA
tetradic
#BA7DF8 #F87D7D #BBF87D #7DF8F7
square
#BA7DF8 #F87D7D #BBF87D #7DF8F7
split-complementary
#BA7DF8 #F8F77D #7DF87D
monochromatic
#7C0DEE #9B43F5 #BA7DF8 #D9B7FB #F0E2FD

Accessibility & contrast

On white

2.85
#BA7DF8 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.38
#BA7DF8 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BA7DF8
7.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA7DF8#FFFFFF#000000##000000
##BA7DF81.002.857.387.38
#FFFFFF2.851.0021.0021.00
#0000007.3821.001.001.00
##0000007.3821.001.001.00

Color blindness preview

Protanopia (red-blind)
#5897FC
Deuteranopia (green-blind)
#6A99F5
Tritanopia (blue-blind)
#B093AF
Achromatopsia (no color)
#999999

Design tokens & code

CSS
--color: #ba7df8;
/* rgb */ color: rgb(186, 125, 248);
/* oklch */ color: oklch(70.3% 0.181 305.1);
Tailwind
colors: {
  custom: {
    50: '#d1a4fb',
    500: '#ba7df8',
    950: '#000000',
  },
}
SCSS
$custom: #ba7df8;
$custom-light: #d1a4fb;
$custom-dark: #000000;
JSON
{
  "hex": "#ba7df8",
  "rgb": {
    "r": 186,
    "g": 125,
    "b": 248
  },
  "hsl": {
    "h": 269.756,
    "s": 89.781,
    "l": 73.137
  },
  "oklch": {
    "l": 0.70252,
    "c": 0.18126,
    "h": 305.1
  },
  "luminance": 0.31884
}

Semantic roles & 50–950 ramp

primary
#BA7DF8
secondary
#E6F6D5
accent
#E60074
background
#FDFAFF
surface
#FAF4FF
border
#D3CED7
text
#140F17
muted
#837F85

Preview Lab

Preview with #BA7DF8

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

Preview Lab → · Contrast checker → · Palette generator →

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