#BA4FBA#BA4FBA

#BA4FBA is a mid, vivid purple. Relative luminance 0.196; OKLCH L 60.5% C 0.188 H 327.6°. Best body text is #000000 at 4.92:1 contrast (WCAG AA passes).

Color values

HEX#BA4FBA
RGBrgb(186, 79, 186)
HSLhsl(300, 44%, 52%)
HSVhsv(300, 58%, 73%)
CMYKcmyk(0%, 57.5%, 0%, 27.1%)
CIE-LABlab(51.36, 57.17, -36.65)
CIE-LCHlch(51.36, 67.91, 327.33°)
OKLaboklab(60.48% 0.1591 -0.101)
OKLCHoklch(60.48% 0.188 327.6)
XYZxyz(31.9081, 19.5782, 48.5432)
Luminance0.1958 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA4FBA #4FBA4F
analogous
#854FBA #BA4FBA #BA4F85
triadic
#BA4FBA #BABA4F #4FBABA
tetradic
#BA4FBA #BA854F #4FBA4F #4F85BA
square
#BA4FBA #BA854F #4FBA4F #4F85BA
split-complementary
#BA4FBA #85BA4F #4FBA85
monochromatic
#662866 #923992 #BA4FBA #CB7BCB #DCA7DC

Accessibility & contrast

On white

4.27
#BA4FBA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.92
#BA4FBA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA4FBA
4.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA4FBA#FFFFFF#000000##000000
##BA4FBA1.004.274.924.92
#FFFFFF4.271.0021.0021.00
#0000004.9221.001.001.00
##0000004.9221.001.001.00

Color blindness preview

Protanopia (red-blind)
#4371BD
Deuteranopia (green-blind)
#677FB7
Tritanopia (blue-blind)
#BF5C7D
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #ba4fba;
/* rgb */ color: rgb(186, 79, 186);
/* oklch */ color: oklch(60.5% 0.188 327.6);
Tailwind
colors: {
  custom: {
    50: '#d186cf',
    500: '#ba4fba',
    950: '#000000',
  },
}
SCSS
$custom: #ba4fba;
$custom-light: #d186cf;
$custom-dark: #000000;
JSON
{
  "hex": "#ba4fba",
  "rgb": {
    "r": 186,
    "g": 79,
    "b": 186
  },
  "hsl": {
    "h": 300,
    "s": 43.673,
    "l": 51.961
  },
  "oklch": {
    "l": 0.60475,
    "c": 0.18847,
    "h": 327.6
  },
  "luminance": 0.19576
}

Semantic roles & 50–950 ramp

primary
#BA4FBA
secondary
#9BCA9B
accent
#D35454
background
#FDF8FC
surface
#FAF0F9
border
#D3CBD2
text
#140C14
muted
#837D82

Preview Lab

Preview with #BA4FBA

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

Preview Lab → · Contrast checker → · Palette generator →

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