#BA5EA7#BA5EA7

#BA5EA7 is a mid, vivid pink. Relative luminance 0.212; OKLCH L 61.6% C 0.149 H 335.6°. Best body text is #000000 at 5.25:1 contrast (WCAG AA passes).

Color values

HEX#BA5EA7
RGBrgb(186, 94, 167)
HSLhsl(312, 40%, 55%)
HSVhsv(312, 49%, 73%)
CMYKcmyk(0%, 49.5%, 10.2%, 27.1%)
CIE-LABlab(53.21, 46.71, -22.72)
CIE-LCHlch(53.21, 51.94, 334.06°)
OKLaboklab(61.56% 0.1353 -0.0614)
OKLCHoklch(61.56% 0.149 335.6)
XYZxyz(31.2275, 21.2366, 39.0060)
Luminance0.2124 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA5EA7 #5EBA71
analogous
#9F5EBA #BA5EA7 #BA5E79
triadic
#BA5EA7 #A7BA5E #5EA7BA
tetradic
#BA5EA7 #BA9F5E #5EBA71 #5E79BA
square
#BA5EA7 #BA9F5E #5EBA71 #5E79BA
split-complementary
#BA5EA7 #79BA5E #5EBA9F
monochromatic
#6E2F61 #994287 #BA5EA7 #CC89BE #DFB4D6

Accessibility & contrast

On white

4.00
#BA5EA7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.25
#BA5EA7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA5EA7
5.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA5EA7#FFFFFF#000000##000000
##BA5EA71.004.005.255.25
#FFFFFF4.001.0021.0021.00
#0000005.2521.001.001.00
##0000005.2521.001.001.00

Color blindness preview

Protanopia (red-blind)
#5F76A9
Deuteranopia (green-blind)
#7884A4
Tritanopia (blue-blind)
#C2627B
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #ba5ea7;
/* rgb */ color: rgb(186, 94, 167);
/* oklch */ color: oklch(61.6% 0.149 335.6);
Tailwind
colors: {
  custom: {
    50: '#d18fc1',
    500: '#ba5ea7',
    950: '#000000',
  },
}
SCSS
$custom: #ba5ea7;
$custom-light: #d18fc1;
$custom-dark: #000000;
JSON
{
  "hex": "#ba5ea7",
  "rgb": {
    "r": 186,
    "g": 94,
    "b": 167
  },
  "hsl": {
    "h": 312.391,
    "s": 40,
    "l": 54.902
  },
  "oklch": {
    "l": 0.61563,
    "c": 0.14858,
    "h": 335.6
  },
  "luminance": 0.21235
}

Semantic roles & 50–950 ramp

primary
#BA5EA7
secondary
#A7CDAF
accent
#D07158
background
#FDF8FB
surface
#FAF0F7
border
#D3CBD0
text
#140D12
muted
#837D81

Preview Lab

Preview with #BA5EA7

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

Preview Lab → · Contrast checker → · Palette generator →

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