#BA8CFD#BA8CFD

#BA8CFD is a light, vivid violet. Relative luminance 0.363; OKLCH L 72.9% C 0.164 H 301.2°. Best body text is #000000 at 8.26:1 contrast (WCAG AA passes).

Color values

HEX#BA8CFD
RGBrgb(186, 140, 253)
HSLhsl(264, 97%, 77%)
HSVhsv(264, 45%, 99%)
CMYKcmyk(26.5%, 44.7%, 0%, 0.8%)
CIE-LABlab(66.74, 39.74, -50.07)
CIE-LCHlch(66.74, 63.92, 308.44°)
OKLaboklab(72.94% 0.085 -0.1402)
OKLCHoklch(72.94% 0.164 301.2)
XYZxyz(47.3534, 36.2870, 97.4188)
Luminance0.3629 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA8CFD #CFFD8C
analogous
#8C97FD #BA8CFD #F38CFD
triadic
#BA8CFD #FDBA8C #8CFDBA
tetradic
#BA8CFD #FD8C97 #CFFD8C #8CFDF3
square
#BA8CFD #FD8C97 #CFFD8C #8CFDF3
split-complementary
#BA8CFD #FDF38C #97FD8C
monochromatic
#7214FB #9650FC #BA8CFD #DEC8FE #EDE1FE

Accessibility & contrast

On white

2.54
#BA8CFD on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.26
#BA8CFD on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BA8CFD
8.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA8CFD#FFFFFF#000000##000000
##BA8CFD1.002.548.268.26
#FFFFFF2.541.0021.0021.00
#0000008.2621.001.001.00
##0000008.2621.001.001.00

Color blindness preview

Protanopia (red-blind)
#6CA2FF
Deuteranopia (green-blind)
#76A2FA
Tritanopia (blue-blind)
#AEA0B8
Achromatopsia (no color)
#A2A2A2

Design tokens & code

CSS
--color: #ba8cfd;
/* rgb */ color: rgb(186, 140, 253);
/* oklch */ color: oklch(72.9% 0.164 301.2);
Tailwind
colors: {
  custom: {
    50: '#d1aefe',
    500: '#ba8cfd',
    950: '#000000',
  },
}
SCSS
$custom: #ba8cfd;
$custom-light: #d1aefe;
$custom-dark: #000000;
JSON
{
  "hex": "#ba8cfd",
  "rgb": {
    "r": 186,
    "g": 140,
    "b": 253
  },
  "hsl": {
    "h": 264.425,
    "s": 96.581,
    "l": 77.059
  },
  "oklch": {
    "l": 0.72942,
    "c": 0.16397,
    "h": 301.2
  },
  "luminance": 0.36287
}

Semantic roles & 50–950 ramp

primary
#BA8CFD
secondary
#E9F7D4
accent
#E60088
background
#FDFAFF
surface
#FAF4FF
border
#D3CED7
text
#141018
muted
#837F86

Preview Lab

Preview with #BA8CFD

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

Preview Lab → · Contrast checker → · Palette generator →

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