#BA8DEE#BA8DEE

#BA8DEE is a light, vivid violet. Relative luminance 0.357; OKLCH L 72.4% C 0.144 H 304.4°. Best body text is #000000 at 8.13:1 contrast (WCAG AA passes).

Color values

HEX#BA8DEE
RGBrgb(186, 141, 238)
HSLhsl(268, 74%, 74%)
HSVhsv(268, 41%, 93%)
CMYKcmyk(21.8%, 40.8%, 0%, 6.7%)
CIE-LABlab(66.26, 35.71, -42.60)
CIE-LCHlch(66.26, 55.59, 309.98°)
OKLaboklab(72.35% 0.0812 -0.1185)
OKLCHoklch(72.35% 0.144 304.4)
XYZxyz(45.2040, 35.6621, 85.3744)
Luminance0.3566 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA8DEE #C1EE8D
analogous
#8D91EE #BA8DEE #EB8DEE
triadic
#BA8DEE #EEBA8D #8DEEBA
tetradic
#BA8DEE #EE8D91 #C1EE8D #8DEEEB
square
#BA8DEE #EE8D91 #C1EE8D #8DEEEB
split-complementary
#BA8DEE #EEEB8D #91EE8D
monochromatic
#7A22DE #9A58E6 #BA8DEE #DAC2F6 #EFE4FB

Accessibility & contrast

On white

2.58
#BA8DEE on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.13
#BA8DEE on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BA8DEE
8.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA8DEE#FFFFFF#000000##000000
##BA8DEE1.002.588.138.13
#FFFFFF2.581.0021.0021.00
#0000008.1321.001.001.00
##0000008.1321.001.001.00

Color blindness preview

Protanopia (red-blind)
#76A0F2
Deuteranopia (green-blind)
#80A1EB
Tritanopia (blue-blind)
#B29DB2
Achromatopsia (no color)
#A1A1A1

Design tokens & code

CSS
--color: #ba8dee;
/* rgb */ color: rgb(186, 141, 238);
/* oklch */ color: oklch(72.4% 0.144 304.4);
Tailwind
colors: {
  custom: {
    50: '#d0aff4',
    500: '#ba8dee',
    950: '#000000',
  },
}
SCSS
$custom: #ba8dee;
$custom-light: #d0aff4;
$custom-dark: #000000;
JSON
{
  "hex": "#ba8dee",
  "rgb": {
    "r": 186,
    "g": 141,
    "b": 238
  },
  "hsl": {
    "h": 267.835,
    "s": 74.046,
    "l": 74.314
  },
  "oklch": {
    "l": 0.72353,
    "c": 0.14371,
    "h": 304.4
  },
  "luminance": 0.35662
}

Semantic roles & 50–950 ramp

primary
#BA8DEE
secondary
#E6F3D8
accent
#D60F7A
background
#FCFAFE
surface
#F9F4FD
border
#D2CED5
text
#141017
muted
#827F85

Preview Lab

Preview with #BA8DEE

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

Preview Lab → · Contrast checker → · Palette generator →

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