#BA7DF2#BA7DF2

#BA7DF2 is a light, vivid violet. Relative luminance 0.315; OKLCH L 69.9% C 0.174 H 306.5°. Best body text is #000000 at 7.30:1 contrast (WCAG AA passes).

Color values

HEX#BA7DF2
RGBrgb(186, 125, 242)
HSLhsl(271, 82%, 72%)
HSVhsv(271, 48%, 95%)
CMYKcmyk(23.1%, 48.3%, 0%, 5.1%)
CIE-LABlab(62.94, 45.37, -50.03)
CIE-LCHlch(62.94, 67.54, 312.20°)
OKLaboklab(69.93% 0.1036 -0.1401)
OKLCHoklch(69.93% 0.174 306.5)
XYZxyz(43.6071, 31.5175, 87.7734)
Luminance0.3152 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA7DF2 #B5F27D
analogous
#807DF2 #BA7DF2 #F27DF0
triadic
#BA7DF2 #F2BA7D #7DF2BA
tetradic
#BA7DF2 #F2807D #B5F27D #7DF0F2
square
#BA7DF2 #F2807D #B5F27D #7DF0F2
split-complementary
#BA7DF2 #F0F27D #7DF280
monochromatic
#7F16DE #9C45EC #BA7DF2 #D8B5F8 #F0E3FC

Accessibility & contrast

On white

2.88
#BA7DF2 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.30
#BA7DF2 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BA7DF2
7.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA7DF2#FFFFFF#000000##000000
##BA7DF21.002.887.307.30
#FFFFFF2.881.0021.0021.00
#0000007.3021.001.001.00
##0000007.3021.001.001.00

Color blindness preview

Protanopia (red-blind)
#5D96F6
Deuteranopia (green-blind)
#6E99EF
Tritanopia (blue-blind)
#B191AC
Achromatopsia (no color)
#989898

Design tokens & code

CSS
--color: #ba7df2;
/* rgb */ color: rgb(186, 125, 242);
/* oklch */ color: oklch(69.9% 0.174 306.5);
Tailwind
colors: {
  custom: {
    50: '#d1a4f7',
    500: '#ba7df2',
    950: '#000000',
  },
}
SCSS
$custom: #ba7df2;
$custom-light: #d1a4f7;
$custom-dark: #000000;
JSON
{
  "hex": "#ba7df2",
  "rgb": {
    "r": 186,
    "g": 125,
    "b": 242
  },
  "hsl": {
    "h": 271.282,
    "s": 81.818,
    "l": 71.961
  },
  "oklch": {
    "l": 0.69927,
    "c": 0.17422,
    "h": 306.5
  },
  "luminance": 0.31517
}

Semantic roles & 50–950 ramp

primary
#BA7DF2
secondary
#E5F4D7
accent
#DE076E
background
#FDFAFF
surface
#FAF4FF
border
#D3CED7
text
#140F17
muted
#837F85

Preview Lab

Preview with #BA7DF2

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

Preview Lab → · Contrast checker → · Palette generator →

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