#BA98FF#BA98FF

#BA98FF is a light, vivid violet. Relative luminance 0.401; OKLCH L 75.1% C 0.148 H 298.0°. Best body text is #000000 at 9.02:1 contrast (WCAG AA passes).

Color values

HEX#BA98FF
RGBrgb(186, 152, 255)
HSLhsl(260, 100%, 80%)
HSVhsv(260, 40%, 100%)
CMYKcmyk(27.1%, 40.4%, 0%, 0%)
CIE-LABlab(69.55, 33.59, -46.72)
CIE-LCHlch(69.55, 57.54, 305.71°)
OKLaboklab(75.09% 0.0693 -0.1305)
OKLCHoklch(75.09% 0.148 298)
XYZxyz(49.5237, 40.1152, 99.7222)
Luminance0.4012 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA98FF #DDFF98
analogous
#98AAFF #BA98FF #EE98FF
triadic
#BA98FF #FFBA98 #98FFBA
tetradic
#BA98FF #FF98AA #DDFF98 #98FFEE
square
#BA98FF #FF98AA #DDFF98 #98FFEE
split-complementary
#BA98FF #FFEE98 #AAFF98
monochromatic
#681EFF #915BFF #BA98FF #E3D5FF #EBE0FF

Accessibility & contrast

On white

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

On black

9.02
#BA98FF on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BA98FF
9.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA98FF#FFFFFF#000000##000000
##BA98FF1.002.339.029.02
#FFFFFF2.331.0021.0021.00
#0000009.0221.001.001.00
##0000009.0221.001.001.00

Color blindness preview

Protanopia (red-blind)
#7CAAFF
Deuteranopia (green-blind)
#82A9FC
Tritanopia (blue-blind)
#ACAABF
Achromatopsia (no color)
#AAAAAA

Design tokens & code

CSS
--color: #ba98ff;
/* rgb */ color: rgb(186, 152, 255);
/* oklch */ color: oklch(75.1% 0.148 298.0);
Tailwind
colors: {
  custom: {
    50: '#d1b6ff',
    500: '#ba98ff',
    950: '#000000',
  },
}
SCSS
$custom: #ba98ff;
$custom-light: #d1b6ff;
$custom-dark: #000000;
JSON
{
  "hex": "#ba98ff",
  "rgb": {
    "r": 186,
    "g": 152,
    "b": 255
  },
  "hsl": {
    "h": 259.806,
    "s": 100,
    "l": 79.804
  },
  "oklch": {
    "l": 0.75093,
    "c": 0.14777,
    "h": 298
  },
  "luminance": 0.40116
}

Semantic roles & 50–950 ramp

primary
#BA98FF
secondary
#ECF7D4
accent
#E6009A
background
#FDFBFF
surface
#FAF6FF
border
#D3D0D7
text
#141118
muted
#838086

Preview Lab

Preview with #BA98FF

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

Preview Lab → · Contrast checker → · Palette generator →

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