#BA3FE2#BA3FE2

#BA3FE2 is a mid, highly saturated purple. Relative luminance 0.195; OKLCH L 61.1% C 0.244 H 316.4°. Best body text is #000000 at 4.90:1 contrast (WCAG AA passes).

Color values

HEX#BA3FE2
RGBrgb(186, 63, 226)
HSLhsl(285, 74%, 57%)
HSVhsv(285, 72%, 89%)
CMYKcmyk(17.7%, 72.1%, 0%, 11.4%)
CIE-LABlab(51.25, 71.06, -59.74)
CIE-LCHlch(51.25, 92.83, 319.94°)
OKLaboklab(61.12% 0.1766 -0.1681)
OKLCHoklch(61.12% 0.244 316.4)
XYZxyz(35.7526, 19.4865, 73.8148)
Luminance0.1948 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA3FE2 #67E23F
analogous
#693FE2 #BA3FE2 #E23FB9
triadic
#BA3FE2 #E2BA3F #3FE2BA
tetradic
#BA3FE2 #E2693F #67E23F #3FB9E2
square
#BA3FE2 #E2693F #67E23F #3FB9E2
split-complementary
#BA3FE2 #B9E23F #3FE269
monochromatic
#731691 #9D1EC6 #BA3FE2 #CD74EA #E0A9F2

Accessibility & contrast

On white

4.29
#BA3FE2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.90
#BA3FE2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA3FE2
4.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA3FE2#FFFFFF#000000##000000
##BA3FE21.004.294.904.90
#FFFFFF4.291.0021.0021.00
#0000004.9021.001.001.00
##0000004.9021.001.001.00

Color blindness preview

Protanopia (red-blind)
#0073E7
Deuteranopia (green-blind)
#3F7EDE
Tritanopia (blue-blind)
#B8618D
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #ba3fe2;
/* rgb */ color: rgb(186, 63, 226);
/* oklch */ color: oklch(61.1% 0.244 316.4);
Tailwind
colors: {
  custom: {
    50: '#d37fec',
    500: '#ba3fe2',
    950: '#000000',
  },
}
SCSS
$custom: #ba3fe2;
$custom-light: #d37fec;
$custom-dark: #000000;
JSON
{
  "hex": "#ba3fe2",
  "rgb": {
    "r": 186,
    "g": 63,
    "b": 226
  },
  "hsl": {
    "h": 285.276,
    "s": 73.756,
    "l": 56.667
  },
  "oklch": {
    "l": 0.61118,
    "c": 0.24384,
    "h": 316.4
  },
  "luminance": 0.19485
}

Semantic roles & 50–950 ramp

primary
#BA3FE2
secondary
#ADE09D
accent
#F03765
background
#FDF8FE
surface
#FBEFFD
border
#D4CAD5
text
#150B16
muted
#837C84

Preview Lab

Preview with #BA3FE2

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

Preview Lab → · Contrast checker → · Palette generator →

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