#BA66ED#BA66ED

#BA66ED is a light, highly saturated violet. Relative luminance 0.261; OKLCH L 66.3% C 0.204 H 310.7°. Best body text is #000000 at 6.21:1 contrast (WCAG AA passes).

Color values

HEX#BA66ED
RGBrgb(186, 102, 237)
HSLhsl(277, 79%, 66%)
HSVhsv(277, 57%, 93%)
CMYKcmyk(21.5%, 57%, 0%, 7.1%)
CIE-LABlab(58.09, 56.22, -54.96)
CIE-LCHlch(58.09, 78.63, 315.65°)
OKLaboklab(66.26% 0.133 -0.1544)
OKLCHoklch(66.26% 0.204 310.7)
XYZxyz(40.2843, 26.0571, 83.0117)
Luminance0.2606 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA66ED #99ED66
analogous
#7766ED #BA66ED #ED66DD
triadic
#BA66ED #EDBA66 #66EDBA
tetradic
#BA66ED #ED7766 #99ED66 #66DDED
square
#BA66ED #ED7766 #99ED66 #66DDED
split-complementary
#BA66ED #DDED66 #66ED77
monochromatic
#8117C2 #A12FE7 #BA66ED #D39DF3 #EBD4FA

Accessibility & contrast

On white

3.38
#BA66ED on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.21
#BA66ED on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA66ED
6.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA66ED#FFFFFF#000000##000000
##BA66ED1.003.386.216.21
#FFFFFF3.381.0021.0021.00
#0000006.2121.001.001.00
##0000006.2121.001.001.00

Color blindness preview

Protanopia (red-blind)
#3988F1
Deuteranopia (green-blind)
#5A8DEA
Tritanopia (blue-blind)
#B47EA0
Achromatopsia (no color)
#8C8C8C

Design tokens & code

CSS
--color: #ba66ed;
/* rgb */ color: rgb(186, 102, 237);
/* oklch */ color: oklch(66.3% 0.204 310.7);
Tailwind
colors: {
  custom: {
    50: '#d295f3',
    500: '#ba66ed',
    950: '#000000',
  },
}
SCSS
$custom: #ba66ed;
$custom-light: #d295f3;
$custom-dark: #000000;
JSON
{
  "hex": "#ba66ed",
  "rgb": {
    "r": 186,
    "g": 102,
    "b": 237
  },
  "hsl": {
    "h": 277.333,
    "s": 78.947,
    "l": 66.471
  },
  "oklch": {
    "l": 0.66261,
    "c": 0.20378,
    "h": 310.7
  },
  "luminance": 0.26056
}

Semantic roles & 50–950 ramp

primary
#BA66ED
secondary
#D2EDC2
accent
#DB0A59
background
#FDF9FE
surface
#FAF2FD
border
#D3CCD5
text
#140E17
muted
#837E85

Preview Lab

Preview with #BA66ED

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

Preview Lab → · Contrast checker → · Palette generator →

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