#BA4FE4#BA4FE4

#BA4FE4 is a light, highly saturated purple. Relative luminance 0.216; OKLCH L 62.9% C 0.227 H 315.0°. Best body text is #000000 at 5.33:1 contrast (WCAG AA passes).

Color values

HEX#BA4FE4
RGBrgb(186, 79, 228)
HSLhsl(283, 73%, 60%)
HSVhsv(283, 65%, 89%)
CMYKcmyk(18.4%, 65.4%, 0%, 10.6%)
CIE-LABlab(53.64, 65.08, -57.04)
CIE-LCHlch(53.64, 86.54, 318.77°)
OKLaboklab(62.86% 0.1602 -0.1603)
OKLCHoklch(62.86% 0.227 315)
XYZxyz(37.0470, 21.6338, 75.6080)
Luminance0.2163 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA4FE4 #79E44F
analogous
#6F4FE4 #BA4FE4 #E44FC4
triadic
#BA4FE4 #E4BA4F #4FE4BA
tetradic
#BA4FE4 #E46F4F #79E44F #4FC4E4
square
#BA4FE4 #E46F4F #79E44F #4FC4E4
split-complementary
#BA4FE4 #C4E44F #4FE46F
monochromatic
#7A19A0 #A221D5 #BA4FE4 #CF84EC #E4B9F4

Accessibility & contrast

On white

3.94
#BA4FE4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.33
#BA4FE4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA4FE4
5.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA4FE4#FFFFFF#000000##000000
##BA4FE41.003.945.335.33
#FFFFFF3.941.0021.0021.00
#0000005.3321.001.001.00
##0000005.3321.001.001.00

Color blindness preview

Protanopia (red-blind)
#007AE8
Deuteranopia (green-blind)
#4B83E1
Tritanopia (blue-blind)
#B76C93
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #ba4fe4;
/* rgb */ color: rgb(186, 79, 228);
/* oklch */ color: oklch(62.9% 0.227 315.0);
Tailwind
colors: {
  custom: {
    50: '#d387ed',
    500: '#ba4fe4',
    950: '#000000',
  },
}
SCSS
$custom: #ba4fe4;
$custom-light: #d387ed;
$custom-dark: #000000;
JSON
{
  "hex": "#ba4fe4",
  "rgb": {
    "r": 186,
    "g": 79,
    "b": 228
  },
  "hsl": {
    "h": 283.087,
    "s": 73.399,
    "l": 60.196
  },
  "oklch": {
    "l": 0.62863,
    "c": 0.22664,
    "h": 315
  },
  "luminance": 0.21633
}

Semantic roles & 50–950 ramp

primary
#BA4FE4
secondary
#BBE4AB
accent
#D61048
background
#FDF8FE
surface
#FAF0FD
border
#D3CBD5
text
#150C16
muted
#837D84

Preview Lab

Preview with #BA4FE4

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

Preview Lab → · Contrast checker → · Palette generator →

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