#BA8CED#BA8CED

#BA8CED is a light, vivid violet. Relative luminance 0.353; OKLCH L 72.1% C 0.144 H 304.9°. Best body text is #000000 at 8.06:1 contrast (WCAG AA passes).

Color values

HEX#BA8CED
RGBrgb(186, 140, 237)
HSLhsl(268, 73%, 74%)
HSVhsv(268, 41%, 93%)
CMYKcmyk(21.5%, 40.9%, 0%, 7.1%)
CIE-LABlab(65.99, 36.04, -42.47)
CIE-LCHlch(65.99, 55.70, 310.32°)
OKLaboklab(72.13% 0.0825 -0.1182)
OKLCHoklch(72.13% 0.144 304.9)
XYZxyz(44.9107, 35.3099, 84.5539)
Luminance0.3531 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA8CED #BFED8C
analogous
#8C8FED #BA8CED #EB8CED
triadic
#BA8CED #EDBA8C #8CEDBA
tetradic
#BA8CED #ED8C8F #BFED8C #8CEDEB
square
#BA8CED #ED8C8F #BFED8C #8CEDEB
split-complementary
#BA8CED #EDEB8C #8FED8C
monochromatic
#7B22DC #9A57E5 #BA8CED #DAC1F5 #EFE5FB

Accessibility & contrast

On white

2.60
#BA8CED on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.06
#BA8CED on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BA8CED
8.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA8CED#FFFFFF#000000##000000
##BA8CED1.002.608.068.06
#FFFFFF2.601.0021.0021.00
#0000008.0621.001.001.00
##0000008.0621.001.001.00

Color blindness preview

Protanopia (red-blind)
#759FF1
Deuteranopia (green-blind)
#7FA1EA
Tritanopia (blue-blind)
#B29CB1
Achromatopsia (no color)
#A0A0A0

Design tokens & code

CSS
--color: #ba8ced;
/* rgb */ color: rgb(186, 140, 237);
/* oklch */ color: oklch(72.1% 0.144 304.9);
Tailwind
colors: {
  custom: {
    50: '#d0aef3',
    500: '#ba8ced',
    950: '#000000',
  },
}
SCSS
$custom: #ba8ced;
$custom-light: #d0aef3;
$custom-dark: #000000;
JSON
{
  "hex": "#ba8ced",
  "rgb": {
    "r": 186,
    "g": 140,
    "b": 237
  },
  "hsl": {
    "h": 268.454,
    "s": 72.932,
    "l": 73.922
  },
  "oklch": {
    "l": 0.72133,
    "c": 0.1441,
    "h": 304.9
  },
  "luminance": 0.3531
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #BA8CED

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

Preview Lab → · Contrast checker → · Palette generator →

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