#BA2FBA#BA2FBA

#BA2FBA is a mid, highly saturated purple. Relative luminance 0.160; OKLCH L 57.3% C 0.228 H 328.1°. Best body text is #FFFFFF at 5.00:1 contrast (WCAG AA passes).

Color values

HEX#BA2FBA
RGBrgb(186, 47, 186)
HSLhsl(300, 60%, 46%)
HSVhsv(300, 75%, 73%)
CMYKcmyk(0%, 74.7%, 0%, 27.1%)
CIE-LABlab(47.00, 69.37, -43.54)
CIE-LCHlch(47.00, 81.90, 327.88°)
OKLaboklab(57.33% 0.1936 -0.1207)
OKLCHoklch(57.33% 0.228 328.1)
XYZxyz(30.1288, 16.0195, 47.9501)
Luminance0.1602 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA2FBA #2FBA2F
analogous
#742FBA #BA2FBA #BA2F74
triadic
#BA2FBA #BABA2F #2FBABA
tetradic
#BA2FBA #BA742F #2FBA2F #2F74BA
square
#BA2FBA #BA742F #2FBA2F #2F74BA
split-complementary
#BA2FBA #74BA2F #2FBA74
monochromatic
#581658 #892389 #BA2FBA #D353D3 #E084E0

Accessibility & contrast

On white

5.00
#BA2FBA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.20
#BA2FBA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA2FBA
5.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA2FBA#FFFFFF#000000##FFFFFF
##BA2FBA1.005.004.205.00
#FFFFFF5.001.0021.001.00
#0000004.2021.001.0021.00
##FFFFFF5.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D64BE
Deuteranopia (green-blind)
#5676B7
Tritanopia (blue-blind)
#C04673
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #ba2fba;
/* rgb */ color: rgb(186, 47, 186);
/* oklch */ color: oklch(57.3% 0.228 328.1);
Tailwind
colors: {
  custom: {
    50: '#d377cf',
    500: '#ba2fba',
    950: '#000000',
  },
}
SCSS
$custom: #ba2fba;
$custom-light: #d377cf;
$custom-dark: #000000;
JSON
{
  "hex": "#ba2fba",
  "rgb": {
    "r": 186,
    "g": 47,
    "b": 186
  },
  "hsl": {
    "h": 300,
    "s": 59.657,
    "l": 45.686
  },
  "oklch": {
    "l": 0.57328,
    "c": 0.22813,
    "h": 328.1
  },
  "luminance": 0.16017
}

Semantic roles & 50–950 ramp

primary
#BA2FBA
secondary
#7CC97C
accent
#E34545
background
#FDF7FC
surface
#FAEEF9
border
#D3C9D2
text
#150A14
muted
#837C82

Preview Lab

Preview with #BA2FBA

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

Preview Lab → · Contrast checker → · Palette generator →

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