#BA5BA2#BA5BA2

#BA5BA2 is a mid, vivid pink. Relative luminance 0.205; OKLCH L 60.9% C 0.150 H 337.8°. Best body text is #000000 at 5.11:1 contrast (WCAG AA passes).

Color values

HEX#BA5BA2
RGBrgb(186, 91, 162)
HSLhsl(315, 41%, 54%)
HSVhsv(315, 51%, 73%)
CMYKcmyk(0%, 51.1%, 12.9%, 27.1%)
CIE-LABlab(52.43, 47.39, -20.98)
CIE-LCHlch(52.43, 51.83, 336.12°)
OKLaboklab(60.92% 0.1386 -0.0565)
OKLCHoklch(60.92% 0.15 337.8)
XYZxyz(30.5126, 20.5321, 36.5314)
Luminance0.2053 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA5BA2 #5BBA73
analogous
#A35BBA #BA5BA2 #BA5B73
triadic
#BA5BA2 #A2BA5B #5BA2BA
tetradic
#BA5BA2 #BAA35B #5BBA73 #5B73BA
square
#BA5BA2 #BAA35B #5BBA73 #5B73BA
split-complementary
#BA5BA2 #73BA5B #5BBAA3
monochromatic
#6D2E5D #984082 #BA5BA2 #CC86BA #DEB1D3

Accessibility & contrast

On white

4.11
#BA5BA2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.11
#BA5BA2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA5BA2
5.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA5BA2#FFFFFF#000000##000000
##BA5BA21.004.115.115.11
#FFFFFF4.111.0021.0021.00
#0000005.1121.001.001.00
##0000005.1121.001.001.00

Color blindness preview

Protanopia (red-blind)
#5E74A4
Deuteranopia (green-blind)
#78829F
Tritanopia (blue-blind)
#C35E77
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #ba5ba2;
/* rgb */ color: rgb(186, 91, 162);
/* oklch */ color: oklch(60.9% 0.150 337.8);
Tailwind
colors: {
  custom: {
    50: '#d18dbd',
    500: '#ba5ba2',
    950: '#000000',
  },
}
SCSS
$custom: #ba5ba2;
$custom-light: #d18dbd;
$custom-dark: #000000;
JSON
{
  "hex": "#ba5ba2",
  "rgb": {
    "r": 186,
    "g": 91,
    "b": 162
  },
  "hsl": {
    "h": 315.158,
    "s": 40.773,
    "l": 54.314
  },
  "oklch": {
    "l": 0.60922,
    "c": 0.14963,
    "h": 337.8
  },
  "luminance": 0.2053
}

Semantic roles & 50–950 ramp

primary
#BA5BA2
secondary
#A4CDAE
accent
#D17657
background
#FDF8FB
surface
#FAF0F6
border
#D3CBD0
text
#140C12
muted
#837D81

Preview Lab

Preview with #BA5BA2

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

Preview Lab → · Contrast checker → · Palette generator →

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