#BA5FB3#BA5FB3

#BA5FB3 is a light, vivid purple. Relative luminance 0.219; OKLCH L 62.2% C 0.157 H 330.2°. Best body text is #000000 at 5.38:1 contrast (WCAG AA passes).

Color values

HEX#BA5FB3
RGBrgb(186, 95, 179)
HSLhsl(305, 40%, 55%)
HSVhsv(305, 49%, 73%)
CMYKcmyk(0%, 48.9%, 3.8%, 27.1%)
CIE-LABlab(53.90, 48.27, -28.63)
CIE-LCHlch(53.90, 56.12, 329.33°)
OKLaboklab(62.24% 0.1364 -0.0781)
OKLCHoklch(62.24% 0.157 330.2)
XYZxyz(32.4783, 21.8801, 45.1517)
Luminance0.2188 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA5FB3 #5FBA66
analogous
#935FBA #BA5FB3 #BA5F86
triadic
#BA5FB3 #B3BA5F #5FB3BA
tetradic
#BA5FB3 #BA935F #5FBA66 #5F86BA
square
#BA5FB3 #BA935F #5FBA66 #5F86BA
split-complementary
#BA5FB3 #86BA5F #5FBA93
monochromatic
#6F306A #9A4293 #BA5FB3 #CC8AC7 #DFB5DC

Accessibility & contrast

On white

3.91
#BA5FB3 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.38
#BA5FB3 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA5FB3
5.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA5FB3#FFFFFF#000000##000000
##BA5FB31.003.915.385.38
#FFFFFF3.911.0021.0021.00
#0000005.3821.001.001.00
##0000005.3821.001.001.00

Color blindness preview

Protanopia (red-blind)
#5A79B6
Deuteranopia (green-blind)
#7485B0
Tritanopia (blue-blind)
#C06781
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #ba5fb3;
/* rgb */ color: rgb(186, 95, 179);
/* oklch */ color: oklch(62.2% 0.157 330.2);
Tailwind
colors: {
  custom: {
    50: '#d190ca',
    500: '#ba5fb3',
    950: '#000000',
  },
}
SCSS
$custom: #ba5fb3;
$custom-light: #d190ca;
$custom-dark: #000000;
JSON
{
  "hex": "#ba5fb3",
  "rgb": {
    "r": 186,
    "g": 95,
    "b": 179
  },
  "hsl": {
    "h": 304.615,
    "s": 39.738,
    "l": 55.098
  },
  "oklch": {
    "l": 0.62242,
    "c": 0.15715,
    "h": 330.2
  },
  "luminance": 0.21878
}

Semantic roles & 50–950 ramp

primary
#BA5FB3
secondary
#A7CDAA
accent
#D06158
background
#FDF9FC
surface
#FAF1F8
border
#D3CBD1
text
#140D13
muted
#837E82

Preview Lab

Preview with #BA5FB3

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

Preview Lab → · Contrast checker → · Palette generator →

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