#BA5EAA#BA5EAA

#BA5EAA is a mid, vivid pink. Relative luminance 0.213; OKLCH L 61.7% C 0.151 H 334.2°. Best body text is #000000 at 5.27:1 contrast (WCAG AA passes).

Color values

HEX#BA5EAA
RGBrgb(186, 94, 170)
HSLhsl(310, 40%, 55%)
HSVhsv(310, 49%, 73%)
CMYKcmyk(0%, 49.5%, 8.6%, 27.1%)
CIE-LABlab(53.33, 47.21, -24.28)
CIE-LCHlch(53.33, 53.09, 332.78°)
OKLaboklab(61.69% 0.136 -0.0658)
OKLCHoklch(61.69% 0.151 334.2)
XYZxyz(31.5081, 21.3488, 40.4836)
Luminance0.2135 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA5EAA #5EBA6E
analogous
#9C5EBA #BA5EAA #BA5E7C
triadic
#BA5EAA #AABA5E #5EAABA
tetradic
#BA5EAA #BA9C5E #5EBA6E #5E7CBA
square
#BA5EAA #BA9C5E #5EBA6E #5E7CBA
split-complementary
#BA5EAA #7CBA5E #5EBA9C
monochromatic
#6E2F63 #99428A #BA5EAA #CC89C1 #DFB4D7

Accessibility & contrast

On white

3.99
#BA5EAA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.27
#BA5EAA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA5EAA
5.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA5EAA#FFFFFF#000000##000000
##BA5EAA1.003.995.275.27
#FFFFFF3.991.0021.0021.00
#0000005.2721.001.001.00
##0000005.2721.001.001.00

Color blindness preview

Protanopia (red-blind)
#5D77AD
Deuteranopia (green-blind)
#7784A7
Tritanopia (blue-blind)
#C1637C
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #ba5eaa;
/* rgb */ color: rgb(186, 94, 170);
/* oklch */ color: oklch(61.7% 0.151 334.2);
Tailwind
colors: {
  custom: {
    50: '#d18fc3',
    500: '#ba5eaa',
    950: '#000000',
  },
}
SCSS
$custom: #ba5eaa;
$custom-light: #d18fc3;
$custom-dark: #000000;
JSON
{
  "hex": "#ba5eaa",
  "rgb": {
    "r": 186,
    "g": 94,
    "b": 170
  },
  "hsl": {
    "h": 310.435,
    "s": 40,
    "l": 54.902
  },
  "oklch": {
    "l": 0.61694,
    "c": 0.15106,
    "h": 334.2
  },
  "luminance": 0.21347
}

Semantic roles & 50–950 ramp

primary
#BA5EAA
secondary
#A7CDAD
accent
#D06D58
background
#FDF9FC
surface
#FAF1F8
border
#D3CBD1
text
#140D12
muted
#837E81

Preview Lab

Preview with #BA5EAA

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

Preview Lab → · Contrast checker → · Palette generator →

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