#BA72F0#BA72F0

#BA72F0 is a light, vivid violet. Relative luminance 0.288; OKLCH L 68.1% C 0.189 H 308.6°. Best body text is #000000 at 6.75:1 contrast (WCAG AA passes).

Color values

HEX#BA72F0
RGBrgb(186, 114, 240)
HSLhsl(274, 81%, 69%)
HSVhsv(274, 53%, 94%)
CMYKcmyk(22.5%, 52.5%, 0%, 5.9%)
CIE-LABlab(60.57, 50.75, -52.68)
CIE-LCHlch(60.57, 73.15, 313.93°)
OKLaboklab(68.14% 0.1179 -0.1477)
OKLCHoklch(68.14% 0.189 308.6)
XYZxyz(41.9921, 28.7656, 85.7613)
Luminance0.2877 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA72F0 #A8F072
analogous
#7B72F0 #BA72F0 #F072E7
triadic
#BA72F0 #F0BA72 #72F0BA
tetradic
#BA72F0 #F07B72 #A8F072 #72E7F0
square
#BA72F0 #F07B72 #A8F072 #72E7F0
split-complementary
#BA72F0 #E7F072 #72F07B
monochromatic
#8116D1 #9F3BEA #BA72F0 #D5A9F6 #F0E1FC

Accessibility & contrast

On white

3.11
#BA72F0 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.75
#BA72F0 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA72F0
6.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA72F0#FFFFFF#000000##000000
##BA72F01.003.116.756.75
#FFFFFF3.111.0021.0021.00
#0000006.7521.001.001.00
##0000006.7521.001.001.00

Color blindness preview

Protanopia (red-blind)
#4D8FF4
Deuteranopia (green-blind)
#6493ED
Tritanopia (blue-blind)
#B288A6
Achromatopsia (no color)
#929292

Design tokens & code

CSS
--color: #ba72f0;
/* rgb */ color: rgb(186, 114, 240);
/* oklch */ color: oklch(68.1% 0.189 308.6);
Tailwind
colors: {
  custom: {
    50: '#d19df5',
    500: '#ba72f0',
    950: '#000000',
  },
}
SCSS
$custom: #ba72f0;
$custom-light: #d19df5;
$custom-dark: #000000;
JSON
{
  "hex": "#ba72f0",
  "rgb": {
    "r": 186,
    "g": 114,
    "b": 240
  },
  "hsl": {
    "h": 274.286,
    "s": 80.769,
    "l": 69.412
  },
  "oklch": {
    "l": 0.68138,
    "c": 0.18903,
    "h": 308.6
  },
  "luminance": 0.28765
}

Semantic roles & 50–950 ramp

primary
#BA72F0
secondary
#DCF1CD
accent
#DD0864
background
#FDF9FF
surface
#FAF2FE
border
#D3CCD6
text
#140E17
muted
#837E85

Preview Lab

Preview with #BA72F0

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

Preview Lab → · Contrast checker → · Palette generator →

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