#BA98FB#BA98FB

#BA98FB is a light, vivid violet. Relative luminance 0.399; OKLCH L 74.9% C 0.143 H 298.7°. Best body text is #000000 at 8.97:1 contrast (WCAG AA passes).

Color values

HEX#BA98FB
RGBrgb(186, 152, 251)
HSLhsl(261, 93%, 79%)
HSVhsv(261, 39%, 98%)
CMYKcmyk(25.9%, 39.4%, 0%, 1.6%)
CIE-LABlab(69.37, 32.63, -44.83)
CIE-LCHlch(69.37, 55.45, 306.05°)
OKLaboklab(74.9% 0.0686 -0.125)
OKLCHoklch(74.9% 0.143 298.7)
XYZxyz(48.8865, 39.8603, 96.3664)
Luminance0.3986 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA98FB #D9FB98
analogous
#98A8FB #BA98FB #EC98FB
triadic
#BA98FB #FBBA98 #98FBBA
tetradic
#BA98FB #FB98A8 #D9FB98 #98FBEC
square
#BA98FB #FB98A8 #D9FB98 #98FBEC
split-complementary
#BA98FB #FBEC98 #A8FB98
monochromatic
#6B22F6 #935DF9 #BA98FB #E1D3FD #EBE2FE

Accessibility & contrast

On white

2.34
#BA98FB on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.97
#BA98FB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BA98FB
8.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA98FB#FFFFFF#000000##000000
##BA98FB1.002.348.978.97
#FFFFFF2.341.0021.0021.00
#0000008.9721.001.001.00
##0000008.9721.001.001.00

Color blindness preview

Protanopia (red-blind)
#7EA9FF
Deuteranopia (green-blind)
#84A9F8
Tritanopia (blue-blind)
#ADA9BE
Achromatopsia (no color)
#A9A9A9

Design tokens & code

CSS
--color: #ba98fb;
/* rgb */ color: rgb(186, 152, 251);
/* oklch */ color: oklch(74.9% 0.143 298.7);
Tailwind
colors: {
  custom: {
    50: '#d0b6fd',
    500: '#ba98fb',
    950: '#000000',
  },
}
SCSS
$custom: #ba98fb;
$custom-light: #d0b6fd;
$custom-dark: #000000;
JSON
{
  "hex": "#ba98fb",
  "rgb": {
    "r": 186,
    "g": 152,
    "b": 251
  },
  "hsl": {
    "h": 260.606,
    "s": 92.523,
    "l": 79.02
  },
  "oklch": {
    "l": 0.74896,
    "c": 0.1426,
    "h": 298.7
  },
  "luminance": 0.39861
}

Semantic roles & 50–950 ramp

primary
#BA98FB
secondary
#EBF6D5
accent
#E60097
background
#FDFBFF
surface
#FAF6FF
border
#D3D0D7
text
#141117
muted
#838085

Preview Lab

Preview with #BA98FB

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

Preview Lab → · Contrast checker → · Palette generator →

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