#BA7FFC#BA7FFC

#BA7FFC is a light, vivid violet. Relative luminance 0.326; OKLCH L 70.8% C 0.183 H 303.9°. Best body text is #000000 at 7.53:1 contrast (WCAG AA passes).

Color values

HEX#BA7FFC
RGBrgb(186, 127, 252)
HSLhsl(268, 95%, 74%)
HSVhsv(268, 50%, 99%)
CMYKcmyk(26.2%, 49.6%, 0%, 1.2%)
CIE-LABlab(63.87, 46.58, -54.06)
CIE-LCHlch(63.87, 71.36, 310.75°)
OKLaboklab(70.79% 0.102 -0.1518)
OKLCHoklch(70.79% 0.183 303.9)
XYZxyz(45.4059, 32.6463, 95.9859)
Luminance0.3265 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA7FFC #C1FC7F
analogous
#7F83FC #BA7FFC #F97FFC
triadic
#BA7FFC #FCBA7F #7FFCBA
tetradic
#BA7FFC #FC7F83 #C1FC7F #7FFCF9
square
#BA7FFC #FC7F83 #C1FC7F #7FFCF9
split-complementary
#BA7FFC #FCF97F #83FC7F
monochromatic
#7A07F9 #9A43FB #BA7FFC #DABBFD #EFE1FE

Accessibility & contrast

On white

2.79
#BA7FFC on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.53
#BA7FFC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BA7FFC
7.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA7FFC#FFFFFF#000000##000000
##BA7FFC1.002.797.537.53
#FFFFFF2.791.0021.0021.00
#0000007.5321.001.001.00
##0000007.5321.001.001.00

Color blindness preview

Protanopia (red-blind)
#5899FF
Deuteranopia (green-blind)
#699BF9
Tritanopia (blue-blind)
#AF95B2
Achromatopsia (no color)
#9B9B9B

Design tokens & code

CSS
--color: #ba7ffc;
/* rgb */ color: rgb(186, 127, 252);
/* oklch */ color: oklch(70.8% 0.183 303.9);
Tailwind
colors: {
  custom: {
    50: '#d1a5fe',
    500: '#ba7ffc',
    950: '#000000',
  },
}
SCSS
$custom: #ba7ffc;
$custom-light: #d1a5fe;
$custom-dark: #000000;
JSON
{
  "hex": "#ba7ffc",
  "rgb": {
    "r": 186,
    "g": 127,
    "b": 252
  },
  "hsl": {
    "h": 268.32,
    "s": 95.42,
    "l": 74.314
  },
  "oklch": {
    "l": 0.70785,
    "c": 0.18289,
    "h": 303.9
  },
  "luminance": 0.32646
}

Semantic roles & 50–950 ramp

primary
#BA7FFC
secondary
#E6F7D4
accent
#E60079
background
#FDFAFF
surface
#FAF4FF
border
#D3CED7
text
#140F18
muted
#837F86

Preview Lab

Preview with #BA7FFC

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

Preview Lab → · Contrast checker → · Palette generator →

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