#BA98FC#BA98FC

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

Color values

HEX#BA98FC
RGBrgb(186, 152, 252)
HSLhsl(260, 94%, 79%)
HSVhsv(260, 40%, 99%)
CMYKcmyk(26.2%, 39.7%, 0%, 1.2%)
CIE-LABlab(69.42, 32.87, -45.31)
CIE-LCHlch(69.42, 55.98, 305.96°)
OKLaboklab(74.94% 0.0687 -0.1264)
OKLCHoklch(74.94% 0.144 298.5)
XYZxyz(49.0446, 39.9235, 97.1987)
Luminance0.3992 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA98FC #DAFC98
analogous
#98A8FC #BA98FC #EC98FC
triadic
#BA98FC #FCBA98 #98FCBA
tetradic
#BA98FC #FC98A8 #DAFC98 #98FCEC
square
#BA98FC #FC98A8 #DAFC98 #98FCEC
split-complementary
#BA98FC #FCEC98 #A8FC98
monochromatic
#6A21F9 #925DFA #BA98FC #E2D3FE #EBE1FE

Accessibility & contrast

On white

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

On black

8.98
#BA98FC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BA98FC
8.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA98FC#FFFFFF#000000##000000
##BA98FC1.002.348.988.98
#FFFFFF2.341.0021.0021.00
#0000008.9821.001.001.00
##0000008.9821.001.001.00

Color blindness preview

Protanopia (red-blind)
#7DAAFF
Deuteranopia (green-blind)
#83A9F9
Tritanopia (blue-blind)
#ADA9BE
Achromatopsia (no color)
#A9A9A9

Design tokens & code

CSS
--color: #ba98fc;
/* rgb */ color: rgb(186, 152, 252);
/* oklch */ color: oklch(74.9% 0.144 298.5);
Tailwind
colors: {
  custom: {
    50: '#d0b6fe',
    500: '#ba98fc',
    950: '#000000',
  },
}
SCSS
$custom: #ba98fc;
$custom-light: #d0b6fe;
$custom-dark: #000000;
JSON
{
  "hex": "#ba98fc",
  "rgb": {
    "r": 186,
    "g": 152,
    "b": 252
  },
  "hsl": {
    "h": 260.4,
    "s": 94.34,
    "l": 79.216
  },
  "oklch": {
    "l": 0.74945,
    "c": 0.14389,
    "h": 298.5
  },
  "luminance": 0.39924
}

Semantic roles & 50–950 ramp

primary
#BA98FC
secondary
#EBF6D5
accent
#E60097
background
#FDFBFF
surface
#FAF6FF
border
#D3D0D7
text
#141118
muted
#838086

Preview Lab

Preview with #BA98FC

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

Preview Lab → · Contrast checker → · Palette generator →

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