#BA82DC#BA82DC

#BA82DC is a light, vivid violet. Relative luminance 0.316; OKLCH L 69.6% C 0.140 H 311.8°. Best body text is #000000 at 7.31:1 contrast (WCAG AA passes).

Color values

HEX#BA82DC
RGBrgb(186, 130, 220)
HSLhsl(277, 56%, 69%)
HSVhsv(277, 41%, 86%)
CMYKcmyk(15.5%, 40.9%, 0%, 13.7%)
CIE-LABlab(62.99, 37.78, -37.75)
CIE-LCHlch(62.99, 53.41, 315.02°)
OKLaboklab(69.62% 0.0934 -0.1045)
OKLCHoklch(69.62% 0.14 311.8)
XYZxyz(41.1484, 31.5724, 71.6227)
Luminance0.3157 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA82DC #A4DC82
analogous
#8D82DC #BA82DC #DC82D1
triadic
#BA82DC #DCBA82 #82DCBA
tetradic
#BA82DC #DC8D82 #A4DC82 #82D1DC
square
#BA82DC #DC8D82 #A4DC82 #82D1DC
split-complementary
#BA82DC #D1DC82 #82DC8D
monochromatic
#8132B2 #A052CF #BA82DC #D4B2E9 #EFE2F7

Accessibility & contrast

On white

2.87
#BA82DC on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.31
#BA82DC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BA82DC
7.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA82DC#FFFFFF#000000##000000
##BA82DC1.002.877.317.31
#FFFFFF2.871.0021.0021.00
#0000007.3121.001.001.00
##0000007.3121.001.001.00

Color blindness preview

Protanopia (red-blind)
#7095DF
Deuteranopia (green-blind)
#7E9AD9
Tritanopia (blue-blind)
#B78FA5
Achromatopsia (no color)
#989898

Design tokens & code

CSS
--color: #ba82dc;
/* rgb */ color: rgb(186, 130, 220);
/* oklch */ color: oklch(69.6% 0.140 311.8);
Tailwind
colors: {
  custom: {
    50: '#d0a7e7',
    500: '#ba82dc',
    950: '#000000',
  },
}
SCSS
$custom: #ba82dc;
$custom-light: #d0a7e7;
$custom-dark: #000000;
JSON
{
  "hex": "#ba82dc",
  "rgb": {
    "r": 186,
    "g": 130,
    "b": 220
  },
  "hsl": {
    "h": 277.333,
    "s": 56.25,
    "l": 68.627
  },
  "oklch": {
    "l": 0.69622,
    "c": 0.14017,
    "h": 311.8
  },
  "luminance": 0.31572
}

Semantic roles & 50–950 ramp

primary
#BA82DC
secondary
#DAEACF
accent
#C4225F
background
#FCFAFE
surface
#F9F4FC
border
#D2CED5
text
#140F16
muted
#827F84

Preview Lab

Preview with #BA82DC

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

Preview Lab → · Contrast checker → · Palette generator →

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