#BA2FB7#BA2FB7

#BA2FB7 is a mid, highly saturated purple. Relative luminance 0.159; OKLCH L 57.2% C 0.226 H 329.0°. Best body text is #FFFFFF at 5.03:1 contrast (WCAG AA passes).

Color values

HEX#BA2FB7
RGBrgb(186, 47, 183)
HSLhsl(301, 60%, 46%)
HSVhsv(301, 75%, 73%)
CMYKcmyk(0%, 74.7%, 1.6%, 27.1%)
CIE-LABlab(46.83, 68.89, -42.05)
CIE-LCHlch(46.83, 80.71, 328.60°)
OKLaboklab(57.16% 0.1936 -0.1164)
OKLCHoklch(57.16% 0.226 329)
XYZxyz(29.8132, 15.8933, 46.2880)
Luminance0.1589 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA2FB7 #2FBA32
analogous
#772FBA #BA2FB7 #BA2F71
triadic
#BA2FB7 #B7BA2F #2FB7BA
tetradic
#BA2FB7 #BA772F #2FBA32 #2F71BA
square
#BA2FB7 #BA772F #2FBA32 #2F71BA
split-complementary
#BA2FB7 #71BA2F #2FBA77
monochromatic
#581657 #892387 #BA2FB7 #D353D1 #E084DE

Accessibility & contrast

On white

5.03
#BA2FB7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.18
#BA2FB7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA2FB7
5.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA2FB7#FFFFFF#000000##FFFFFF
##BA2FB71.005.034.185.03
#FFFFFF5.031.0021.001.00
#0000004.1821.001.0021.00
##FFFFFF5.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1563BB
Deuteranopia (green-blind)
#5875B4
Tritanopia (blue-blind)
#C04471
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #ba2fb7;
/* rgb */ color: rgb(186, 47, 183);
/* oklch */ color: oklch(57.2% 0.226 329.0);
Tailwind
colors: {
  custom: {
    50: '#d377cd',
    500: '#ba2fb7',
    950: '#000000',
  },
}
SCSS
$custom: #ba2fb7;
$custom-light: #d377cd;
$custom-dark: #000000;
JSON
{
  "hex": "#ba2fb7",
  "rgb": {
    "r": 186,
    "g": 47,
    "b": 183
  },
  "hsl": {
    "h": 301.295,
    "s": 59.657,
    "l": 45.686
  },
  "oklch": {
    "l": 0.57156,
    "c": 0.2259,
    "h": 329
  },
  "luminance": 0.15891
}

Semantic roles & 50–950 ramp

primary
#BA2FB7
secondary
#7CC97D
accent
#E34845
background
#FDF7FC
surface
#FAEEF9
border
#D3C9D2
text
#150A13
muted
#837C82

Preview Lab

Preview with #BA2FB7

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

Preview Lab → · Contrast checker → · Palette generator →

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