#BA82FC#BA82FC

#BA82FC is a light, vivid violet. Relative luminance 0.334; OKLCH L 71.3% C 0.178 H 303.4°. Best body text is #000000 at 7.69:1 contrast (WCAG AA passes).

Color values

HEX#BA82FC
RGBrgb(186, 130, 252)
HSLhsl(268, 95%, 75%)
HSVhsv(268, 48%, 99%)
CMYKcmyk(26.2%, 48.4%, 0%, 1.2%)
CIE-LABlab(64.51, 44.97, -53.05)
CIE-LCHlch(64.51, 69.54, 310.29°)
OKLaboklab(71.26% 0.0981 -0.1489)
OKLCHoklch(71.26% 0.178 303.4)
XYZxyz(45.7992, 33.4327, 96.1169)
Luminance0.3343 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA82FC #C4FC82
analogous
#8287FC #BA82FC #F782FC
triadic
#BA82FC #FCBA82 #82FCBA
tetradic
#BA82FC #FC8287 #C4FC82 #82FCF7
square
#BA82FC #FC8287 #C4FC82 #82FCF7
split-complementary
#BA82FC #FCF782 #87FC82
monochromatic
#780AF9 #9946FB #BA82FC #DBBEFD #EFE1FE

Accessibility & contrast

On white

2.73
#BA82FC on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.69
#BA82FC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BA82FC
7.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA82FC#FFFFFF#000000##000000
##BA82FC1.002.737.697.69
#FFFFFF2.731.0021.0021.00
#0000007.6921.001.001.00
##0000007.6921.001.001.00

Color blindness preview

Protanopia (red-blind)
#5D9BFF
Deuteranopia (green-blind)
#6C9CF9
Tritanopia (blue-blind)
#AE98B3
Achromatopsia (no color)
#9C9C9C

Design tokens & code

CSS
--color: #ba82fc;
/* rgb */ color: rgb(186, 130, 252);
/* oklch */ color: oklch(71.3% 0.178 303.4);
Tailwind
colors: {
  custom: {
    50: '#d1a7fe',
    500: '#ba82fc',
    950: '#000000',
  },
}
SCSS
$custom: #ba82fc;
$custom-light: #d1a7fe;
$custom-dark: #000000;
JSON
{
  "hex": "#ba82fc",
  "rgb": {
    "r": 186,
    "g": 130,
    "b": 252
  },
  "hsl": {
    "h": 267.541,
    "s": 95.313,
    "l": 74.902
  },
  "oklch": {
    "l": 0.71259,
    "c": 0.17828,
    "h": 303.4
  },
  "luminance": 0.33433
}

Semantic roles & 50–950 ramp

primary
#BA82FC
secondary
#E7F7D4
accent
#E6007C
background
#FDFAFF
surface
#FAF4FF
border
#D3CED7
text
#141018
muted
#837F86

Preview Lab

Preview with #BA82FC

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

Preview Lab → · Contrast checker → · Palette generator →

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