#BA8DEC#BA8DEC

#BA8DEC is a light, vivid violet. Relative luminance 0.355; OKLCH L 72.3% C 0.141 H 304.9°. Best body text is #000000 at 8.11:1 contrast (WCAG AA passes).

Color values

HEX#BA8DEC
RGBrgb(186, 141, 236)
HSLhsl(268, 71%, 74%)
HSVhsv(268, 40%, 93%)
CMYKcmyk(21.2%, 40.3%, 0%, 7.5%)
CIE-LABlab(66.17, 35.26, -41.64)
CIE-LCHlch(66.17, 54.56, 310.26°)
OKLaboklab(72.26% 0.0809 -0.1158)
OKLCHoklch(72.26% 0.141 304.9)
XYZxyz(44.9118, 35.5452, 83.8355)
Luminance0.3554 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA8DEC #BFEC8D
analogous
#8D90EC #BA8DEC #EA8DEC
triadic
#BA8DEC #ECBA8D #8DECBA
tetradic
#BA8DEC #EC8D90 #BFEC8D #8DECEA
square
#BA8DEC #EC8D90 #BFEC8D #8DECEA
split-complementary
#BA8DEC #ECEA8D #90EC8D
monochromatic
#7B24DA #9A59E3 #BA8DEC #DAC1F5 #EFE5FB

Accessibility & contrast

On white

2.59
#BA8DEC on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.11
#BA8DEC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BA8DEC
8.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA8DEC#FFFFFF#000000##000000
##BA8DEC1.002.598.118.11
#FFFFFF2.591.0021.0021.00
#0000008.1121.001.001.00
##0000008.1121.001.001.00

Color blindness preview

Protanopia (red-blind)
#779FF0
Deuteranopia (green-blind)
#81A1E9
Tritanopia (blue-blind)
#B29CB1
Achromatopsia (no color)
#A1A1A1

Design tokens & code

CSS
--color: #ba8dec;
/* rgb */ color: rgb(186, 141, 236);
/* oklch */ color: oklch(72.3% 0.141 304.9);
Tailwind
colors: {
  custom: {
    50: '#d0aff2',
    500: '#ba8dec',
    950: '#000000',
  },
}
SCSS
$custom: #ba8dec;
$custom-light: #d0aff2;
$custom-dark: #000000;
JSON
{
  "hex": "#ba8dec",
  "rgb": {
    "r": 186,
    "g": 141,
    "b": 236
  },
  "hsl": {
    "h": 268.421,
    "s": 71.429,
    "l": 73.922
  },
  "oklch": {
    "l": 0.72255,
    "c": 0.14122,
    "h": 304.9
  },
  "luminance": 0.35545
}

Semantic roles & 50–950 ramp

primary
#BA8DEC
secondary
#E6F2D9
accent
#D31278
background
#FCFAFE
surface
#F9F4FD
border
#D2CED5
text
#141017
muted
#827F85

Preview Lab

Preview with #BA8DEC

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

Preview Lab → · Contrast checker → · Palette generator →

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