#BA5FC2#BA5FC2

#BA5FC2 is a light, vivid purple. Relative luminance 0.225; OKLCH L 63.0% C 0.171 H 324.3°. Best body text is #000000 at 5.50:1 contrast (WCAG AA passes).

Color values

HEX#BA5FC2
RGBrgb(186, 95, 194)
HSLhsl(295, 45%, 57%)
HSVhsv(295, 51%, 76%)
CMYKcmyk(4.1%, 51%, 0%, 23.9%)
CIE-LABlab(54.57, 51.01, -36.22)
CIE-LCHlch(54.57, 62.56, 324.62°)
OKLaboklab(62.96% 0.1388 -0.0999)
OKLCHoklch(62.96% 0.171 324.3)
XYZxyz(34.0786, 22.5202, 53.5803)
Luminance0.2252 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA5FC2 #67C25F
analogous
#895FC2 #BA5FC2 #C25F98
triadic
#BA5FC2 #C2BA5F #5FC2BA
tetradic
#BA5FC2 #C2895F #67C25F #5F98C2
square
#BA5FC2 #C2895F #67C25F #5F98C2
split-complementary
#BA5FC2 #98C25F #5FC289
monochromatic
#732E79 #9D3FA5 #BA5FC2 #CD8BD3 #E0B8E4

Accessibility & contrast

On white

3.82
#BA5FC2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.50
#BA5FC2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA5FC2
5.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA5FC2#FFFFFF#000000##000000
##BA5FC21.003.825.505.50
#FFFFFF3.821.0021.0021.00
#0000005.5021.001.001.00
##0000005.5021.001.001.00

Color blindness preview

Protanopia (red-blind)
#527BC5
Deuteranopia (green-blind)
#6E86BF
Tritanopia (blue-blind)
#BD6B88
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #ba5fc2;
/* rgb */ color: rgb(186, 95, 194);
/* oklch */ color: oklch(63.0% 0.171 324.3);
Tailwind
colors: {
  custom: {
    50: '#d190d5',
    500: '#ba5fc2',
    950: '#000000',
  },
}
SCSS
$custom: #ba5fc2;
$custom-light: #d190d5;
$custom-dark: #000000;
JSON
{
  "hex": "#ba5fc2",
  "rgb": {
    "r": 186,
    "g": 95,
    "b": 194
  },
  "hsl": {
    "h": 295.152,
    "s": 44.796,
    "l": 56.667
  },
  "oklch": {
    "l": 0.62962,
    "c": 0.171,
    "h": 324.3
  },
  "luminance": 0.22519
}

Semantic roles & 50–950 ramp

primary
#BA5FC2
secondary
#ADD3AA
accent
#D4535E
background
#FDF9FD
surface
#FAF1FA
border
#D3CBD3
text
#140D14
muted
#837E83

Preview Lab

Preview with #BA5FC2

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

Preview Lab → · Contrast checker → · Palette generator →

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