#BA4FBB#BA4FBB

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

Color values

HEX#BA4FBB
RGBrgb(186, 79, 187)
HSLhsl(299, 44%, 52%)
HSVhsv(299, 58%, 73%)
CMYKcmyk(0.5%, 57.8%, 0%, 26.7%)
CIE-LABlab(51.41, 57.35, -37.16)
CIE-LCHlch(51.41, 68.33, 327.06°)
OKLaboklab(60.53% 0.1592 -0.1024)
OKLCHoklch(60.53% 0.189 327.2)
XYZxyz(32.0148, 19.6209, 49.1050)
Luminance0.1962 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA4FBB #50BB4F
analogous
#844FBB #BA4FBB #BB4F86
triadic
#BA4FBB #BBBA4F #4FBBBA
tetradic
#BA4FBB #BB844F #50BB4F #4F86BB
square
#BA4FBB #BB844F #50BB4F #4F86BB
split-complementary
#BA4FBB #86BB4F #4FBB84
monochromatic
#672868 #933994 #BA4FBB #CB7BCC #DDA7DD

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##BA4FBB#FFFFFF#000000##000000
##BA4FBB1.004.264.924.92
#FFFFFF4.261.0021.0021.00
#0000004.9221.001.001.00
##0000004.9221.001.001.00

Color blindness preview

Protanopia (red-blind)
#4272BE
Deuteranopia (green-blind)
#677FB8
Tritanopia (blue-blind)
#BF5C7E
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #ba4fbb;
/* rgb */ color: rgb(186, 79, 187);
/* oklch */ color: oklch(60.5% 0.189 327.2);
Tailwind
colors: {
  custom: {
    50: '#d186d0',
    500: '#ba4fbb',
    950: '#000000',
  },
}
SCSS
$custom: #ba4fbb;
$custom-light: #d186d0;
$custom-dark: #000000;
JSON
{
  "hex": "#ba4fbb",
  "rgb": {
    "r": 186,
    "g": 79,
    "b": 187
  },
  "hsl": {
    "h": 299.444,
    "s": 44.262,
    "l": 52.157
  },
  "oklch": {
    "l": 0.60526,
    "c": 0.18933,
    "h": 327.2
  },
  "luminance": 0.19619
}

Semantic roles & 50–950 ramp

primary
#BA4FBB
secondary
#9CCA9B
accent
#D45455
background
#FDF8FC
surface
#FAF0F9
border
#D3CBD2
text
#140C14
muted
#837D82

Preview Lab

Preview with #BA4FBB

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

Preview Lab → · Contrast checker → · Palette generator →

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