#BA2FC9#BA2FC9

#BA2FC9 is a mid, highly saturated purple. Relative luminance 0.167; OKLCH L 58.2% C 0.240 H 323.6°. Best body text is #FFFFFF at 4.84:1 contrast (WCAG AA passes).

Color values

HEX#BA2FC9
RGBrgb(186, 47, 201)
HSLhsl(294, 62%, 49%)
HSVhsv(294, 77%, 79%)
CMYKcmyk(7.5%, 76.6%, 0%, 21.2%)
CIE-LABlab(47.87, 71.84, -50.88)
CIE-LCHlch(47.87, 88.03, 324.70°)
OKLaboklab(58.22% 0.1929 -0.1421)
OKLCHoklch(58.22% 0.24 323.6)
XYZxyz(31.8079, 16.6912, 56.7934)
Luminance0.1669 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA2FC9 #3EC92F
analogous
#6D2FC9 #BA2FC9 #C92F8B
triadic
#BA2FC9 #C9BA2F #2FC9BA
tetradic
#BA2FC9 #C96D2F #3EC92F #2F8BC9
square
#BA2FC9 #C96D2F #3EC92F #2F8BC9
split-complementary
#BA2FC9 #8BC92F #2FC96D
monochromatic
#5E1866 #8C2397 #BA2FC9 #CD5CD9 #DC8EE5

Accessibility & contrast

On white

4.84
#BA2FC9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.34
#BA2FC9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA2FC9
4.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA2FC9#FFFFFF#000000##FFFFFF
##BA2FC91.004.844.344.84
#FFFFFF4.841.0021.001.00
#0000004.3421.001.0021.00
##FFFFFF4.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067CD
Deuteranopia (green-blind)
#4C77C5
Tritanopia (blue-blind)
#BD4D7B
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #ba2fc9;
/* rgb */ color: rgb(186, 47, 201);
/* oklch */ color: oklch(58.2% 0.240 323.6);
Tailwind
colors: {
  custom: {
    50: '#d377da',
    500: '#ba2fc9',
    950: '#000000',
  },
}
SCSS
$custom: #ba2fc9;
$custom-light: #d377da;
$custom-dark: #000000;
JSON
{
  "hex": "#ba2fc9",
  "rgb": {
    "r": 186,
    "g": 47,
    "b": 201
  },
  "hsl": {
    "h": 294.156,
    "s": 62.097,
    "l": 48.627
  },
  "oklch": {
    "l": 0.58224,
    "c": 0.23956,
    "h": 323.6
  },
  "luminance": 0.16689
}

Semantic roles & 50–950 ramp

primary
#BA2FC9
secondary
#8CCF85
accent
#E54352
background
#FDF7FD
surface
#FBEEFB
border
#D4C9D4
text
#150A15
muted
#837C83

Preview Lab

Preview with #BA2FC9

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

Preview Lab → · Contrast checker → · Palette generator →

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