#BA72E2#BA72E2

#BA72E2 is a light, vivid violet. Relative luminance 0.280; OKLCH L 67.4% C 0.173 H 312.3°. Best body text is #000000 at 6.59:1 contrast (WCAG AA passes).

Color values

HEX#BA72E2
RGBrgb(186, 114, 226)
HSLhsl(279, 66%, 67%)
HSVhsv(279, 50%, 89%)
CMYKcmyk(17.7%, 49.6%, 0%, 11.4%)
CIE-LABlab(59.86, 47.70, -46.02)
CIE-LCHlch(59.86, 66.28, 316.03°)
OKLaboklab(67.38% 0.1167 -0.1283)
OKLCHoklch(67.38% 0.173 312.3)
XYZxyz(39.9921, 27.9656, 75.2279)
Luminance0.2797 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA72E2 #9AE272
analogous
#8272E2 #BA72E2 #E272D2
triadic
#BA72E2 #E2BA72 #72E2BA
tetradic
#BA72E2 #E28272 #9AE272 #72D2E2
square
#BA72E2 #E28272 #9AE272 #72D2E2
split-complementary
#BA72E2 #D2E272 #72E282
monochromatic
#8125B4 #A13FD8 #BA72E2 #D3A5EC #ECD8F7

Accessibility & contrast

On white

3.19
#BA72E2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.59
#BA72E2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA72E2
6.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA72E2#FFFFFF#000000##000000
##BA72E21.003.196.596.59
#FFFFFF3.191.0021.0021.00
#0000006.5921.001.001.00
##0000006.5921.001.001.00

Color blindness preview

Protanopia (red-blind)
#578CE6
Deuteranopia (green-blind)
#6D92DF
Tritanopia (blue-blind)
#B684A0
Achromatopsia (no color)
#909090

Design tokens & code

CSS
--color: #ba72e2;
/* rgb */ color: rgb(186, 114, 226);
/* oklch */ color: oklch(67.4% 0.173 312.3);
Tailwind
colors: {
  custom: {
    50: '#d19deb',
    500: '#ba72e2',
    950: '#000000',
  },
}
SCSS
$custom: #ba72e2;
$custom-light: #d19deb;
$custom-dark: #000000;
JSON
{
  "hex": "#ba72e2",
  "rgb": {
    "r": 186,
    "g": 114,
    "b": 226
  },
  "hsl": {
    "h": 278.571,
    "s": 65.882,
    "l": 66.667
  },
  "oklch": {
    "l": 0.67375,
    "c": 0.17344,
    "h": 312.3
  },
  "luminance": 0.27965
}

Semantic roles & 50–950 ramp

primary
#BA72E2
secondary
#D3EAC6
accent
#CE1859
background
#FDF9FE
surface
#FAF2FD
border
#D3CCD5
text
#140E16
muted
#837E84

Preview Lab

Preview with #BA72E2

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

Preview Lab → · Contrast checker → · Palette generator →

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