#BA72F2#BA72F2

#BA72F2 is a light, vivid violet. Relative luminance 0.289; OKLCH L 68.3% C 0.191 H 308.1°. Best body text is #000000 at 6.78:1 contrast (WCAG AA passes).

Color values

HEX#BA72F2
RGBrgb(186, 114, 242)
HSLhsl(274, 83%, 70%)
HSVhsv(274, 53%, 95%)
CMYKcmyk(23.1%, 52.9%, 0%, 5.1%)
CIE-LABlab(60.68, 51.20, -53.62)
CIE-LCHlch(60.68, 74.14, 313.68°)
OKLaboklab(68.25% 0.1181 -0.1505)
OKLCHoklch(68.25% 0.191 308.1)
XYZxyz(42.2908, 28.8851, 87.3347)
Luminance0.2888 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA72F2 #AAF272
analogous
#7A72F2 #BA72F2 #F272EA
triadic
#BA72F2 #F2BA72 #72F2BA
tetradic
#BA72F2 #F27A72 #AAF272 #72EAF2
square
#BA72F2 #F27A72 #AAF272 #72EAF2
split-complementary
#BA72F2 #EAF272 #72F27A
monochromatic
#8114D6 #9F3AED #BA72F2 #D5AAF7 #F1E2FC

Accessibility & contrast

On white

3.10
#BA72F2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.78
#BA72F2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA72F2
6.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA72F2#FFFFFF#000000##000000
##BA72F21.003.106.786.78
#FFFFFF3.101.0021.0021.00
#0000006.7821.001.001.00
##0000006.7821.001.001.00

Color blindness preview

Protanopia (red-blind)
#4B8FF6
Deuteranopia (green-blind)
#6293EF
Tritanopia (blue-blind)
#B289A7
Achromatopsia (no color)
#929292

Design tokens & code

CSS
--color: #ba72f2;
/* rgb */ color: rgb(186, 114, 242);
/* oklch */ color: oklch(68.3% 0.191 308.1);
Tailwind
colors: {
  custom: {
    50: '#d29df7',
    500: '#ba72f2',
    950: '#000000',
  },
}
SCSS
$custom: #ba72f2;
$custom-light: #d29df7;
$custom-dark: #000000;
JSON
{
  "hex": "#ba72f2",
  "rgb": {
    "r": 186,
    "g": 114,
    "b": 242
  },
  "hsl": {
    "h": 273.75,
    "s": 83.117,
    "l": 69.804
  },
  "oklch": {
    "l": 0.6825,
    "c": 0.19127,
    "h": 308.1
  },
  "luminance": 0.28885
}

Semantic roles & 50–950 ramp

primary
#BA72F2
secondary
#DEF2CE
accent
#E00665
background
#FDF9FF
surface
#FAF2FF
border
#D3CCD7
text
#140E17
muted
#837E85

Preview Lab

Preview with #BA72F2

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

Preview Lab → · Contrast checker → · Palette generator →

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