#BA98FD#BA98FD

#BA98FD is a light, vivid violet. Relative luminance 0.400; OKLCH L 75.0% C 0.145 H 298.3°. Best body text is #000000 at 9.00:1 contrast (WCAG AA passes).

Color values

HEX#BA98FD
RGBrgb(186, 152, 253)
HSLhsl(260, 96%, 79%)
HSVhsv(260, 40%, 99%)
CMYKcmyk(26.5%, 39.9%, 0%, 0.8%)
CIE-LABlab(69.46, 33.11, -45.78)
CIE-LCHlch(69.46, 56.50, 305.88°)
OKLaboklab(74.99% 0.0689 -0.1278)
OKLCHoklch(74.99% 0.145 298.3)
XYZxyz(49.2034, 39.9870, 98.0355)
Luminance0.3999 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA98FD #DBFD98
analogous
#98A9FD #BA98FD #ED98FD
triadic
#BA98FD #FDBA98 #98FDBA
tetradic
#BA98FD #FD98A9 #DBFD98 #98FDED
square
#BA98FD #FD98A9 #DBFD98 #98FDED
split-complementary
#BA98FD #FDED98 #A9FD98
monochromatic
#6A20FB #925CFC #BA98FD #E2D4FE #EBE1FE

Accessibility & contrast

On white

2.33
#BA98FD on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.00
#BA98FD on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BA98FD
9.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA98FD#FFFFFF#000000##000000
##BA98FD1.002.339.009.00
#FFFFFF2.331.0021.0021.00
#0000009.0021.001.001.00
##0000009.0021.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #ba98fd;
/* rgb */ color: rgb(186, 152, 253);
/* oklch */ color: oklch(75.0% 0.145 298.3);
Tailwind
colors: {
  custom: {
    50: '#d1b6fe',
    500: '#ba98fd',
    950: '#000000',
  },
}
SCSS
$custom: #ba98fd;
$custom-light: #d1b6fe;
$custom-dark: #000000;
JSON
{
  "hex": "#ba98fd",
  "rgb": {
    "r": 186,
    "g": 152,
    "b": 253
  },
  "hsl": {
    "h": 260.198,
    "s": 96.19,
    "l": 79.412
  },
  "oklch": {
    "l": 0.74994,
    "c": 0.14519,
    "h": 298.3
  },
  "luminance": 0.39987
}

Semantic roles & 50–950 ramp

primary
#BA98FD
secondary
#EBF7D4
accent
#E60098
background
#FDFBFF
surface
#FAF6FF
border
#D3D0D7
text
#141118
muted
#838086

Preview Lab

Preview with #BA98FD

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

Preview Lab → · Contrast checker → · Palette generator →

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