#BA2FAF#BA2FAF

#BA2FAF is a mid, highly saturated purple. Relative luminance 0.156; OKLCH L 56.7% C 0.220 H 331.6°. Best body text is #FFFFFF at 5.11:1 contrast (WCAG AA passes).

Color values

HEX#BA2FAF
RGBrgb(186, 47, 175)
HSLhsl(305, 60%, 46%)
HSVhsv(305, 75%, 73%)
CMYKcmyk(0%, 74.7%, 5.9%, 27.1%)
CIE-LABlab(46.40, 67.64, -38.02)
CIE-LCHlch(46.40, 77.59, 330.66°)
OKLaboklab(56.71% 0.1935 -0.1047)
OKLCHoklch(56.71% 0.22 331.6)
XYZxyz(29.0041, 15.5697, 42.0268)
Luminance0.1557 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA2FAF #2FBA3A
analogous
#7F2FBA #BA2FAF #BA2F69
triadic
#BA2FAF #AFBA2F #2FAFBA
tetradic
#BA2FAF #BA7F2F #2FBA3A #2F69BA
square
#BA2FAF #BA7F2F #2FBA3A #2F69BA
split-complementary
#BA2FAF #69BA2F #2FBA7F
monochromatic
#581653 #892381 #BA2FAF #D353C9 #E084D9

Accessibility & contrast

On white

5.11
#BA2FAF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.11
#BA2FAF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA2FAF
5.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA2FAF#FFFFFF#000000##FFFFFF
##BA2FAF1.005.114.115.11
#FFFFFF5.111.0021.001.00
#0000004.1121.001.0021.00
##FFFFFF5.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2362B2
Deuteranopia (green-blind)
#5C75AC
Tritanopia (blue-blind)
#C2406D
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #ba2faf;
/* rgb */ color: rgb(186, 47, 175);
/* oklch */ color: oklch(56.7% 0.220 331.6);
Tailwind
colors: {
  custom: {
    50: '#d376c7',
    500: '#ba2faf',
    950: '#000000',
  },
}
SCSS
$custom: #ba2faf;
$custom-light: #d376c7;
$custom-dark: #000000;
JSON
{
  "hex": "#ba2faf",
  "rgb": {
    "r": 186,
    "g": 47,
    "b": 175
  },
  "hsl": {
    "h": 304.748,
    "s": 59.657,
    "l": 45.686
  },
  "oklch": {
    "l": 0.5671,
    "c": 0.22002,
    "h": 331.6
  },
  "luminance": 0.15567
}

Semantic roles & 50–950 ramp

primary
#BA2FAF
secondary
#7CC982
accent
#E35145
background
#FDF7FC
surface
#FAEEF8
border
#D3C9D1
text
#150A13
muted
#837C82

Preview Lab

Preview with #BA2FAF

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

Preview Lab → · Contrast checker → · Palette generator →

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