#BA2BE2#BA2BE2

#BA2BE2 is a mid, highly saturated purple. Relative luminance 0.177; OKLCH L 59.6% C 0.262 H 317.2°. Best body text is #FFFFFF at 4.63:1 contrast (WCAG AA passes).

Color values

HEX#BA2BE2
RGBrgb(186, 43, 226)
HSLhsl(287, 76%, 53%)
HSVhsv(287, 81%, 89%)
CMYKcmyk(17.7%, 81%, 0%, 11.4%)
CIE-LABlab(49.08, 77.31, -63.24)
CIE-LCHlch(49.08, 99.89, 320.72°)
OKLaboklab(59.59% 0.1926 -0.1783)
OKLCHoklch(59.59% 0.262 317.2)
XYZxyz(34.8390, 17.6594, 73.5102)
Luminance0.1766 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA2BE2 #53E22B
analogous
#5E2BE2 #BA2BE2 #E22BAF
triadic
#BA2BE2 #E2BA2B #2BE2BA
tetradic
#BA2BE2 #E25E2B #53E22B #2BAFE2
square
#BA2BE2 #E25E2B #53E22B #2BAFE2
split-complementary
#BA2BE2 #AFE22B #2BE25E
monochromatic
#691281 #9419B7 #BA2BE2 #CC61E9 #DD97F1

Accessibility & contrast

On white

4.63
#BA2BE2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.53
#BA2BE2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #BA2BE2
4.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA2BE2#FFFFFF#000000##FFFFFF
##BA2BE21.004.634.534.63
#FFFFFF4.631.0021.001.00
#0000004.5321.001.0021.00
##FFFFFF4.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006CE7
Deuteranopia (green-blind)
#2E79DE
Tritanopia (blue-blind)
#B85789
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #ba2be2;
/* rgb */ color: rgb(186, 43, 226);
/* oklch */ color: oklch(59.6% 0.262 317.2);
Tailwind
colors: {
  custom: {
    50: '#d477ec',
    500: '#ba2be2',
    950: '#000000',
  },
}
SCSS
$custom: #ba2be2;
$custom-light: #d477ec;
$custom-dark: #000000;
JSON
{
  "hex": "#ba2be2",
  "rgb": {
    "r": 186,
    "g": 43,
    "b": 226
  },
  "hsl": {
    "h": 286.885,
    "s": 75.934,
    "l": 52.745
  },
  "oklch": {
    "l": 0.59586,
    "c": 0.26245,
    "h": 317.2
  },
  "luminance": 0.17658
}

Semantic roles & 50–950 ramp

primary
#BA2BE2
secondary
#9EDC8D
accent
#F3355F
background
#FDF7FE
surface
#FBEEFD
border
#D4C9D5
text
#150A16
muted
#837C84

Preview Lab

Preview with #BA2BE2

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

Preview Lab → · Contrast checker → · Palette generator →

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