#BA98EA#BA98EA

#BA98EA is a light, vivid violet. Relative luminance 0.388; OKLCH L 74.1% C 0.121 H 302.6°. Best body text is #000000 at 8.77:1 contrast (WCAG AA passes).

Color values

HEX#BA98EA
RGBrgb(186, 152, 234)
HSLhsl(265, 66%, 76%)
HSVhsv(265, 35%, 92%)
CMYKcmyk(20.5%, 35%, 0%, 8.2%)
CIE-LABlab(68.63, 28.69, -36.69)
CIE-LCHlch(68.63, 46.58, 308.02°)
OKLaboklab(74.09% 0.065 -0.1016)
OKLCHoklch(74.09% 0.121 302.6)
XYZxyz(46.3261, 38.8361, 82.8815)
Luminance0.3884 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA98EA #C8EA98
analogous
#989FEA #BA98EA #E398EA
triadic
#BA98EA #EABA98 #98EABA
tetradic
#BA98EA #EA989F #C8EA98 #98EAE3
square
#BA98EA #EA989F #C8EA98 #98EAE3
split-complementary
#BA98EA #EAE398 #9FEA98
monochromatic
#7632D5 #9865E0 #BA98EA #DCCBF4 #EEE6FA

Accessibility & contrast

On white

2.40
#BA98EA on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.77
#BA98EA on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BA98EA
8.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA98EA#FFFFFF#000000##000000
##BA98EA1.002.408.778.77
#FFFFFF2.401.0021.0021.00
#0000008.7721.001.001.00
##0000008.7721.001.001.00

Color blindness preview

Protanopia (red-blind)
#86A7ED
Deuteranopia (green-blind)
#8CA7E8
Tritanopia (blue-blind)
#B2A5B6
Achromatopsia (no color)
#A7A7A7

Design tokens & code

CSS
--color: #ba98ea;
/* rgb */ color: rgb(186, 152, 234);
/* oklch */ color: oklch(74.1% 0.121 302.6);
Tailwind
colors: {
  custom: {
    50: '#d0b6f1',
    500: '#ba98ea',
    950: '#000000',
  },
}
SCSS
$custom: #ba98ea;
$custom-light: #d0b6f1;
$custom-dark: #000000;
JSON
{
  "hex": "#ba98ea",
  "rgb": {
    "r": 186,
    "g": 152,
    "b": 234
  },
  "hsl": {
    "h": 264.878,
    "s": 66.129,
    "l": 75.686
  },
  "oklch": {
    "l": 0.74094,
    "c": 0.12061,
    "h": 302.6
  },
  "luminance": 0.38836
}

Semantic roles & 50–950 ramp

primary
#BA98EA
secondary
#E8F1DA
accent
#CE1882
background
#FCFBFE
surface
#F9F6FD
border
#D2D0D5
text
#141116
muted
#828084

Preview Lab

Preview with #BA98EA

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

Preview Lab → · Contrast checker → · Palette generator →

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