#BA4FAA#BA4FAA

#BA4FAA is a mid, vivid purple. Relative luminance 0.189; OKLCH L 59.7% C 0.175 H 333.7°. Best body text is #000000 at 4.79:1 contrast (WCAG AA passes).

Color values

HEX#BA4FAA
RGBrgb(186, 79, 170)
HSLhsl(309, 44%, 52%)
HSVhsv(309, 58%, 73%)
CMYKcmyk(0%, 57.5%, 8.6%, 27.1%)
CIE-LABlab(50.61, 54.45, -28.49)
CIE-LCHlch(50.61, 61.45, 332.38°)
OKLaboklab(59.69% 0.157 -0.0776)
OKLCHoklch(59.69% 0.175 333.7)
XYZxyz(30.3015, 18.9355, 40.0814)
Luminance0.1893 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA4FAA #4FBA5F
analogous
#954FBA #BA4FAA #BA4F75
triadic
#BA4FAA #AABA4F #4FAABA
tetradic
#BA4FAA #BA954F #4FBA5F #4F75BA
square
#BA4FAA #BA954F #4FBA5F #4F75BA
split-complementary
#BA4FAA #75BA4F #4FBA95
monochromatic
#66285D #923985 #BA4FAA #CB7BBF #DCA7D4

Accessibility & contrast

On white

4.39
#BA4FAA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.79
#BA4FAA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA4FAA
4.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA4FAA#FFFFFF#000000##000000
##BA4FAA1.004.394.794.79
#FFFFFF4.391.0021.0021.00
#0000004.7921.001.001.00
##0000004.7921.001.001.00

Color blindness preview

Protanopia (red-blind)
#4D6FAD
Deuteranopia (green-blind)
#6E7EA7
Tritanopia (blue-blind)
#C25675
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #ba4faa;
/* rgb */ color: rgb(186, 79, 170);
/* oklch */ color: oklch(59.7% 0.175 333.7);
Tailwind
colors: {
  custom: {
    50: '#d186c3',
    500: '#ba4faa',
    950: '#000000',
  },
}
SCSS
$custom: #ba4faa;
$custom-light: #d186c3;
$custom-dark: #000000;
JSON
{
  "hex": "#ba4faa",
  "rgb": {
    "r": 186,
    "g": 79,
    "b": 170
  },
  "hsl": {
    "h": 308.972,
    "s": 43.673,
    "l": 51.961
  },
  "oklch": {
    "l": 0.59685,
    "c": 0.17513,
    "h": 333.7
  },
  "luminance": 0.18933
}

Semantic roles & 50–950 ramp

primary
#BA4FAA
secondary
#9BCAA2
accent
#D36754
background
#FDF8FC
surface
#FAF0F8
border
#D3CBD1
text
#140C12
muted
#837D81

Preview Lab

Preview with #BA4FAA

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

Preview Lab → · Contrast checker → · Palette generator →

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