#BA4BAF#BA4BAF

#BA4BAF is a mid, vivid purple. Relative luminance 0.186; OKLCH L 59.4% C 0.185 H 331.7°. Best body text is #000000 at 4.71:1 contrast (WCAG AA passes).

Color values

HEX#BA4BAF
RGBrgb(186, 75, 175)
HSLhsl(306, 45%, 51%)
HSVhsv(306, 60%, 73%)
CMYKcmyk(0%, 59.7%, 5.9%, 27.1%)
CIE-LABlab(50.18, 57.07, -32.09)
CIE-LCHlch(50.18, 65.48, 330.65°)
OKLaboklab(59.44% 0.163 -0.0878)
OKLCHoklch(59.44% 0.185 331.7)
XYZxyz(30.5036, 18.5686, 42.5266)
Luminance0.1857 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA4BAF #4BBA56
analogous
#8D4BBA #BA4BAF #BA4B77
triadic
#BA4BAF #AFBA4B #4BAFBA
tetradic
#BA4BAF #BA8D4B #4BBA56 #4B77BA
square
#BA4BAF #BA8D4B #4BBA56 #4B77BA
split-complementary
#BA4BAF #77BA4B #4BBA8D
monochromatic
#64265E #903788 #BA4BAF #CB77C3 #DCA3D6

Accessibility & contrast

On white

4.46
#BA4BAF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.71
#BA4BAF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA4BAF
4.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA4BAF#FFFFFF#000000##000000
##BA4BAF1.004.464.714.71
#FFFFFF4.461.0021.0021.00
#0000004.7121.001.001.00
##0000004.7121.001.001.00

Color blindness preview

Protanopia (red-blind)
#466DB2
Deuteranopia (green-blind)
#6A7DAC
Tritanopia (blue-blind)
#C15576
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #ba4baf;
/* rgb */ color: rgb(186, 75, 175);
/* oklch */ color: oklch(59.4% 0.185 331.7);
Tailwind
colors: {
  custom: {
    50: '#d284c7',
    500: '#ba4baf',
    950: '#000000',
  },
}
SCSS
$custom: #ba4baf;
$custom-light: #d284c7;
$custom-dark: #000000;
JSON
{
  "hex": "#ba4baf",
  "rgb": {
    "r": 186,
    "g": 75,
    "b": 175
  },
  "hsl": {
    "h": 305.946,
    "s": 44.578,
    "l": 51.176
  },
  "oklch": {
    "l": 0.59442,
    "c": 0.18512,
    "h": 331.7
  },
  "luminance": 0.18566
}

Semantic roles & 50–950 ramp

primary
#BA4BAF
secondary
#98C99D
accent
#D46054
background
#FDF8FC
surface
#FAF0F8
border
#D3CBD1
text
#140B13
muted
#837C82

Preview Lab

Preview with #BA4BAF

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

Preview Lab → · Contrast checker → · Palette generator →

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