#BA3AFE#BA3AFE

#BA3AFE is a light, highly saturated violet. Relative luminance 0.206; OKLCH L 62.6% C 0.273 H 310.3°. Best body text is #000000 at 5.12:1 contrast (WCAG AA passes).

Color values

HEX#BA3AFE
RGBrgb(186, 58, 254)
HSLhsl(279, 99%, 61%)
HSVhsv(279, 77%, 100%)
CMYKcmyk(26.8%, 77.2%, 0%, 0.4%)
CIE-LABlab(52.53, 78.19, -73.38)
CIE-LCHlch(52.53, 107.23, 316.82°)
OKLaboklab(62.62% 0.1764 -0.2082)
OKLCHoklch(62.62% 0.273 310.3)
XYZxyz(39.6486, 20.6219, 95.6385)
Luminance0.2062 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA3AFE #7EFE3A
analogous
#583AFE #BA3AFE #FE3AE0
triadic
#BA3AFE #FEBA3A #3AFEBA
tetradic
#BA3AFE #FE583A #7EFE3A #3AE0FE
square
#BA3AFE #FE583A #7EFE3A #3AE0FE
split-complementary
#BA3AFE #E0FE3A #3AFE58
monochromatic
#7C01BD #A301FA #BA3AFE #CF77FE #E5B4FF

Accessibility & contrast

On white

4.10
#BA3AFE on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.12
#BA3AFE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA3AFE
5.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA3AFE#FFFFFF#000000##000000
##BA3AFE1.004.105.125.12
#FFFFFF4.101.0021.0021.00
#0000005.1221.001.001.00
##0000005.1221.001.001.00

Color blindness preview

Protanopia (red-blind)
#0078FF
Deuteranopia (green-blind)
#007FFA
Tritanopia (blue-blind)
#B06B9C
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #ba3afe;
/* rgb */ color: rgb(186, 58, 254);
/* oklch */ color: oklch(62.6% 0.273 310.3);
Tailwind
colors: {
  custom: {
    50: '#d57eff',
    500: '#ba3afe',
    950: '#000000',
  },
}
SCSS
$custom: #ba3afe;
$custom-light: #d57eff;
$custom-dark: #000000;
JSON
{
  "hex": "#ba3afe",
  "rgb": {
    "r": 186,
    "g": 58,
    "b": 254
  },
  "hsl": {
    "h": 279.184,
    "s": 98.99,
    "l": 61.176
  },
  "oklch": {
    "l": 0.62616,
    "c": 0.27285,
    "h": 310.3
  },
  "luminance": 0.20621
}

Semantic roles & 50–950 ramp

primary
#BA3AFE
secondary
#BFEFA5
accent
#E60050
background
#FDF8FF
surface
#FBEFFF
border
#D4CAD7
text
#150B18
muted
#837C86

Preview Lab

Preview with #BA3AFE

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

Preview Lab → · Contrast checker → · Palette generator →

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