#BA98EB#BA98EB

#BA98EB is a light, vivid violet. Relative luminance 0.389; OKLCH L 74.1% C 0.122 H 302.4°. Best body text is #000000 at 8.78:1 contrast (WCAG AA passes).

Color values

HEX#BA98EB
RGBrgb(186, 152, 235)
HSLhsl(265, 67%, 76%)
HSVhsv(265, 35%, 92%)
CMYKcmyk(20.9%, 35.3%, 0%, 7.8%)
CIE-LABlab(68.67, 28.92, -37.18)
CIE-LCHlch(68.67, 47.10, 307.88°)
OKLaboklab(74.14% 0.0653 -0.103)
OKLCHoklch(74.14% 0.122 302.4)
XYZxyz(46.4702, 38.8937, 83.6402)
Luminance0.3889 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA98EB #C9EB98
analogous
#989FEB #BA98EB #E398EB
triadic
#BA98EB #EBBA98 #98EBBA
tetradic
#BA98EB #EB989F #C9EB98 #98EBE3
square
#BA98EB #EB989F #C9EB98 #98EBE3
split-complementary
#BA98EB #EBE398 #9FEB98
monochromatic
#7532D7 #9865E1 #BA98EB #DCCBF5 #EEE5FA

Accessibility & contrast

On white

2.39
#BA98EB on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.78
#BA98EB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BA98EB
8.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA98EB#FFFFFF#000000##000000
##BA98EB1.002.398.788.78
#FFFFFF2.391.0021.0021.00
#0000008.7821.001.001.00
##0000008.7821.001.001.00

Color blindness preview

Protanopia (red-blind)
#85A7EE
Deuteranopia (green-blind)
#8CA7E9
Tritanopia (blue-blind)
#B2A5B7
Achromatopsia (no color)
#A7A7A7

Design tokens & code

CSS
--color: #ba98eb;
/* rgb */ color: rgb(186, 152, 235);
/* oklch */ color: oklch(74.1% 0.122 302.4);
Tailwind
colors: {
  custom: {
    50: '#d0b6f1',
    500: '#ba98eb',
    950: '#000000',
  },
}
SCSS
$custom: #ba98eb;
$custom-light: #d0b6f1;
$custom-dark: #000000;
JSON
{
  "hex": "#ba98eb",
  "rgb": {
    "r": 186,
    "g": 152,
    "b": 235
  },
  "hsl": {
    "h": 264.578,
    "s": 67.48,
    "l": 75.882
  },
  "oklch": {
    "l": 0.74139,
    "c": 0.1219,
    "h": 302.4
  },
  "luminance": 0.38894
}

Semantic roles & 50–950 ramp

primary
#BA98EB
secondary
#E8F2D9
accent
#CF1683
background
#FCFBFE
surface
#F9F6FD
border
#D2D0D5
text
#141117
muted
#828085

Preview Lab

Preview with #BA98EB

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

Preview Lab → · Contrast checker → · Palette generator →

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