#BA5FC8#BA5FC8

#BA5FC8 is a light, vivid purple. Relative luminance 0.228; OKLCH L 63.3% C 0.177 H 322.1°. Best body text is #000000 at 5.56:1 contrast (WCAG AA passes).

Color values

HEX#BA5FC8
RGBrgb(186, 95, 200)
HSLhsl(292, 49%, 58%)
HSVhsv(292, 53%, 78%)
CMYKcmyk(7%, 52.5%, 0%, 21.6%)
CIE-LABlab(54.86, 52.15, -39.20)
CIE-LCHlch(54.86, 65.24, 323.06°)
OKLaboklab(63.27% 0.1396 -0.1085)
OKLCHoklch(63.27% 0.177 322.1)
XYZxyz(34.7661, 22.7952, 57.2010)
Luminance0.2279 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA5FC8 #6DC85F
analogous
#855FC8 #BA5FC8 #C85FA1
triadic
#BA5FC8 #C8BA5F #5FC8BA
tetradic
#BA5FC8 #C8855F #6DC85F #5FA1C8
square
#BA5FC8 #C8855F #6DC85F #5FA1C8
split-complementary
#BA5FC8 #A1C85F #5FC885
monochromatic
#752C80 #9F3CAE #BA5FC8 #CE8DD8 #E1BAE7

Accessibility & contrast

On white

3.78
#BA5FC8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.56
#BA5FC8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA5FC8
5.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA5FC8#FFFFFF#000000##000000
##BA5FC81.003.785.565.56
#FFFFFF3.781.0021.0021.00
#0000005.5621.001.001.00
##0000005.5621.001.001.00

Color blindness preview

Protanopia (red-blind)
#4E7DCB
Deuteranopia (green-blind)
#6B87C5
Tritanopia (blue-blind)
#BC6D8B
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #ba5fc8;
/* rgb */ color: rgb(186, 95, 200);
/* oklch */ color: oklch(63.3% 0.177 322.1);
Tailwind
colors: {
  custom: {
    50: '#d190d9',
    500: '#ba5fc8',
    950: '#000000',
  },
}
SCSS
$custom: #ba5fc8;
$custom-light: #d190d9;
$custom-dark: #000000;
JSON
{
  "hex": "#ba5fc8",
  "rgb": {
    "r": 186,
    "g": 95,
    "b": 200
  },
  "hsl": {
    "h": 292,
    "s": 48.837,
    "l": 57.843
  },
  "oklch": {
    "l": 0.63266,
    "c": 0.17675,
    "h": 322.1
  },
  "luminance": 0.22794
}

Semantic roles & 50–950 ramp

primary
#BA5FC8
secondary
#B2D6AC
accent
#D84F62
background
#FDF9FD
surface
#FAF1FA
border
#D3CBD3
text
#140D14
muted
#837E83

Preview Lab

Preview with #BA5FC8

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

Preview Lab → · Contrast checker → · Palette generator →

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