#BA4FAC#BA4FAC

#BA4FAC is a mid, vivid purple. Relative luminance 0.190; OKLCH L 59.8% C 0.177 H 332.9°. Best body text is #000000 at 4.80:1 contrast (WCAG AA passes).

Color values

HEX#BA4FAC
RGBrgb(186, 79, 172)
HSLhsl(308, 44%, 52%)
HSVhsv(308, 58%, 73%)
CMYKcmyk(0%, 57.5%, 7.5%, 27.1%)
CIE-LABlab(50.70, 54.78, -29.52)
CIE-LCHlch(50.70, 62.23, 331.68°)
OKLaboklab(59.78% 0.1573 -0.0805)
OKLCHoklch(59.78% 0.177 332.9)
XYZxyz(30.4921, 19.0118, 41.0854)
Luminance0.1901 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA4FAC #4FBA5D
analogous
#924FBA #BA4FAC #BA4F77
triadic
#BA4FAC #ACBA4F #4FACBA
tetradic
#BA4FAC #BA924F #4FBA5D #4F77BA
square
#BA4FAC #BA924F #4FBA5D #4F77BA
split-complementary
#BA4FAC #77BA4F #4FBA92
monochromatic
#66285E #923987 #BA4FAC #CB7BC1 #DCA7D5

Accessibility & contrast

On white

4.37
#BA4FAC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.80
#BA4FAC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA4FAC
4.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA4FAC#FFFFFF#000000##000000
##BA4FAC1.004.374.804.80
#FFFFFF4.371.0021.0021.00
#0000004.8021.001.001.00
##0000004.8021.001.001.00

Color blindness preview

Protanopia (red-blind)
#4C6FAF
Deuteranopia (green-blind)
#6D7EA9
Tritanopia (blue-blind)
#C25776
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #ba4fac;
/* rgb */ color: rgb(186, 79, 172);
/* oklch */ color: oklch(59.8% 0.177 332.9);
Tailwind
colors: {
  custom: {
    50: '#d186c5',
    500: '#ba4fac',
    950: '#000000',
  },
}
SCSS
$custom: #ba4fac;
$custom-light: #d186c5;
$custom-dark: #000000;
JSON
{
  "hex": "#ba4fac",
  "rgb": {
    "r": 186,
    "g": 79,
    "b": 172
  },
  "hsl": {
    "h": 307.85,
    "s": 43.673,
    "l": 51.961
  },
  "oklch": {
    "l": 0.5978,
    "c": 0.17673,
    "h": 332.9
  },
  "luminance": 0.1901
}

Semantic roles & 50–950 ramp

primary
#BA4FAC
secondary
#9BCAA1
accent
#D36554
background
#FDF8FC
surface
#FAF0F8
border
#D3CBD1
text
#140C13
muted
#837D82

Preview Lab

Preview with #BA4FAC

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

Preview Lab → · Contrast checker → · Palette generator →

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