#BA72EE#BA72EE

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

Color values

HEX#BA72EE
RGBrgb(186, 114, 238)
HSLhsl(275, 78%, 69%)
HSVhsv(275, 52%, 93%)
CMYKcmyk(21.8%, 52.1%, 0%, 6.7%)
CIE-LABlab(60.47, 50.31, -51.74)
CIE-LCHlch(60.47, 72.16, 314.20°)
OKLaboklab(68.03% 0.1178 -0.145)
OKLCHoklch(68.03% 0.187 309.1)
XYZxyz(41.6967, 28.6474, 84.2053)
Luminance0.2865 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA72EE #A6EE72
analogous
#7C72EE #BA72EE #EE72E4
triadic
#BA72EE #EEBA72 #72EEBA
tetradic
#BA72EE #EE7C72 #A6EE72 #72E4EE
square
#BA72EE #EE7C72 #A6EE72 #72E4EE
split-complementary
#BA72EE #E4EE72 #72EE7C
monochromatic
#8119CD #9F3BE7 #BA72EE #D5A9F5 #EFDFFB

Accessibility & contrast

On white

3.12
#BA72EE on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.73
#BA72EE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA72EE
6.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA72EE#FFFFFF#000000##000000
##BA72EE1.003.126.736.73
#FFFFFF3.121.0021.0021.00
#0000006.7321.001.001.00
##0000006.7321.001.001.00

Color blindness preview

Protanopia (red-blind)
#4E8FF2
Deuteranopia (green-blind)
#6593EB
Tritanopia (blue-blind)
#B388A5
Achromatopsia (no color)
#929292

Design tokens & code

CSS
--color: #ba72ee;
/* rgb */ color: rgb(186, 114, 238);
/* oklch */ color: oklch(68.0% 0.187 309.1);
Tailwind
colors: {
  custom: {
    50: '#d19df4',
    500: '#ba72ee',
    950: '#000000',
  },
}
SCSS
$custom: #ba72ee;
$custom-light: #d19df4;
$custom-dark: #000000;
JSON
{
  "hex": "#ba72ee",
  "rgb": {
    "r": 186,
    "g": 114,
    "b": 238
  },
  "hsl": {
    "h": 274.839,
    "s": 78.481,
    "l": 69.02
  },
  "oklch": {
    "l": 0.68026,
    "c": 0.1868,
    "h": 309.1
  },
  "luminance": 0.28647
}

Semantic roles & 50–950 ramp

primary
#BA72EE
secondary
#DBF0CC
accent
#DB0B62
background
#FDF9FE
surface
#FAF2FD
border
#D3CCD5
text
#140E17
muted
#837E85

Preview Lab

Preview with #BA72EE

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

Preview Lab → · Contrast checker → · Palette generator →

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