#BA6BEC#BA6BEC

#BA6BEC is a light, vivid violet. Relative luminance 0.270; OKLCH L 66.9% C 0.195 H 310.4°. Best body text is #000000 at 6.40:1 contrast (WCAG AA passes).

Color values

HEX#BA6BEC
RGBrgb(186, 107, 236)
HSLhsl(277, 77%, 67%)
HSVhsv(277, 55%, 93%)
CMYKcmyk(21.2%, 54.7%, 0%, 7.5%)
CIE-LABlab(58.98, 53.49, -52.98)
CIE-LCHlch(58.98, 75.29, 315.27°)
OKLaboklab(66.9% 0.1267 -0.1486)
OKLCHoklch(66.9% 0.195 310.4)
XYZxyz(40.6449, 27.0114, 82.4132)
Luminance0.2701 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA6BEC #9DEC6B
analogous
#796BEC #BA6BEC #EC6BDE
triadic
#BA6BEC #ECBA6B #6BECBA
tetradic
#BA6BEC #EC796B #9DEC6B #6BDEEC
square
#BA6BEC #EC796B #9DEC6B #6BDEEC
split-complementary
#BA6BEC #DEEC6B #6BEC79
monochromatic
#8119C4 #A135E5 #BA6BEC #D3A1F3 #EDD7FA

Accessibility & contrast

On white

3.28
#BA6BEC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.40
#BA6BEC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA6BEC
6.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA6BEC#FFFFFF#000000##000000
##BA6BEC1.003.286.406.40
#FFFFFF3.281.0021.0021.00
#0000006.4021.001.001.00
##0000006.4021.001.001.00

Color blindness preview

Protanopia (red-blind)
#448AF0
Deuteranopia (green-blind)
#5F8FE9
Tritanopia (blue-blind)
#B482A2
Achromatopsia (no color)
#8E8E8E

Design tokens & code

CSS
--color: #ba6bec;
/* rgb */ color: rgb(186, 107, 236);
/* oklch */ color: oklch(66.9% 0.195 310.4);
Tailwind
colors: {
  custom: {
    50: '#d298f3',
    500: '#ba6bec',
    950: '#000000',
  },
}
SCSS
$custom: #ba6bec;
$custom-light: #d298f3;
$custom-dark: #000000;
JSON
{
  "hex": "#ba6bec",
  "rgb": {
    "r": 186,
    "g": 107,
    "b": 236
  },
  "hsl": {
    "h": 276.744,
    "s": 77.246,
    "l": 67.255
  },
  "oklch": {
    "l": 0.66899,
    "c": 0.19528,
    "h": 310.4
  },
  "luminance": 0.27011
}

Semantic roles & 50–950 ramp

primary
#BA6BEC
secondary
#D5EEC5
accent
#D90C5C
background
#FDF9FE
surface
#FAF2FD
border
#D3CCD5
text
#140E17
muted
#837E85

Preview Lab

Preview with #BA6BEC

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

Preview Lab → · Contrast checker → · Palette generator →

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