#BA4EAF#BA4EAF

#BA4EAF is a mid, vivid purple. Relative luminance 0.190; OKLCH L 59.8% C 0.181 H 331.7°. Best body text is #000000 at 4.80:1 contrast (WCAG AA passes).

Color values

HEX#BA4EAF
RGBrgb(186, 78, 175)
HSLhsl(306, 44%, 52%)
HSVhsv(306, 58%, 73%)
CMYKcmyk(0%, 58.1%, 5.9%, 27.1%)
CIE-LABlab(50.67, 55.73, -31.33)
CIE-LCHlch(50.67, 63.93, 330.66°)
OKLaboklab(59.8% 0.1591 -0.0857)
OKLCHoklch(59.8% 0.181 331.7)
XYZxyz(30.7119, 18.9852, 42.5960)
Luminance0.1898 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA4EAF #4EBA59
analogous
#8F4EBA #BA4EAF #BA4E79
triadic
#BA4EAF #AFBA4E #4EAFBA
tetradic
#BA4EAF #BA8F4E #4EBA59 #4E79BA
square
#BA4EAF #BA8F4E #4EBA59 #4E79BA
split-complementary
#BA4EAF #79BA4E #4EBA8F
monochromatic
#662860 #923989 #BA4EAF #CB7AC3 #DCA6D7

Accessibility & contrast

On white

4.38
#BA4EAF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.80
#BA4EAF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA4EAF
4.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA4EAF#FFFFFF#000000##000000
##BA4EAF1.004.384.804.80
#FFFFFF4.381.0021.0021.00
#0000004.8021.001.001.00
##0000004.8021.001.001.00

Color blindness preview

Protanopia (red-blind)
#496FB2
Deuteranopia (green-blind)
#6B7EAC
Tritanopia (blue-blind)
#C15777
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #ba4eaf;
/* rgb */ color: rgb(186, 78, 175);
/* oklch */ color: oklch(59.8% 0.181 331.7);
Tailwind
colors: {
  custom: {
    50: '#d185c7',
    500: '#ba4eaf',
    950: '#000000',
  },
}
SCSS
$custom: #ba4eaf;
$custom-light: #d185c7;
$custom-dark: #000000;
JSON
{
  "hex": "#ba4eaf",
  "rgb": {
    "r": 186,
    "g": 78,
    "b": 175
  },
  "hsl": {
    "h": 306.111,
    "s": 43.902,
    "l": 51.765
  },
  "oklch": {
    "l": 0.59802,
    "c": 0.18069,
    "h": 331.7
  },
  "luminance": 0.18983
}

Semantic roles & 50–950 ramp

primary
#BA4EAF
secondary
#9ACA9F
accent
#D46154
background
#FDF8FC
surface
#FAF0F8
border
#D3CBD1
text
#140B13
muted
#837C82

Preview Lab

Preview with #BA4EAF

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

Preview Lab → · Contrast checker → · Palette generator →

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