#BA5FDD#BA5FDD

#BA5FDD is a light, vivid purple. Relative luminance 0.238; OKLCH L 64.4% C 0.198 H 315.6°. Best body text is #000000 at 5.77:1 contrast (WCAG AA passes).

Color values

HEX#BA5FDD
RGBrgb(186, 95, 221)
HSLhsl(283, 65%, 62%)
HSVhsv(283, 57%, 87%)
CMYKcmyk(15.8%, 57%, 0%, 13.3%)
CIE-LABlab(55.93, 56.31, -49.43)
CIE-LCHlch(55.93, 74.93, 318.72°)
OKLaboklab(64.4% 0.1412 -0.1382)
OKLCHoklch(64.4% 0.198 315.6)
XYZxyz(37.3910, 23.8452, 71.0255)
Luminance0.2384 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA5FDD #82DD5F
analogous
#7B5FDD #BA5FDD #DD5FC1
triadic
#BA5FDD #DDBA5F #5FDDBA
tetradic
#BA5FDD #DD7B5F #82DD5F #5FC1DD
square
#BA5FDD #DD7B5F #82DD5F #5FC1DD
split-complementary
#BA5FDD #C1DD5F #5FDD7B
monochromatic
#7D22A0 #A42DD2 #BA5FDD #D091E8 #E6C4F2

Accessibility & contrast

On white

3.64
#BA5FDD on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.77
#BA5FDD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA5FDD
5.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA5FDD#FFFFFF#000000##000000
##BA5FDD1.003.645.775.77
#FFFFFF3.641.0021.0021.00
#0000005.7721.001.001.00
##0000005.7721.001.001.00

Color blindness preview

Protanopia (red-blind)
#3D81E1
Deuteranopia (green-blind)
#5F89DA
Tritanopia (blue-blind)
#B87495
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #ba5fdd;
/* rgb */ color: rgb(186, 95, 221);
/* oklch */ color: oklch(64.4% 0.198 315.6);
Tailwind
colors: {
  custom: {
    50: '#d290e8',
    500: '#ba5fdd',
    950: '#000000',
  },
}
SCSS
$custom: #ba5fdd;
$custom-light: #d290e8;
$custom-dark: #000000;
JSON
{
  "hex": "#ba5fdd",
  "rgb": {
    "r": 186,
    "g": 95,
    "b": 221
  },
  "hsl": {
    "h": 283.333,
    "s": 64.948,
    "l": 61.961
  },
  "oklch": {
    "l": 0.64401,
    "c": 0.19758,
    "h": 315.6
  },
  "luminance": 0.23844
}

Semantic roles & 50–950 ramp

primary
#BA5FDD
secondary
#C2E3B5
accent
#CD194B
background
#FDF9FE
surface
#FAF1FD
border
#D3CBD5
text
#140D16
muted
#837E84

Preview Lab

Preview with #BA5FDD

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

Preview Lab → · Contrast checker → · Palette generator →

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