#BA5FFD#BA5FFD

#BA5FFD is a light, highly saturated violet. Relative luminance 0.257; OKLCH L 66.3% C 0.230 H 307.8°. Best body text is #000000 at 6.14:1 contrast (WCAG AA passes).

Color values

HEX#BA5FFD
RGBrgb(186, 95, 253)
HSLhsl(275, 98%, 68%)
HSVhsv(275, 62%, 99%)
CMYKcmyk(26.5%, 62.5%, 0%, 0.8%)
CIE-LABlab(57.77, 63.08, -64.37)
CIE-LCHlch(57.77, 90.13, 314.42°)
OKLaboklab(66.32% 0.1411 -0.1819)
OKLCHoklch(66.32% 0.23 307.8)
XYZxyz(42.0679, 25.7159, 95.6570)
Luminance0.2571 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA5FFD #A2FD5F
analogous
#6B5FFD #BA5FFD #FD5FF1
triadic
#BA5FFD #FDBA5F #5FFDBA
tetradic
#BA5FFD #FD6B5F #A2FD5F #5FF1FD
square
#BA5FFD #FD6B5F #A2FD5F #5FF1FD
split-complementary
#BA5FFD #F1FD5F #5FFD6B
monochromatic
#8203DF #A023FC #BA5FFD #D49BFE #EED8FF

Accessibility & contrast

On white

3.42
#BA5FFD on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.14
#BA5FFD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA5FFD
6.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA5FFD#FFFFFF#000000##000000
##BA5FFD1.003.426.146.14
#FFFFFF3.421.0021.0021.00
#0000006.1421.001.001.00
##0000006.1421.001.001.00

Color blindness preview

Protanopia (red-blind)
#0087FF
Deuteranopia (green-blind)
#428CF9
Tritanopia (blue-blind)
#B07FA6
Achromatopsia (no color)
#8B8B8B

Design tokens & code

CSS
--color: #ba5ffd;
/* rgb */ color: rgb(186, 95, 253);
/* oklch */ color: oklch(66.3% 0.230 307.8);
Tailwind
colors: {
  custom: {
    50: '#d391ff',
    500: '#ba5ffd',
    950: '#000000',
  },
}
SCSS
$custom: #ba5ffd;
$custom-light: #d391ff;
$custom-dark: #000000;
JSON
{
  "hex": "#ba5ffd",
  "rgb": {
    "r": 186,
    "g": 95,
    "b": 253
  },
  "hsl": {
    "h": 274.557,
    "s": 97.531,
    "l": 68.235
  },
  "oklch": {
    "l": 0.66324,
    "c": 0.23023,
    "h": 307.8
  },
  "luminance": 0.25715
}

Semantic roles & 50–950 ramp

primary
#BA5FFD
secondary
#D8F4C4
accent
#E60061
background
#FDF9FF
surface
#FAF1FF
border
#D3CBD7
text
#150D18
muted
#837E86

Preview Lab

Preview with #BA5FFD

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

Preview Lab → · Contrast checker → · Palette generator →

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