#BA95EF#BA95EF

#BA95EF is a light, vivid violet. Relative luminance 0.382; OKLCH L 73.8% C 0.132 H 302.2°. Best body text is #000000 at 8.63:1 contrast (WCAG AA passes).

Color values

HEX#BA95EF
RGBrgb(186, 149, 239)
HSLhsl(265, 74%, 76%)
HSVhsv(265, 38%, 94%)
CMYKcmyk(22.2%, 37.7%, 0%, 6.3%)
CIE-LABlab(68.14, 31.50, -40.20)
CIE-LCHlch(68.14, 51.07, 308.09°)
OKLaboklab(73.79% 0.0703 -0.1116)
OKLCHoklch(73.79% 0.132 302.2)
XYZxyz(46.5738, 38.1660, 86.5578)
Luminance0.3817 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA95EF #CAEF95
analogous
#959DEF #BA95EF #E795EF
triadic
#BA95EF #EFBA95 #95EFBA
tetradic
#BA95EF #EF959D #CAEF95 #95EFE7
square
#BA95EF #EF959D #CAEF95 #95EFE7
split-complementary
#BA95EF #EFE795 #9DEF95
monochromatic
#752BDF #9760E7 #BA95EF #DDCAF7 #EEE4FB

Accessibility & contrast

On white

2.43
#BA95EF on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.63
#BA95EF on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BA95EF
8.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA95EF#FFFFFF#000000##000000
##BA95EF1.002.438.638.63
#FFFFFF2.431.0021.0021.00
#0000008.6321.001.001.00
##0000008.6321.001.001.00

Color blindness preview

Protanopia (red-blind)
#80A5F2
Deuteranopia (green-blind)
#87A6ED
Tritanopia (blue-blind)
#B1A3B7
Achromatopsia (no color)
#A6A6A6

Design tokens & code

CSS
--color: #ba95ef;
/* rgb */ color: rgb(186, 149, 239);
/* oklch */ color: oklch(73.8% 0.132 302.2);
Tailwind
colors: {
  custom: {
    50: '#d0b4f4',
    500: '#ba95ef',
    950: '#000000',
  },
}
SCSS
$custom: #ba95ef;
$custom-light: #d0b4f4;
$custom-dark: #000000;
JSON
{
  "hex": "#ba95ef",
  "rgb": {
    "r": 186,
    "g": 149,
    "b": 239
  },
  "hsl": {
    "h": 264.667,
    "s": 73.77,
    "l": 76.078
  },
  "oklch": {
    "l": 0.73792,
    "c": 0.13195,
    "h": 302.2
  },
  "luminance": 0.38166
}

Semantic roles & 50–950 ramp

primary
#BA95EF
secondary
#E8F3D8
accent
#D61084
background
#FCFBFE
surface
#F9F6FD
border
#D2D0D5
text
#141117
muted
#828085

Preview Lab

Preview with #BA95EF

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

Preview Lab → · Contrast checker → · Palette generator →

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