#BA4FB2#BA4FB2

#BA4FB2 is a mid, vivid purple. Relative luminance 0.192; OKLCH L 60.1% C 0.182 H 330.5°. Best body text is #000000 at 4.85:1 contrast (WCAG AA passes).

Color values

HEX#BA4FB2
RGBrgb(186, 79, 178)
HSLhsl(304, 44%, 52%)
HSVhsv(304, 58%, 73%)
CMYKcmyk(0%, 57.5%, 4.3%, 27.1%)
CIE-LABlab(50.98, 55.79, -32.60)
CIE-LCHlch(50.98, 64.61, 329.70°)
OKLaboklab(60.07% 0.1582 -0.0893)
OKLCHoklch(60.07% 0.182 330.5)
XYZxyz(31.0814, 19.2475, 44.1889)
Luminance0.1925 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA4FB2 #4FBA57
analogous
#8D4FBA #BA4FB2 #BA4F7D
triadic
#BA4FB2 #B2BA4F #4FB2BA
tetradic
#BA4FB2 #BA8D4F #4FBA57 #4F7DBA
square
#BA4FB2 #BA8D4F #4FBA57 #4F7DBA
split-complementary
#BA4FB2 #7DBA4F #4FBA8D
monochromatic
#662862 #92398C #BA4FB2 #CB7BC5 #DCA7D8

Accessibility & contrast

On white

4.33
#BA4FB2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.85
#BA4FB2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA4FB2
4.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA4FB2#FFFFFF#000000##000000
##BA4FB21.004.334.854.85
#FFFFFF4.331.0021.0021.00
#0000004.8521.001.001.00
##0000004.8521.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #ba4fb2;
/* rgb */ color: rgb(186, 79, 178);
/* oklch */ color: oklch(60.1% 0.182 330.5);
Tailwind
colors: {
  custom: {
    50: '#d186c9',
    500: '#ba4fb2',
    950: '#000000',
  },
}
SCSS
$custom: #ba4fb2;
$custom-light: #d186c9;
$custom-dark: #000000;
JSON
{
  "hex": "#ba4fb2",
  "rgb": {
    "r": 186,
    "g": 79,
    "b": 178
  },
  "hsl": {
    "h": 304.486,
    "s": 43.673,
    "l": 51.961
  },
  "oklch": {
    "l": 0.60071,
    "c": 0.18167,
    "h": 330.5
  },
  "luminance": 0.19245
}

Semantic roles & 50–950 ramp

primary
#BA4FB2
secondary
#9BCA9E
accent
#D35E54
background
#FDF8FC
surface
#FAF0F8
border
#D3CBD1
text
#140C13
muted
#837D82

Preview Lab

Preview with #BA4FB2

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

Preview Lab → · Contrast checker → · Palette generator →

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