#BA48FE#BA48FE

#BA48FE is a light, highly saturated violet. Relative luminance 0.222; OKLCH L 63.8% C 0.259 H 309.5°. Best body text is #000000 at 5.45:1 contrast (WCAG AA passes).

Color values

HEX#BA48FE
RGBrgb(186, 72, 254)
HSLhsl(278, 99%, 64%)
HSVhsv(278, 72%, 100%)
CMYKcmyk(26.8%, 71.7%, 0%, 0.4%)
CIE-LABlab(54.27, 73.21, -70.56)
CIE-LCHlch(54.27, 101.68, 316.06°)
OKLaboklab(63.84% 0.1646 -0.2)
OKLCHoklch(63.84% 0.259 309.5)
XYZxyz(40.4529, 22.2304, 95.9066)
Luminance0.2223 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA48FE #8CFE48
analogous
#5F48FE #BA48FE #FE48E7
triadic
#BA48FE #FEBA48 #48FEBA
tetradic
#BA48FE #FE5F48 #8CFE48 #48E7FE
square
#BA48FE #FE5F48 #8CFE48 #48E7FE
split-complementary
#BA48FE #E7FE48 #48FE5F
monochromatic
#7F01CA #A30BFE #BA48FE #D185FE #E8C2FF

Accessibility & contrast

On white

3.86
#BA48FE on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.45
#BA48FE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA48FE
5.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA48FE#FFFFFF#000000##000000
##BA48FE1.003.865.455.45
#FFFFFF3.861.0021.0021.00
#0000005.4521.001.001.00
##0000005.4521.001.001.00

Color blindness preview

Protanopia (red-blind)
#007DFF
Deuteranopia (green-blind)
#1A83FA
Tritanopia (blue-blind)
#B0729F
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #ba48fe;
/* rgb */ color: rgb(186, 72, 254);
/* oklch */ color: oklch(63.8% 0.259 309.5);
Tailwind
colors: {
  custom: {
    50: '#d485ff',
    500: '#ba48fe',
    950: '#000000',
  },
}
SCSS
$custom: #ba48fe;
$custom-light: #d485ff;
$custom-dark: #000000;
JSON
{
  "hex": "#ba48fe",
  "rgb": {
    "r": 186,
    "g": 72,
    "b": 254
  },
  "hsl": {
    "h": 277.582,
    "s": 98.913,
    "l": 63.922
  },
  "oklch": {
    "l": 0.63841,
    "c": 0.25901,
    "h": 309.5
  },
  "luminance": 0.2223
}

Semantic roles & 50–950 ramp

primary
#BA48FE
secondary
#C9F1B1
accent
#E60056
background
#FDF8FF
surface
#FBF0FF
border
#D4CBD7
text
#150C18
muted
#837D86

Preview Lab

Preview with #BA48FE

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

Preview Lab → · Contrast checker → · Palette generator →

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