#BA95EC#BA95EC

#BA95EC is a light, vivid violet. Relative luminance 0.380; OKLCH L 73.7% C 0.128 H 303.0°. Best body text is #000000 at 8.60:1 contrast (WCAG AA passes).

Color values

HEX#BA95EC
RGBrgb(186, 149, 236)
HSLhsl(266, 70%, 75%)
HSVhsv(266, 37%, 93%)
CMYKcmyk(21.2%, 36.9%, 0%, 7.5%)
CIE-LABlab(68.01, 30.82, -38.76)
CIE-LCHlch(68.01, 49.52, 308.49°)
OKLaboklab(73.65% 0.0697 -0.1075)
OKLCHoklch(73.65% 0.128 303)
XYZxyz(46.1343, 37.9902, 84.2430)
Luminance0.3799 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA95EC #C7EC95
analogous
#959BEC #BA95EC #E595EC
triadic
#BA95EC #ECBA95 #95ECBA
tetradic
#BA95EC #EC959B #C7EC95 #95ECE5
square
#BA95EC #EC959B #C7EC95 #95ECE5
split-complementary
#BA95EC #ECE595 #9BEC95
monochromatic
#762DD9 #9861E3 #BA95EC #DCC9F5 #EEE5FA

Accessibility & contrast

On white

2.44
#BA95EC on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.60
#BA95EC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BA95EC
8.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA95EC#FFFFFF#000000##000000
##BA95EC1.002.448.608.60
#FFFFFF2.441.0021.0021.00
#0000008.6021.001.001.00
##0000008.6021.001.001.00

Color blindness preview

Protanopia (red-blind)
#81A5EF
Deuteranopia (green-blind)
#88A6EA
Tritanopia (blue-blind)
#B2A3B6
Achromatopsia (no color)
#A6A6A6

Design tokens & code

CSS
--color: #ba95ec;
/* rgb */ color: rgb(186, 149, 236);
/* oklch */ color: oklch(73.7% 0.128 303.0);
Tailwind
colors: {
  custom: {
    50: '#d0b4f2',
    500: '#ba95ec',
    950: '#000000',
  },
}
SCSS
$custom: #ba95ec;
$custom-light: #d0b4f2;
$custom-dark: #000000;
JSON
{
  "hex": "#ba95ec",
  "rgb": {
    "r": 186,
    "g": 149,
    "b": 236
  },
  "hsl": {
    "h": 265.517,
    "s": 69.6,
    "l": 75.49
  },
  "oklch": {
    "l": 0.73651,
    "c": 0.1281,
    "h": 303
  },
  "luminance": 0.3799
}

Semantic roles & 50–950 ramp

primary
#BA95EC
secondary
#E7F2D9
accent
#D21481
background
#FCFBFE
surface
#F9F6FD
border
#D2D0D5
text
#141117
muted
#828085

Preview Lab

Preview with #BA95EC

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

Preview Lab → · Contrast checker → · Palette generator →

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