#BA82F8#BA82F8

#BA82F8 is a light, vivid violet. Relative luminance 0.332; OKLCH L 71.0% C 0.173 H 304.3°. Best body text is #000000 at 7.64:1 contrast (WCAG AA passes).

Color values

HEX#BA82F8
RGBrgb(186, 130, 248)
HSLhsl(268, 89%, 74%)
HSVhsv(268, 48%, 97%)
CMYKcmyk(25%, 47.6%, 0%, 2.7%)
CIE-LABlab(64.31, 44.04, -51.17)
CIE-LCHlch(64.31, 67.51, 310.72°)
OKLaboklab(71.04% 0.0977 -0.1434)
OKLCHoklch(71.04% 0.173 304.3)
XYZxyz(45.1720, 33.1818, 92.8137)
Luminance0.3318 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA82F8 #C0F882
analogous
#8285F8 #BA82F8 #F582F8
triadic
#BA82F8 #F8BA82 #82F8BA
tetradic
#BA82F8 #F88285 #C0F882 #82F8F5
square
#BA82F8 #F88285 #C0F882 #82F8F5
split-complementary
#BA82F8 #F8F582 #85F882
monochromatic
#7A0EF2 #9A48F5 #BA82F8 #DABCFB #EFE2FD

Accessibility & contrast

On white

2.75
#BA82F8 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.64
#BA82F8 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BA82F8
7.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA82F8#FFFFFF#000000##000000
##BA82F81.002.757.647.64
#FFFFFF2.751.0021.0021.00
#0000007.6421.001.001.00
##0000007.6421.001.001.00

Color blindness preview

Protanopia (red-blind)
#609AFC
Deuteranopia (green-blind)
#6F9CF5
Tritanopia (blue-blind)
#B097B1
Achromatopsia (no color)
#9C9C9C

Design tokens & code

CSS
--color: #ba82f8;
/* rgb */ color: rgb(186, 130, 248);
/* oklch */ color: oklch(71.0% 0.173 304.3);
Tailwind
colors: {
  custom: {
    50: '#d1a7fb',
    500: '#ba82f8',
    950: '#000000',
  },
}
SCSS
$custom: #ba82f8;
$custom-light: #d1a7fb;
$custom-dark: #000000;
JSON
{
  "hex": "#ba82f8",
  "rgb": {
    "r": 186,
    "g": 130,
    "b": 248
  },
  "hsl": {
    "h": 268.475,
    "s": 89.394,
    "l": 74.118
  },
  "oklch": {
    "l": 0.71042,
    "c": 0.17349,
    "h": 304.3
  },
  "luminance": 0.33182
}

Semantic roles & 50–950 ramp

primary
#BA82F8
secondary
#E6F5D6
accent
#E60079
background
#FDFAFF
surface
#FAF4FF
border
#D3CED7
text
#141017
muted
#837F85

Preview Lab

Preview with #BA82F8

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

Preview Lab → · Contrast checker → · Palette generator →

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