#BA3FE8#BA3FE8

#BA3FE8 is a mid, highly saturated purple. Relative luminance 0.198; OKLCH L 61.5% C 0.249 H 314.9°. Best body text is #000000 at 4.96:1 contrast (WCAG AA passes).

Color values

HEX#BA3FE8
RGBrgb(186, 63, 232)
HSLhsl(284, 79%, 58%)
HSVhsv(284, 73%, 91%)
CMYKcmyk(19.8%, 72.8%, 0%, 9%)
CIE-LABlab(51.63, 72.20, -62.52)
CIE-LCHlch(51.63, 95.50, 319.11°)
OKLaboklab(61.51% 0.1759 -0.1763)
OKLCHoklch(61.51% 0.249 314.9)
XYZxyz(36.5903, 19.8216, 78.2268)
Luminance0.1982 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA3FE8 #6DE83F
analogous
#663FE8 #BA3FE8 #E83FC1
triadic
#BA3FE8 #E8BA3F #3FE8BA
tetradic
#BA3FE8 #E8663F #6DE83F #3FC1E8
square
#BA3FE8 #E8663F #6DE83F #3FC1E8
split-complementary
#BA3FE8 #C1E83F #3FE866
monochromatic
#75129A #9F19D1 #BA3FE8 #CE76EF #E1ACF5

Accessibility & contrast

On white

4.23
#BA3FE8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.96
#BA3FE8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA3FE8
4.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA3FE8#FFFFFF#000000##000000
##BA3FE81.004.234.964.96
#FFFFFF4.231.0021.0021.00
#0000004.9621.001.001.00
##0000004.9621.001.001.00

Color blindness preview

Protanopia (red-blind)
#0074ED
Deuteranopia (green-blind)
#387EE4
Tritanopia (blue-blind)
#B66491
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #ba3fe8;
/* rgb */ color: rgb(186, 63, 232);
/* oklch */ color: oklch(61.5% 0.249 314.9);
Tailwind
colors: {
  custom: {
    50: '#d37ff0',
    500: '#ba3fe8',
    950: '#000000',
  },
}
SCSS
$custom: #ba3fe8;
$custom-light: #d37ff0;
$custom-dark: #000000;
JSON
{
  "hex": "#ba3fe8",
  "rgb": {
    "r": 186,
    "g": 63,
    "b": 232
  },
  "hsl": {
    "h": 283.669,
    "s": 78.605,
    "l": 57.843
  },
  "oklch": {
    "l": 0.61512,
    "c": 0.24904,
    "h": 314.9
  },
  "luminance": 0.1982
}

Semantic roles & 50–950 ramp

primary
#BA3FE8
secondary
#B2E3A0
accent
#F53368
background
#FDF8FE
surface
#FBEFFD
border
#D4CAD5
text
#150B17
muted
#837C85

Preview Lab

Preview with #BA3FE8

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

Preview Lab → · Contrast checker → · Palette generator →

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