#BA4FED#BA4FED

#BA4FED is a light, highly saturated purple. Relative luminance 0.221; OKLCH L 63.4% C 0.235 H 312.8°. Best body text is #000000 at 5.43:1 contrast (WCAG AA passes).

Color values

HEX#BA4FED
RGBrgb(186, 79, 237)
HSLhsl(281, 81%, 62%)
HSVhsv(281, 67%, 93%)
CMYKcmyk(21.5%, 66.7%, 0%, 7.1%)
CIE-LABlab(54.18, 66.89, -61.22)
CIE-LCHlch(54.18, 90.68, 317.53°)
OKLaboklab(63.43% 0.1596 -0.1726)
OKLCHoklch(63.43% 0.235 312.8)
XYZxyz(38.3290, 22.1466, 82.3600)
Luminance0.2215 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA4FED #82ED4F
analogous
#6B4FED #BA4FED #ED4FD1
triadic
#BA4FED #EDBA4F #4FEDBA
tetradic
#BA4FED #ED6B4F #82ED4F #4FD1ED
square
#BA4FED #ED6B4F #82ED4F #4FD1ED
split-complementary
#BA4FED #D1ED4F #4FED6B
monochromatic
#7D12B0 #A418E7 #BA4FED #D087F3 #E6BEF8

Accessibility & contrast

On white

3.87
#BA4FED on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.43
#BA4FED on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA4FED
5.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA4FED#FFFFFF#000000##000000
##BA4FED1.003.875.435.43
#FFFFFF3.871.0021.0021.00
#0000005.4321.001.001.00
##0000005.4321.001.001.00

Color blindness preview

Protanopia (red-blind)
#007CF2
Deuteranopia (green-blind)
#4284E9
Tritanopia (blue-blind)
#B46F98
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #ba4fed;
/* rgb */ color: rgb(186, 79, 237);
/* oklch */ color: oklch(63.4% 0.235 312.8);
Tailwind
colors: {
  custom: {
    50: '#d388f4',
    500: '#ba4fed',
    950: '#000000',
  },
}
SCSS
$custom: #ba4fed;
$custom-light: #d388f4;
$custom-dark: #000000;
JSON
{
  "hex": "#ba4fed",
  "rgb": {
    "r": 186,
    "g": 79,
    "b": 237
  },
  "hsl": {
    "h": 280.633,
    "s": 81.443,
    "l": 61.961
  },
  "oklch": {
    "l": 0.63429,
    "c": 0.23511,
    "h": 312.8
  },
  "luminance": 0.22145
}

Semantic roles & 50–950 ramp

primary
#BA4FED
secondary
#C2E9AF
accent
#DE084D
background
#FDF8FF
surface
#FAF0FE
border
#D3CBD6
text
#150C17
muted
#837D85

Preview Lab

Preview with #BA4FED

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

Preview Lab → · Contrast checker → · Palette generator →

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