#BA4FBE#BA4FBE

#BA4FBE is a mid, vivid purple. Relative luminance 0.197; OKLCH L 60.7% C 0.192 H 326.2°. Best body text is #000000 at 4.95:1 contrast (WCAG AA passes).

Color values

HEX#BA4FBE
RGBrgb(186, 79, 190)
HSLhsl(298, 46%, 53%)
HSVhsv(298, 58%, 75%)
CMYKcmyk(2.1%, 58.4%, 0%, 25.5%)
CIE-LABlab(51.55, 57.88, -38.66)
CIE-LCHlch(51.55, 69.60, 326.26°)
OKLaboklab(60.68% 0.1595 -0.1068)
OKLCHoklch(60.68% 0.192 326.2)
XYZxyz(32.3393, 19.7507, 50.8141)
Luminance0.1975 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA4FBE #53BE4F
analogous
#834FBE #BA4FBE #BE4F8A
triadic
#BA4FBE #BEBA4F #4FBEBA
tetradic
#BA4FBE #BE834F #53BE4F #4F8ABE
square
#BA4FBE #BE834F #53BE4F #4F8ABE
split-complementary
#BA4FBE #8ABE4F #4FBE83
monochromatic
#69286B #943898 #BA4FBE #CC7CCF #DDA8DF

Accessibility & contrast

On white

4.24
#BA4FBE on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.95
#BA4FBE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA4FBE
4.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA4FBE#FFFFFF#000000##000000
##BA4FBE1.004.244.954.95
#FFFFFF4.241.0021.0021.00
#0000004.9521.001.001.00
##0000004.9521.001.001.00

Color blindness preview

Protanopia (red-blind)
#4072C1
Deuteranopia (green-blind)
#6580BB
Tritanopia (blue-blind)
#BF5D7F
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #ba4fbe;
/* rgb */ color: rgb(186, 79, 190);
/* oklch */ color: oklch(60.7% 0.192 326.2);
Tailwind
colors: {
  custom: {
    50: '#d286d2',
    500: '#ba4fbe',
    950: '#000000',
  },
}
SCSS
$custom: #ba4fbe;
$custom-light: #d286d2;
$custom-dark: #000000;
JSON
{
  "hex": "#ba4fbe",
  "rgb": {
    "r": 186,
    "g": 79,
    "b": 190
  },
  "hsl": {
    "h": 297.838,
    "s": 46.058,
    "l": 52.745
  },
  "oklch": {
    "l": 0.60683,
    "c": 0.19195,
    "h": 326.2
  },
  "luminance": 0.19749
}

Semantic roles & 50–950 ramp

primary
#BA4FBE
secondary
#9ECC9C
accent
#D65257
background
#FDF8FC
surface
#FAF0F9
border
#D3CBD2
text
#140C14
muted
#837D82

Preview Lab

Preview with #BA4FBE

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

Preview Lab → · Contrast checker → · Palette generator →

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