#BA98EF#BA98EF

#BA98EF is a light, vivid violet. Relative luminance 0.391; OKLCH L 74.3% C 0.127 H 301.4°. Best body text is #000000 at 8.83:1 contrast (WCAG AA passes).

Color values

HEX#BA98EF
RGBrgb(186, 152, 239)
HSLhsl(263, 73%, 77%)
HSVhsv(263, 36%, 94%)
CMYKcmyk(22.2%, 36.4%, 0%, 6.3%)
CIE-LABlab(68.84, 29.84, -39.11)
CIE-LCHlch(68.84, 49.19, 307.34°)
OKLaboklab(74.32% 0.0661 -0.1085)
OKLCHoklch(74.32% 0.127 301.4)
XYZxyz(47.0545, 39.1275, 86.7180)
Luminance0.3913 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA98EF #CDEF98
analogous
#98A2EF #BA98EF #E598EF
triadic
#BA98EF #EFBA98 #98EFBA
tetradic
#BA98EF #EF98A2 #CDEF98 #98EFE5
square
#BA98EF #EF98A2 #CDEF98 #98EFE5
split-complementary
#BA98EF #EFE598 #A2EF98
monochromatic
#732EDF #9763E7 #BA98EF #DDCDF7 #EDE5FB

Accessibility & contrast

On white

2.38
#BA98EF on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.83
#BA98EF on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BA98EF
8.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA98EF#FFFFFF#000000##000000
##BA98EF1.002.388.838.83
#FFFFFF2.381.0021.0021.00
#0000008.8321.001.001.00
##0000008.8321.001.001.00

Color blindness preview

Protanopia (red-blind)
#83A7F2
Deuteranopia (green-blind)
#8AA8ED
Tritanopia (blue-blind)
#B1A6B8
Achromatopsia (no color)
#A8A8A8

Design tokens & code

CSS
--color: #ba98ef;
/* rgb */ color: rgb(186, 152, 239);
/* oklch */ color: oklch(74.3% 0.127 301.4);
Tailwind
colors: {
  custom: {
    50: '#d0b6f4',
    500: '#ba98ef',
    950: '#000000',
  },
}
SCSS
$custom: #ba98ef;
$custom-light: #d0b6f4;
$custom-dark: #000000;
JSON
{
  "hex": "#ba98ef",
  "rgb": {
    "r": 186,
    "g": 152,
    "b": 239
  },
  "hsl": {
    "h": 263.448,
    "s": 73.109,
    "l": 76.667
  },
  "oklch": {
    "l": 0.74324,
    "c": 0.12707,
    "h": 301.4
  },
  "luminance": 0.39128
}

Semantic roles & 50–950 ramp

primary
#BA98EF
secondary
#E8F3D8
accent
#D51088
background
#FCFBFE
surface
#F9F6FD
border
#D2D0D5
text
#141117
muted
#828085

Preview Lab

Preview with #BA98EF

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

Preview Lab → · Contrast checker → · Palette generator →

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