#BA4EB3#BA4EB3

#BA4EB3 is a mid, vivid purple. Relative luminance 0.191; OKLCH L 60.0% C 0.184 H 330.2°. Best body text is #000000 at 4.83:1 contrast (WCAG AA passes).

Color values

HEX#BA4EB3
RGBrgb(186, 78, 179)
HSLhsl(304, 44%, 52%)
HSVhsv(304, 58%, 73%)
CMYKcmyk(0%, 58.1%, 3.8%, 27.1%)
CIE-LABlab(50.86, 56.41, -33.37)
CIE-LCHlch(50.86, 65.54, 329.39°)
OKLaboklab(60% 0.1596 -0.0915)
OKLCHoklch(60% 0.184 330.2)
XYZxyz(31.1105, 19.1446, 44.6958)
Luminance0.1914 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA4EB3 #4EBA55
analogous
#8B4EBA #BA4EB3 #BA4E7D
triadic
#BA4EB3 #B3BA4E #4EB3BA
tetradic
#BA4EB3 #BA8B4E #4EBA55 #4E7DBA
square
#BA4EB3 #BA8B4E #4EBA55 #4E7DBA
split-complementary
#BA4EB3 #7DBA4E #4EBA8B
monochromatic
#662862 #92398C #BA4EB3 #CB7AC6 #DCA6D9

Accessibility & contrast

On white

4.35
#BA4EB3 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.83
#BA4EB3 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA4EB3
4.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA4EB3#FFFFFF#000000##000000
##BA4EB31.004.354.834.83
#FFFFFF4.351.0021.0021.00
#0000004.8321.001.001.00
##0000004.8321.001.001.00

Color blindness preview

Protanopia (red-blind)
#4770B6
Deuteranopia (green-blind)
#6A7EB0
Tritanopia (blue-blind)
#C05979
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #ba4eb3;
/* rgb */ color: rgb(186, 78, 179);
/* oklch */ color: oklch(60.0% 0.184 330.2);
Tailwind
colors: {
  custom: {
    50: '#d186ca',
    500: '#ba4eb3',
    950: '#000000',
  },
}
SCSS
$custom: #ba4eb3;
$custom-light: #d186ca;
$custom-dark: #000000;
JSON
{
  "hex": "#ba4eb3",
  "rgb": {
    "r": 186,
    "g": 78,
    "b": 179
  },
  "hsl": {
    "h": 303.889,
    "s": 43.902,
    "l": 51.765
  },
  "oklch": {
    "l": 0.59999,
    "c": 0.184,
    "h": 330.2
  },
  "luminance": 0.19143
}

Semantic roles & 50–950 ramp

primary
#BA4EB3
secondary
#9ACA9D
accent
#D45C54
background
#FDF8FC
surface
#FAF0F8
border
#D3CBD1
text
#140C13
muted
#837D82

Preview Lab

Preview with #BA4EB3

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

Preview Lab → · Contrast checker → · Palette generator →

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