#BA72EA#BA72EA

#BA72EA is a light, vivid violet. Relative luminance 0.284; OKLCH L 67.8% C 0.182 H 310.1°. Best body text is #000000 at 6.68:1 contrast (WCAG AA passes).

Color values

HEX#BA72EA
RGBrgb(186, 114, 234)
HSLhsl(276, 74%, 68%)
HSVhsv(276, 51%, 92%)
CMYKcmyk(20.5%, 51.3%, 0%, 8.2%)
CIE-LABlab(60.26, 49.43, -49.84)
CIE-LCHlch(60.26, 70.20, 314.76°)
OKLaboklab(67.81% 0.1174 -0.1395)
OKLCHoklch(67.81% 0.182 310.1)
XYZxyz(41.1155, 28.4150, 81.1446)
Luminance0.2841 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA72EA #A2EA72
analogous
#7E72EA #BA72EA #EA72DE
triadic
#BA72EA #EABA72 #72EABA
tetradic
#BA72EA #EA7E72 #A2EA72 #72DEEA
square
#BA72EA #EA7E72 #A2EA72 #72DEEA
split-complementary
#BA72EA #DEEA72 #72EA7E
monochromatic
#821DC4 #A03DE2 #BA72EA #D4A7F2 #EEDDFA

Accessibility & contrast

On white

3.14
#BA72EA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.68
#BA72EA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA72EA
6.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA72EA#FFFFFF#000000##000000
##BA72EA1.003.146.686.68
#FFFFFF3.141.0021.0021.00
#0000006.6821.001.001.00
##0000006.6821.001.001.00

Color blindness preview

Protanopia (red-blind)
#528EEE
Deuteranopia (green-blind)
#6893E7
Tritanopia (blue-blind)
#B486A3
Achromatopsia (no color)
#919191

Design tokens & code

CSS
--color: #ba72ea;
/* rgb */ color: rgb(186, 114, 234);
/* oklch */ color: oklch(67.8% 0.182 310.1);
Tailwind
colors: {
  custom: {
    50: '#d19df1',
    500: '#ba72ea',
    950: '#000000',
  },
}
SCSS
$custom: #ba72ea;
$custom-light: #d19df1;
$custom-dark: #000000;
JSON
{
  "hex": "#ba72ea",
  "rgb": {
    "r": 186,
    "g": 114,
    "b": 234
  },
  "hsl": {
    "h": 276,
    "s": 74.074,
    "l": 68.235
  },
  "oklch": {
    "l": 0.67806,
    "c": 0.18233,
    "h": 310.1
  },
  "luminance": 0.28414
}

Semantic roles & 50–950 ramp

primary
#BA72EA
secondary
#D8EECA
accent
#D60F5F
background
#FDF9FE
surface
#FAF2FD
border
#D3CCD5
text
#140E17
muted
#837E85

Preview Lab

Preview with #BA72EA

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

Preview Lab → · Contrast checker → · Palette generator →

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