#BA4FBD#BA4FBD

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

Color values

HEX#BA4FBD
RGBrgb(186, 79, 189)
HSLhsl(298, 45%, 53%)
HSVhsv(298, 58%, 74%)
CMYKcmyk(1.6%, 58.2%, 0%, 25.9%)
CIE-LABlab(51.50, 57.70, -38.16)
CIE-LCHlch(51.50, 69.18, 326.52°)
OKLaboklab(60.63% 0.1594 -0.1053)
OKLCHoklch(60.63% 0.191 326.5)
XYZxyz(32.2304, 19.7071, 50.2405)
Luminance0.1971 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA4FBD #52BD4F
analogous
#834FBD #BA4FBD #BD4F89
triadic
#BA4FBD #BDBA4F #4FBDBA
tetradic
#BA4FBD #BD834F #52BD4F #4F89BD
square
#BA4FBD #BD834F #52BD4F #4F89BD
split-complementary
#BA4FBD #89BD4F #4FBD83
monochromatic
#68286A #943896 #BA4FBD #CB7CCE #DDA8DE

Accessibility & contrast

On white

4.25
#BA4FBD on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.94
#BA4FBD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA4FBD
4.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA4FBD#FFFFFF#000000##000000
##BA4FBD1.004.254.944.94
#FFFFFF4.251.0021.0021.00
#0000004.9421.001.001.00
##0000004.9421.001.001.00

Color blindness preview

Protanopia (red-blind)
#4172C0
Deuteranopia (green-blind)
#6680BA
Tritanopia (blue-blind)
#BF5D7F
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #ba4fbd;
/* rgb */ color: rgb(186, 79, 189);
/* oklch */ color: oklch(60.6% 0.191 326.5);
Tailwind
colors: {
  custom: {
    50: '#d186d1',
    500: '#ba4fbd',
    950: '#000000',
  },
}
SCSS
$custom: #ba4fbd;
$custom-light: #d186d1;
$custom-dark: #000000;
JSON
{
  "hex": "#ba4fbd",
  "rgb": {
    "r": 186,
    "g": 79,
    "b": 189
  },
  "hsl": {
    "h": 298.364,
    "s": 45.455,
    "l": 52.549
  },
  "oklch": {
    "l": 0.6063,
    "c": 0.19107,
    "h": 326.5
  },
  "luminance": 0.19705
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #BA4FBD

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

Preview Lab → · Contrast checker → · Palette generator →

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