#BA7FFD#BA7FFD

#BA7FFD is a light, vivid violet. Relative luminance 0.327; OKLCH L 70.8% C 0.184 H 303.7°. Best body text is #000000 at 7.54:1 contrast (WCAG AA passes).

Color values

HEX#BA7FFD
RGBrgb(186, 127, 253)
HSLhsl(268, 97%, 75%)
HSVhsv(268, 50%, 99%)
CMYKcmyk(26.5%, 49.8%, 0%, 0.8%)
CIE-LABlab(63.93, 46.82, -54.52)
CIE-LCHlch(63.93, 71.86, 310.65°)
OKLaboklab(70.84% 0.1021 -0.1532)
OKLCHoklch(70.84% 0.184 303.7)
XYZxyz(45.5648, 32.7098, 96.8226)
Luminance0.3271 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA7FFD #C2FD7F
analogous
#7F83FD #BA7FFD #F97FFD
triadic
#BA7FFD #FDBA7F #7FFDBA
tetradic
#BA7FFD #FD7F83 #C2FD7F #7FFDF9
square
#BA7FFD #FD7F83 #C2FD7F #7FFDF9
split-complementary
#BA7FFD #FDF97F #83FD7F
monochromatic
#7906FB #9A43FC #BA7FFD #DABBFE #EFE1FF

Accessibility & contrast

On white

2.78
#BA7FFD on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.54
#BA7FFD on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BA7FFD
7.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA7FFD#FFFFFF#000000##000000
##BA7FFD1.002.787.547.54
#FFFFFF2.781.0021.0021.00
#0000007.5421.001.001.00
##0000007.5421.001.001.00

Color blindness preview

Protanopia (red-blind)
#5899FF
Deuteranopia (green-blind)
#689BFA
Tritanopia (blue-blind)
#AE96B2
Achromatopsia (no color)
#9B9B9B

Design tokens & code

CSS
--color: #ba7ffd;
/* rgb */ color: rgb(186, 127, 253);
/* oklch */ color: oklch(70.8% 0.184 303.7);
Tailwind
colors: {
  custom: {
    50: '#d1a5fe',
    500: '#ba7ffd',
    950: '#000000',
  },
}
SCSS
$custom: #ba7ffd;
$custom-light: #d1a5fe;
$custom-dark: #000000;
JSON
{
  "hex": "#ba7ffd",
  "rgb": {
    "r": 186,
    "g": 127,
    "b": 253
  },
  "hsl": {
    "h": 268.095,
    "s": 96.923,
    "l": 74.51
  },
  "oklch": {
    "l": 0.7084,
    "c": 0.18407,
    "h": 303.7
  },
  "luminance": 0.3271
}

Semantic roles & 50–950 ramp

primary
#BA7FFD
secondary
#E7F7D4
accent
#E6007A
background
#FDFAFF
surface
#FAF4FF
border
#D3CED7
text
#140F18
muted
#837F86

Preview Lab

Preview with #BA7FFD

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

Preview Lab → · Contrast checker → · Palette generator →

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