#BA2FE2#BA2FE2

#BA2FE2 is a mid, highly saturated purple. Relative luminance 0.180; OKLCH L 59.8% C 0.259 H 317.1°. Best body text is #000000 at 4.59:1 contrast (WCAG AA passes).

Color values

HEX#BA2FE2
RGBrgb(186, 47, 226)
HSLhsl(287, 76%, 54%)
HSVhsv(287, 79%, 89%)
CMYKcmyk(17.7%, 79.2%, 0%, 11.4%)
CIE-LABlab(49.45, 76.23, -62.64)
CIE-LCHlch(49.45, 98.66, 320.59°)
OKLaboklab(59.85% 0.1898 -0.1766)
OKLCHoklch(59.85% 0.259 317.1)
XYZxyz(34.9916, 17.9647, 73.5611)
Luminance0.1796 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA2FE2 #57E22F
analogous
#602FE2 #BA2FE2 #E22FB0
triadic
#BA2FE2 #E2BA2F #2FE2BA
tetradic
#BA2FE2 #E2602F #57E22F #2FB0E2
square
#BA2FE2 #E2602F #57E22F #2FB0E2
split-complementary
#BA2FE2 #B0E22F #2FE260
monochromatic
#6B1284 #961ABA #BA2FE2 #CC65E9 #DE9AF1

Accessibility & contrast

On white

4.57
#BA2FE2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.59
#BA2FE2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA2FE2
4.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA2FE2#FFFFFF#000000##000000
##BA2FE21.004.574.594.59
#FFFFFF4.571.0021.0021.00
#0000004.5921.001.001.00
##0000004.5921.001.001.00

Color blindness preview

Protanopia (red-blind)
#006DE7
Deuteranopia (green-blind)
#3279DE
Tritanopia (blue-blind)
#B8598A
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #ba2fe2;
/* rgb */ color: rgb(186, 47, 226);
/* oklch */ color: oklch(59.8% 0.259 317.1);
Tailwind
colors: {
  custom: {
    50: '#d479ec',
    500: '#ba2fe2',
    950: '#000000',
  },
}
SCSS
$custom: #ba2fe2;
$custom-light: #d479ec;
$custom-dark: #000000;
JSON
{
  "hex": "#ba2fe2",
  "rgb": {
    "r": 186,
    "g": 47,
    "b": 226
  },
  "hsl": {
    "h": 286.592,
    "s": 75.527,
    "l": 53.529
  },
  "oklch": {
    "l": 0.59847,
    "c": 0.25924,
    "h": 317.1
  },
  "luminance": 0.17963
}

Semantic roles & 50–950 ramp

primary
#BA2FE2
secondary
#A1DD90
accent
#F23660
background
#FDF7FE
surface
#FBEEFD
border
#D4C9D5
text
#150A16
muted
#837C84

Preview Lab

Preview with #BA2FE2

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

Preview Lab → · Contrast checker → · Palette generator →

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