#BA6BED#BA6BED

#BA6BED is a light, vivid violet. Relative luminance 0.271; OKLCH L 67.0% C 0.196 H 310.2°. Best body text is #000000 at 6.41:1 contrast (WCAG AA passes).

Color values

HEX#BA6BED
RGBrgb(186, 107, 237)
HSLhsl(276, 78%, 67%)
HSVhsv(276, 55%, 93%)
CMYKcmyk(21.5%, 54.9%, 0%, 7.1%)
CIE-LABlab(59.04, 53.70, -53.45)
CIE-LCHlch(59.04, 75.77, 315.13°)
OKLaboklab(66.96% 0.1267 -0.15)
OKLCHoklch(66.96% 0.196 310.2)
XYZxyz(40.7906, 27.0697, 83.1805)
Luminance0.2707 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA6BED #9EED6B
analogous
#796BED #BA6BED #ED6BDF
triadic
#BA6BED #EDBA6B #6BEDBA
tetradic
#BA6BED #ED796B #9EED6B #6BDFED
square
#BA6BED #ED796B #9EED6B #6BDFED
split-complementary
#BA6BED #DFED6B #6BED79
monochromatic
#8118C6 #A134E6 #BA6BED #D3A2F4 #EDD8FA

Accessibility & contrast

On white

3.27
#BA6BED on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.41
#BA6BED on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA6BED
6.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA6BED#FFFFFF#000000##000000
##BA6BED1.003.276.416.41
#FFFFFF3.271.0021.0021.00
#0000006.4121.001.001.00
##0000006.4121.001.001.00

Color blindness preview

Protanopia (red-blind)
#438AF1
Deuteranopia (green-blind)
#5F8FEA
Tritanopia (blue-blind)
#B482A2
Achromatopsia (no color)
#8E8E8E

Design tokens & code

CSS
--color: #ba6bed;
/* rgb */ color: rgb(186, 107, 237);
/* oklch */ color: oklch(67.0% 0.196 310.2);
Tailwind
colors: {
  custom: {
    50: '#d298f3',
    500: '#ba6bed',
    950: '#000000',
  },
}
SCSS
$custom: #ba6bed;
$custom-light: #d298f3;
$custom-dark: #000000;
JSON
{
  "hex": "#ba6bed",
  "rgb": {
    "r": 186,
    "g": 107,
    "b": 237
  },
  "hsl": {
    "h": 276.462,
    "s": 78.313,
    "l": 67.451
  },
  "oklch": {
    "l": 0.66956,
    "c": 0.19635,
    "h": 310.2
  },
  "luminance": 0.27069
}

Semantic roles & 50–950 ramp

primary
#BA6BED
secondary
#D6EEC6
accent
#DB0B5C
background
#FDF9FE
surface
#FAF2FD
border
#D3CCD5
text
#140E17
muted
#837E85

Preview Lab

Preview with #BA6BED

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

Preview Lab → · Contrast checker → · Palette generator →

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