#BA3EAF#BA3EAF

#BA3EAF is a mid, highly saturated purple. Relative luminance 0.170; OKLCH L 58.0% C 0.203 H 331.6°. Best body text is #FFFFFF at 4.78:1 contrast (WCAG AA passes).

Color values

HEX#BA3EAF
RGBrgb(186, 62, 175)
HSLhsl(305, 50%, 49%)
HSVhsv(305, 67%, 73%)
CMYKcmyk(0%, 66.7%, 5.9%, 27.1%)
CIE-LABlab(48.24, 62.45, -35.14)
CIE-LCHlch(48.24, 71.66, 330.64°)
OKLaboklab(58.03% 0.1785 -0.0965)
OKLCHoklch(58.03% 0.203 331.6)
XYZxyz(29.7102, 16.9818, 42.2621)
Luminance0.1698 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA3EAF #3EBA49
analogous
#873EBA #BA3EAF #BA3E71
triadic
#BA3EAF #AFBA3E #3EAFBA
tetradic
#BA3EAF #BA873E #3EBA49 #3E71BA
square
#BA3EAF #BA873E #3EBA49 #3E71BA
split-complementary
#BA3EAF #71BA3E #3EBA87
monochromatic
#5E1F59 #8C2F84 #BA3EAF #CD68C4 #DC96D6

Accessibility & contrast

On white

4.78
#BA3EAF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.40
#BA3EAF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA3EAF
4.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA3EAF#FFFFFF#000000##FFFFFF
##BA3EAF1.004.784.404.78
#FFFFFF4.781.0021.001.00
#0000004.4021.001.0021.00
##FFFFFF4.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3767B2
Deuteranopia (green-blind)
#6379AC
Tritanopia (blue-blind)
#C14B71
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #ba3eaf;
/* rgb */ color: rgb(186, 62, 175);
/* oklch */ color: oklch(58.0% 0.203 331.6);
Tailwind
colors: {
  custom: {
    50: '#d27dc7',
    500: '#ba3eaf',
    950: '#000000',
  },
}
SCSS
$custom: #ba3eaf;
$custom-light: #d27dc7;
$custom-dark: #000000;
JSON
{
  "hex": "#ba3eaf",
  "rgb": {
    "r": 186,
    "g": 62,
    "b": 175
  },
  "hsl": {
    "h": 305.323,
    "s": 50,
    "l": 48.627
  },
  "oklch": {
    "l": 0.5803,
    "c": 0.20289,
    "h": 331.6
  },
  "luminance": 0.16979
}

Semantic roles & 50–950 ramp

primary
#BA3EAF
secondary
#8CC891
accent
#DA5B4E
background
#FDF8FC
surface
#FAEFF8
border
#D3CAD1
text
#140A13
muted
#837C82

Preview Lab

Preview with #BA3EAF

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

Preview Lab → · Contrast checker → · Palette generator →

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