#BA95FC#BA95FC

#BA95FC is a light, vivid violet. Relative luminance 0.390; OKLCH L 74.4% C 0.149 H 299.3°. Best body text is #000000 at 8.79:1 contrast (WCAG AA passes).

Color values

HEX#BA95FC
RGBrgb(186, 149, 252)
HSLhsl(262, 94%, 79%)
HSVhsv(262, 41%, 99%)
CMYKcmyk(26.2%, 40.9%, 0%, 1.2%)
CIE-LABlab(68.72, 34.54, -46.39)
CIE-LCHlch(68.72, 57.84, 306.67°)
OKLaboklab(74.42% 0.0728 -0.1295)
OKLCHoklch(74.42% 0.149 299.3)
XYZxyz(48.5638, 38.9620, 97.0385)
Luminance0.3896 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA95FC #D7FC95
analogous
#95A3FC #BA95FC #ED95FC
triadic
#BA95FC #FCBA95 #95FCBA
tetradic
#BA95FC #FC95A3 #D7FC95 #95FCED
square
#BA95FC #FC95A3 #D7FC95 #95FCED
split-complementary
#BA95FC #FCED95 #A3FC95
monochromatic
#6D1EF9 #9359FA #BA95FC #E1D1FE #ECE1FE

Accessibility & contrast

On white

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

On black

8.79
#BA95FC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BA95FC
8.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA95FC#FFFFFF#000000##000000
##BA95FC1.002.398.798.79
#FFFFFF2.391.0021.0021.00
#0000008.7921.001.001.00
##0000008.7921.001.001.00

Color blindness preview

Protanopia (red-blind)
#79A8FF
Deuteranopia (green-blind)
#80A7F9
Tritanopia (blue-blind)
#ADA7BD
Achromatopsia (no color)
#A8A8A8

Design tokens & code

CSS
--color: #ba95fc;
/* rgb */ color: rgb(186, 149, 252);
/* oklch */ color: oklch(74.4% 0.149 299.3);
Tailwind
colors: {
  custom: {
    50: '#d1b4fe',
    500: '#ba95fc',
    950: '#000000',
  },
}
SCSS
$custom: #ba95fc;
$custom-light: #d1b4fe;
$custom-dark: #000000;
JSON
{
  "hex": "#ba95fc",
  "rgb": {
    "r": 186,
    "g": 149,
    "b": 252
  },
  "hsl": {
    "h": 261.553,
    "s": 94.495,
    "l": 78.627
  },
  "oklch": {
    "l": 0.74422,
    "c": 0.1486,
    "h": 299.3
  },
  "luminance": 0.38962
}

Semantic roles & 50–950 ramp

primary
#BA95FC
secondary
#EAF6D5
accent
#E60093
background
#FDFBFF
surface
#FAF6FF
border
#D3D0D7
text
#141118
muted
#838086

Preview Lab

Preview with #BA95FC

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

Preview Lab → · Contrast checker → · Palette generator →

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