#BA2FB8#BA2FB8

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

Color values

HEX#BA2FB8
RGBrgb(186, 47, 184)
HSLhsl(301, 60%, 46%)
HSVhsv(301, 75%, 73%)
CMYKcmyk(0%, 74.7%, 1.1%, 27.1%)
CIE-LABlab(46.89, 69.05, -42.55)
CIE-LCHlch(46.89, 81.10, 328.36°)
OKLaboklab(57.21% 0.1936 -0.1178)
OKLCHoklch(57.21% 0.227 328.7)
XYZxyz(29.9176, 15.9351, 46.8381)
Luminance0.1593 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA2FB8 #2FBA31
analogous
#762FBA #BA2FB8 #BA2F73
triadic
#BA2FB8 #B8BA2F #2FB8BA
tetradic
#BA2FB8 #BA762F #2FBA31 #2F73BA
square
#BA2FB8 #BA762F #2FBA31 #2F73BA
split-complementary
#BA2FB8 #73BA2F #2FBA76
monochromatic
#581657 #892388 #BA2FB8 #D353D2 #E084DE

Accessibility & contrast

On white

5.02
#BA2FB8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.19
#BA2FB8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA2FB8
5.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA2FB8#FFFFFF#000000##FFFFFF
##BA2FB81.005.024.195.02
#FFFFFF5.021.0021.001.00
#0000004.1921.001.0021.00
##FFFFFF5.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1364BC
Deuteranopia (green-blind)
#5775B5
Tritanopia (blue-blind)
#C04572
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #ba2fb8;
/* rgb */ color: rgb(186, 47, 184);
/* oklch */ color: oklch(57.2% 0.227 328.7);
Tailwind
colors: {
  custom: {
    50: '#d377ce',
    500: '#ba2fb8',
    950: '#000000',
  },
}
SCSS
$custom: #ba2fb8;
$custom-light: #d377ce;
$custom-dark: #000000;
JSON
{
  "hex": "#ba2fb8",
  "rgb": {
    "r": 186,
    "g": 47,
    "b": 184
  },
  "hsl": {
    "h": 300.863,
    "s": 59.657,
    "l": 45.686
  },
  "oklch": {
    "l": 0.57213,
    "c": 0.22664,
    "h": 328.7
  },
  "luminance": 0.15933
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #BA2FB8

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

Preview Lab → · Contrast checker → · Palette generator →

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