#BA4FBC#BA4FBC

#BA4FBC is a mid, vivid purple. Relative luminance 0.197; OKLCH L 60.6% C 0.190 H 326.9°. Best body text is #000000 at 4.93:1 contrast (WCAG AA passes).

Color values

HEX#BA4FBC
RGBrgb(186, 79, 188)
HSLhsl(299, 45%, 52%)
HSVhsv(299, 58%, 74%)
CMYKcmyk(1.1%, 58%, 0%, 26.3%)
CIE-LABlab(51.46, 57.52, -37.66)
CIE-LCHlch(51.46, 68.75, 326.79°)
OKLaboklab(60.58% 0.1593 -0.1039)
OKLCHoklch(60.58% 0.19 326.9)
XYZxyz(32.1222, 19.6639, 49.6708)
Luminance0.1966 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA4FBC #51BC4F
analogous
#844FBC #BA4FBC #BC4F88
triadic
#BA4FBC #BCBA4F #4FBCBA
tetradic
#BA4FBC #BC844F #51BC4F #4F88BC
square
#BA4FBC #BC844F #51BC4F #4F88BC
split-complementary
#BA4FBC #88BC4F #4FBC84
monochromatic
#682869 #933995 #BA4FBC #CB7BCD #DDA8DE

Accessibility & contrast

On white

4.26
#BA4FBC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.93
#BA4FBC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA4FBC
4.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA4FBC#FFFFFF#000000##000000
##BA4FBC1.004.264.934.93
#FFFFFF4.261.0021.0021.00
#0000004.9321.001.001.00
##0000004.9321.001.001.00

Color blindness preview

Protanopia (red-blind)
#4272BF
Deuteranopia (green-blind)
#667FB9
Tritanopia (blue-blind)
#BF5D7E
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #ba4fbc;
/* rgb */ color: rgb(186, 79, 188);
/* oklch */ color: oklch(60.6% 0.190 326.9);
Tailwind
colors: {
  custom: {
    50: '#d186d0',
    500: '#ba4fbc',
    950: '#000000',
  },
}
SCSS
$custom: #ba4fbc;
$custom-light: #d186d0;
$custom-dark: #000000;
JSON
{
  "hex": "#ba4fbc",
  "rgb": {
    "r": 186,
    "g": 79,
    "b": 188
  },
  "hsl": {
    "h": 298.899,
    "s": 44.856,
    "l": 52.353
  },
  "oklch": {
    "l": 0.60578,
    "c": 0.19021,
    "h": 326.9
  },
  "luminance": 0.19662
}

Semantic roles & 50–950 ramp

primary
#BA4FBC
secondary
#9DCB9C
accent
#D55356
background
#FDF8FC
surface
#FAF0F9
border
#D3CBD2
text
#140C14
muted
#837D82

Preview Lab

Preview with #BA4FBC

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

Preview Lab → · Contrast checker → · Palette generator →

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