#BA6AF2#BA6AF2

#BA6AF2 is a light, highly saturated violet. Relative luminance 0.272; OKLCH L 67.1% C 0.203 H 309.1°. Best body text is #000000 at 6.43:1 contrast (WCAG AA passes).

Color values

HEX#BA6AF2
RGBrgb(186, 106, 242)
HSLhsl(275, 84%, 68%)
HSVhsv(275, 56%, 95%)
CMYKcmyk(23.1%, 56.2%, 0%, 5.1%)
CIE-LABlab(59.12, 55.30, -56.10)
CIE-LCHlch(59.12, 78.78, 314.59°)
OKLaboklab(67.1% 0.1282 -0.1577)
OKLCHoklch(67.1% 0.203 309.1)
XYZxyz(41.4276, 27.1586, 87.0469)
Luminance0.2716 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA6AF2 #A2F26A
analogous
#766AF2 #BA6AF2 #F26AE6
triadic
#BA6AF2 #F2BA6A #6AF2BA
tetradic
#BA6AF2 #F2766A #A2F26A #6AE6F2
square
#BA6AF2 #F2766A #A2F26A #6AE6F2
split-complementary
#BA6AF2 #E6F26A #6AF276
monochromatic
#8212CF #A032ED #BA6AF2 #D4A2F7 #EEDBFC

Accessibility & contrast

On white

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

On black

6.43
#BA6AF2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA6AF2
6.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA6AF2#FFFFFF#000000##000000
##BA6AF21.003.276.436.43
#FFFFFF3.271.0021.0021.00
#0000006.4321.001.001.00
##0000006.4321.001.001.00

Color blindness preview

Protanopia (red-blind)
#3C8BF6
Deuteranopia (green-blind)
#5A8FEF
Tritanopia (blue-blind)
#B283A4
Achromatopsia (no color)
#8E8E8E

Design tokens & code

CSS
--color: #ba6af2;
/* rgb */ color: rgb(186, 106, 242);
/* oklch */ color: oklch(67.1% 0.203 309.1);
Tailwind
colors: {
  custom: {
    50: '#d298f7',
    500: '#ba6af2',
    950: '#000000',
  },
}
SCSS
$custom: #ba6af2;
$custom-light: #d298f7;
$custom-dark: #000000;
JSON
{
  "hex": "#ba6af2",
  "rgb": {
    "r": 186,
    "g": 106,
    "b": 242
  },
  "hsl": {
    "h": 275.294,
    "s": 83.951,
    "l": 68.235
  },
  "oklch": {
    "l": 0.67104,
    "c": 0.20324,
    "h": 309.1
  },
  "luminance": 0.27158
}

Semantic roles & 50–950 ramp

primary
#BA6AF2
secondary
#D8F1C7
accent
#E0055F
background
#FDF9FF
surface
#FAF2FF
border
#D3CCD7
text
#140E17
muted
#837E85

Preview Lab

Preview with #BA6AF2

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

Preview Lab → · Contrast checker → · Palette generator →

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