#BA72E5#BA72E5

#BA72E5 is a light, vivid violet. Relative luminance 0.281; OKLCH L 67.5% C 0.177 H 311.4°. Best body text is #000000 at 6.63:1 contrast (WCAG AA passes).

Color values

HEX#BA72E5
RGBrgb(186, 114, 229)
HSLhsl(278, 69%, 67%)
HSVhsv(278, 50%, 90%)
CMYKcmyk(18.8%, 50.2%, 0%, 10.2%)
CIE-LABlab(60.01, 48.34, -47.46)
CIE-LCHlch(60.01, 67.74, 315.53°)
OKLaboklab(67.54% 0.117 -0.1325)
OKLCHoklch(67.54% 0.177 311.4)
XYZxyz(40.4073, 28.1317, 77.4149)
Luminance0.2813 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA72E5 #9DE572
analogous
#8172E5 #BA72E5 #E572D7
triadic
#BA72E5 #E5BA72 #72E5BA
tetradic
#BA72E5 #E58172 #9DE572 #72D7E5
square
#BA72E5 #E58172 #9DE572 #72D7E5
split-complementary
#BA72E5 #D7E572 #72E581
monochromatic
#8122BA #A13EDB #BA72E5 #D3A6EF #EDD9F8

Accessibility & contrast

On white

3.17
#BA72E5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.63
#BA72E5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA72E5
6.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA72E5#FFFFFF#000000##000000
##BA72E51.003.176.636.63
#FFFFFF3.171.0021.0021.00
#0000006.6321.001.001.00
##0000006.6321.001.001.00

Color blindness preview

Protanopia (red-blind)
#558DE9
Deuteranopia (green-blind)
#6B92E2
Tritanopia (blue-blind)
#B585A1
Achromatopsia (no color)
#919191

Design tokens & code

CSS
--color: #ba72e5;
/* rgb */ color: rgb(186, 114, 229);
/* oklch */ color: oklch(67.5% 0.177 311.4);
Tailwind
colors: {
  custom: {
    50: '#d19dee',
    500: '#ba72e5',
    950: '#000000',
  },
}
SCSS
$custom: #ba72e5;
$custom-light: #d19dee;
$custom-dark: #000000;
JSON
{
  "hex": "#ba72e5",
  "rgb": {
    "r": 186,
    "g": 114,
    "b": 229
  },
  "hsl": {
    "h": 277.565,
    "s": 68.862,
    "l": 67.255
  },
  "oklch": {
    "l": 0.67535,
    "c": 0.17677,
    "h": 311.4
  },
  "luminance": 0.28131
}

Semantic roles & 50–950 ramp

primary
#BA72E5
secondary
#D5ECC7
accent
#D1155B
background
#FDF9FE
surface
#FAF2FD
border
#D3CCD5
text
#140E16
muted
#837E84

Preview Lab

Preview with #BA72E5

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

Preview Lab → · Contrast checker → · Palette generator →

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