#BA98FA#BA98FA

#BA98FA is a light, vivid violet. Relative luminance 0.398; OKLCH L 74.8% C 0.141 H 298.9°. Best body text is #000000 at 8.96:1 contrast (WCAG AA passes).

Color values

HEX#BA98FA
RGBrgb(186, 152, 250)
HSLhsl(261, 91%, 79%)
HSVhsv(261, 39%, 98%)
CMYKcmyk(25.6%, 39.2%, 0%, 2%)
CIE-LABlab(69.33, 32.40, -44.36)
CIE-LCHlch(69.33, 54.93, 306.14°)
OKLaboklab(74.85% 0.0684 -0.1237)
OKLCHoklch(74.85% 0.141 298.9)
XYZxyz(48.7293, 39.7974, 95.5384)
Luminance0.3980 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA98FA #D8FA98
analogous
#98A7FA #BA98FA #EB98FA
triadic
#BA98FA #FABA98 #98FABA
tetradic
#BA98FA #FA98A7 #D8FA98 #98FAEB
square
#BA98FA #FA98A7 #D8FA98 #98FAEB
split-complementary
#BA98FA #FAEB98 #A7FA98
monochromatic
#6C23F4 #935EF7 #BA98FA #E1D2FD #EBE2FE

Accessibility & contrast

On white

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

On black

8.96
#BA98FA on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BA98FA
8.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA98FA#FFFFFF#000000##000000
##BA98FA1.002.348.968.96
#FFFFFF2.341.0021.0021.00
#0000008.9621.001.001.00
##0000008.9621.001.001.00

Color blindness preview

Protanopia (red-blind)
#7EA9FE
Deuteranopia (green-blind)
#85A8F7
Tritanopia (blue-blind)
#AEA9BD
Achromatopsia (no color)
#A9A9A9

Design tokens & code

CSS
--color: #ba98fa;
/* rgb */ color: rgb(186, 152, 250);
/* oklch */ color: oklch(74.8% 0.141 298.9);
Tailwind
colors: {
  custom: {
    50: '#d0b6fc',
    500: '#ba98fa',
    950: '#000000',
  },
}
SCSS
$custom: #ba98fa;
$custom-light: #d0b6fc;
$custom-dark: #000000;
JSON
{
  "hex": "#ba98fa",
  "rgb": {
    "r": 186,
    "g": 152,
    "b": 250
  },
  "hsl": {
    "h": 260.816,
    "s": 90.741,
    "l": 78.824
  },
  "oklch": {
    "l": 0.74847,
    "c": 0.14131,
    "h": 298.9
  },
  "luminance": 0.39798
}

Semantic roles & 50–950 ramp

primary
#BA98FA
secondary
#EAF6D5
accent
#E60096
background
#FCFBFF
surface
#F9F6FF
border
#D2D0D7
text
#141117
muted
#828085

Preview Lab

Preview with #BA98FA

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

Preview Lab → · Contrast checker → · Palette generator →

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