#BA3FB2#BA3FB2

#BA3FB2 is a mid, highly saturated purple. Relative luminance 0.172; OKLCH L 58.3% C 0.204 H 330.6°. Best body text is #FFFFFF at 4.73:1 contrast (WCAG AA passes).

Color values

HEX#BA3FB2
RGBrgb(186, 63, 178)
HSLhsl(304, 49%, 49%)
HSVhsv(304, 66%, 73%)
CMYKcmyk(0%, 66.1%, 4.3%, 27.1%)
CIE-LABlab(48.52, 62.55, -36.45)
CIE-LCHlch(48.52, 72.39, 329.77°)
OKLaboklab(58.29% 0.1776 -0.1003)
OKLCHoklch(58.29% 0.204 330.6)
XYZxyz(30.0630, 17.2107, 43.8494)
Luminance0.1721 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA3FB2 #3FBA47
analogous
#853FBA #BA3FB2 #BA3F75
triadic
#BA3FB2 #B2BA3F #3FB2BA
tetradic
#BA3FB2 #BA853F #3FBA47 #3F75BA
square
#BA3FB2 #BA853F #3FBA47 #3F75BA
split-complementary
#BA3FB2 #75BA3F #3FBA85
monochromatic
#5F205B #8C3086 #BA3FB2 #CC6AC6 #DC97D7

Accessibility & contrast

On white

4.73
#BA3FB2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.44
#BA3FB2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA3FB2
4.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA3FB2#FFFFFF#000000##FFFFFF
##BA3FB21.004.734.444.73
#FFFFFF4.731.0021.001.00
#0000004.4421.001.0021.00
##FFFFFF4.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3568B5
Deuteranopia (green-blind)
#6279AF
Tritanopia (blue-blind)
#C14D73
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #ba3fb2;
/* rgb */ color: rgb(186, 63, 178);
/* oklch */ color: oklch(58.3% 0.204 330.6);
Tailwind
colors: {
  custom: {
    50: '#d27ec9',
    500: '#ba3fb2',
    950: '#000000',
  },
}
SCSS
$custom: #ba3fb2;
$custom-light: #d27ec9;
$custom-dark: #000000;
JSON
{
  "hex": "#ba3fb2",
  "rgb": {
    "r": 186,
    "g": 63,
    "b": 178
  },
  "hsl": {
    "h": 303.902,
    "s": 49.398,
    "l": 48.824
  },
  "oklch": {
    "l": 0.58286,
    "c": 0.20395,
    "h": 330.6
  },
  "luminance": 0.17208
}

Semantic roles & 50–950 ramp

primary
#BA3FB2
secondary
#8DC891
accent
#D9584F
background
#FDF8FC
surface
#FAEFF8
border
#D3CAD1
text
#140B13
muted
#837C82

Preview Lab

Preview with #BA3FB2

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

Preview Lab → · Contrast checker → · Palette generator →

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