#BA4FB1#BA4FB1

#BA4FB1 is a mid, vivid purple. Relative luminance 0.192; OKLCH L 60.0% C 0.181 H 330.9°. Best body text is #000000 at 4.84:1 contrast (WCAG AA passes).

Color values

HEX#BA4FB1
RGBrgb(186, 79, 177)
HSLhsl(305, 44%, 52%)
HSVhsv(305, 58%, 73%)
CMYKcmyk(0%, 57.5%, 4.8%, 27.1%)
CIE-LABlab(50.93, 55.62, -32.09)
CIE-LCHlch(50.93, 64.21, 330.02°)
OKLaboklab(60.02% 0.1581 -0.0879)
OKLCHoklch(60.02% 0.181 330.9)
XYZxyz(30.9813, 19.2075, 43.6621)
Luminance0.1920 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA4FB1 #4FBA58
analogous
#8E4FBA #BA4FB1 #BA4F7C
triadic
#BA4FB1 #B1BA4F #4FB1BA
tetradic
#BA4FB1 #BA8E4F #4FBA58 #4F7CBA
square
#BA4FB1 #BA8E4F #4FBA58 #4F7CBA
split-complementary
#BA4FB1 #7CBA4F #4FBA8E
monochromatic
#662861 #92398B #BA4FB1 #CB7BC4 #DCA7D8

Accessibility & contrast

On white

4.34
#BA4FB1 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.84
#BA4FB1 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA4FB1
4.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA4FB1#FFFFFF#000000##000000
##BA4FB11.004.344.844.84
#FFFFFF4.341.0021.0021.00
#0000004.8421.001.001.00
##0000004.8421.001.001.00

Color blindness preview

Protanopia (red-blind)
#4970B4
Deuteranopia (green-blind)
#6B7FAE
Tritanopia (blue-blind)
#C15979
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #ba4fb1;
/* rgb */ color: rgb(186, 79, 177);
/* oklch */ color: oklch(60.0% 0.181 330.9);
Tailwind
colors: {
  custom: {
    50: '#d186c8',
    500: '#ba4fb1',
    950: '#000000',
  },
}
SCSS
$custom: #ba4fb1;
$custom-light: #d186c8;
$custom-dark: #000000;
JSON
{
  "hex": "#ba4fb1",
  "rgb": {
    "r": 186,
    "g": 79,
    "b": 177
  },
  "hsl": {
    "h": 305.047,
    "s": 43.673,
    "l": 51.961
  },
  "oklch": {
    "l": 0.60022,
    "c": 0.18083,
    "h": 330.9
  },
  "luminance": 0.19205
}

Semantic roles & 50–950 ramp

primary
#BA4FB1
secondary
#9BCA9F
accent
#D35F54
background
#FDF8FC
surface
#FAF0F8
border
#D3CBD1
text
#140C13
muted
#837D82

Preview Lab

Preview with #BA4FB1

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

Preview Lab → · Contrast checker → · Palette generator →

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