#BA2EFF#BA2EFF

#BA2EFF is a mid, highly saturated purple. Relative luminance 0.196; OKLCH L 61.8% C 0.283 H 310.6°. Best body text is #000000 at 4.92:1 contrast (WCAG AA passes).

Color values

HEX#BA2EFF
RGBrgb(186, 46, 255)
HSLhsl(280, 100%, 59%)
HSVhsv(280, 82%, 100%)
CMYKcmyk(27.1%, 82%, 0%, 0%)
CIE-LABlab(51.40, 81.90, -75.78)
CIE-LCHlch(51.40, 111.58, 317.22°)
OKLaboklab(61.85% 0.1845 -0.2151)
OKLCHoklch(61.85% 0.283 310.6)
XYZxyz(39.2731, 19.6140, 96.3054)
Luminance0.1961 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA2EFF #73FF2E
analogous
#522EFF #BA2EFF #FF2EDC
triadic
#BA2EFF #FFBA2E #2EFFBA
tetradic
#BA2EFF #FF522E #73FF2E #2EDCFF
square
#BA2EFF #FF522E #73FF2E #2EDCFF
split-complementary
#BA2EFF #DCFF2E #2EFF52
monochromatic
#7800B3 #A100F0 #BA2EFF #CE6BFF #E2A8FF

Accessibility & contrast

On white

4.27
#BA2EFF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.92
#BA2EFF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA2EFF
4.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA2EFF#FFFFFF#000000##000000
##BA2EFF1.004.274.924.92
#FFFFFF4.271.0021.0021.00
#0000004.9221.001.001.00
##0000004.9221.001.001.00

Color blindness preview

Protanopia (red-blind)
#0075FF
Deuteranopia (green-blind)
#007DFB
Tritanopia (blue-blind)
#B0679A
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #ba2eff;
/* rgb */ color: rgb(186, 46, 255);
/* oklch */ color: oklch(61.8% 0.283 310.6);
Tailwind
colors: {
  custom: {
    50: '#d57aff',
    500: '#ba2eff',
    950: '#000000',
  },
}
SCSS
$custom: #ba2eff;
$custom-light: #d57aff;
$custom-dark: #000000;
JSON
{
  "hex": "#ba2eff",
  "rgb": {
    "r": 186,
    "g": 46,
    "b": 255
  },
  "hsl": {
    "h": 280.191,
    "s": 100,
    "l": 59.02
  },
  "oklch": {
    "l": 0.61846,
    "c": 0.28338,
    "h": 310.6
  },
  "luminance": 0.19613
}

Semantic roles & 50–950 ramp

primary
#BA2EFF
secondary
#B6ED9B
accent
#FF2970
background
#FDF8FF
surface
#FBEFFF
border
#D4CAD7
text
#150A18
muted
#837C86

Preview Lab

Preview with #BA2EFF

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

Preview Lab → · Contrast checker → · Palette generator →

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