#BA8EED#BA8EED

#BA8EED is a light, vivid violet. Relative luminance 0.359; OKLCH L 72.5% C 0.141 H 304.5°. Best body text is #000000 at 8.18:1 contrast (WCAG AA passes).

Color values

HEX#BA8EED
RGBrgb(186, 142, 237)
HSLhsl(268, 73%, 74%)
HSVhsv(268, 40%, 93%)
CMYKcmyk(21.5%, 40.1%, 0%, 7.1%)
CIE-LABlab(66.44, 34.93, -41.76)
CIE-LCHlch(66.44, 54.44, 309.91°)
OKLaboklab(72.48% 0.0797 -0.1161)
OKLCHoklch(72.48% 0.141 304.5)
XYZxyz(45.2056, 35.8997, 84.6522)
Luminance0.3590 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA8EED #C1ED8E
analogous
#8E92ED #BA8EED #E98EED
triadic
#BA8EED #EDBA8E #8EEDBA
tetradic
#BA8EED #ED8E92 #C1ED8E #8EEDE9
square
#BA8EED #ED8E92 #C1ED8E #8EEDE9
split-complementary
#BA8EED #EDE98E #92ED8E
monochromatic
#7A24DC #9A59E5 #BA8EED #DAC3F5 #EFE5FB

Accessibility & contrast

On white

2.57
#BA8EED on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.18
#BA8EED on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BA8EED
8.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA8EED#FFFFFF#000000##000000
##BA8EED1.002.578.188.18
#FFFFFF2.571.0021.0021.00
#0000008.1821.001.001.00
##0000008.1821.001.001.00

Color blindness preview

Protanopia (red-blind)
#77A0F1
Deuteranopia (green-blind)
#81A2EA
Tritanopia (blue-blind)
#B29DB2
Achromatopsia (no color)
#A2A2A2

Design tokens & code

CSS
--color: #ba8eed;
/* rgb */ color: rgb(186, 142, 237);
/* oklch */ color: oklch(72.5% 0.141 304.5);
Tailwind
colors: {
  custom: {
    50: '#d0aff3',
    500: '#ba8eed',
    950: '#000000',
  },
}
SCSS
$custom: #ba8eed;
$custom-light: #d0aff3;
$custom-dark: #000000;
JSON
{
  "hex": "#ba8eed",
  "rgb": {
    "r": 186,
    "g": 142,
    "b": 237
  },
  "hsl": {
    "h": 267.789,
    "s": 72.519,
    "l": 74.314
  },
  "oklch": {
    "l": 0.72476,
    "c": 0.14083,
    "h": 304.5
  },
  "luminance": 0.359
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #BA8EED

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

Preview Lab → · Contrast checker → · Palette generator →

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