#BA72ED#BA72ED

#BA72ED is a light, vivid violet. Relative luminance 0.286; OKLCH L 68.0% C 0.186 H 309.3°. Best body text is #000000 at 6.72:1 contrast (WCAG AA passes).

Color values

HEX#BA72ED
RGBrgb(186, 114, 237)
HSLhsl(275, 77%, 69%)
HSVhsv(275, 52%, 93%)
CMYKcmyk(21.5%, 51.9%, 0%, 7.1%)
CIE-LABlab(60.42, 50.09, -51.26)
CIE-LCHlch(60.42, 71.67, 314.34°)
OKLaboklab(67.97% 0.1177 -0.1436)
OKLCHoklch(67.97% 0.186 309.3)
XYZxyz(41.5501, 28.5888, 83.4337)
Luminance0.2859 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA72ED #A5ED72
analogous
#7D72ED #BA72ED #ED72E3
triadic
#BA72ED #EDBA72 #72EDBA
tetradic
#BA72ED #ED7D72 #A5ED72 #72E3ED
square
#BA72ED #ED7D72 #A5ED72 #72E3ED
split-complementary
#BA72ED #E3ED72 #72ED7D
monochromatic
#811ACB #9F3CE6 #BA72ED #D5A8F4 #EFDFFB

Accessibility & contrast

On white

3.13
#BA72ED on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.72
#BA72ED on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA72ED
6.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA72ED#FFFFFF#000000##000000
##BA72ED1.003.136.726.72
#FFFFFF3.131.0021.0021.00
#0000006.7221.001.001.00
##0000006.7221.001.001.00

Color blindness preview

Protanopia (red-blind)
#4F8EF1
Deuteranopia (green-blind)
#6693EA
Tritanopia (blue-blind)
#B387A5
Achromatopsia (no color)
#929292

Design tokens & code

CSS
--color: #ba72ed;
/* rgb */ color: rgb(186, 114, 237);
/* oklch */ color: oklch(68.0% 0.186 309.3);
Tailwind
colors: {
  custom: {
    50: '#d19df3',
    500: '#ba72ed',
    950: '#000000',
  },
}
SCSS
$custom: #ba72ed;
$custom-light: #d19df3;
$custom-dark: #000000;
JSON
{
  "hex": "#ba72ed",
  "rgb": {
    "r": 186,
    "g": 114,
    "b": 237
  },
  "hsl": {
    "h": 275.122,
    "s": 77.358,
    "l": 68.824
  },
  "oklch": {
    "l": 0.67971,
    "c": 0.18568,
    "h": 309.3
  },
  "luminance": 0.28588
}

Semantic roles & 50–950 ramp

primary
#BA72ED
secondary
#DAF0CB
accent
#DA0C61
background
#FDF9FE
surface
#FAF2FD
border
#D3CCD5
text
#140E17
muted
#837E85

Preview Lab

Preview with #BA72ED

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

Preview Lab → · Contrast checker → · Palette generator →

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