#BA4FE8#BA4FE8

#BA4FE8 is a light, highly saturated purple. Relative luminance 0.219; OKLCH L 63.1% C 0.230 H 314.0°. Best body text is #000000 at 5.37:1 contrast (WCAG AA passes).

Color values

HEX#BA4FE8
RGBrgb(186, 79, 232)
HSLhsl(282, 77%, 61%)
HSVhsv(282, 66%, 91%)
CMYKcmyk(19.8%, 65.9%, 0%, 9%)
CIE-LABlab(53.88, 65.88, -58.91)
CIE-LCHlch(53.88, 88.38, 318.20°)
OKLaboklab(63.11% 0.16 -0.1658)
OKLCHoklch(63.11% 0.23 314)
XYZxyz(37.6087, 21.8585, 78.5663)
Luminance0.2186 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA4FE8 #7DE84F
analogous
#6D4FE8 #BA4FE8 #E84FC9
triadic
#BA4FE8 #E8BA4F #4FE8BA
tetradic
#BA4FE8 #E86D4F #7DE84F #4FC9E8
square
#BA4FE8 #E86D4F #7DE84F #4FC9E8
split-complementary
#BA4FE8 #C9E84F #4FE86D
monochromatic
#7B16A7 #A31DDD #BA4FE8 #CF85EF #E4BBF6

Accessibility & contrast

On white

3.91
#BA4FE8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.37
#BA4FE8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA4FE8
5.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA4FE8#FFFFFF#000000##000000
##BA4FE81.003.915.375.37
#FFFFFF3.911.0021.0021.00
#0000005.3721.001.001.00
##0000005.3721.001.001.00

Color blindness preview

Protanopia (red-blind)
#007BED
Deuteranopia (green-blind)
#4783E4
Tritanopia (blue-blind)
#B66D95
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #ba4fe8;
/* rgb */ color: rgb(186, 79, 232);
/* oklch */ color: oklch(63.1% 0.230 314.0);
Tailwind
colors: {
  custom: {
    50: '#d388f0',
    500: '#ba4fe8',
    950: '#000000',
  },
}
SCSS
$custom: #ba4fe8;
$custom-light: #d388f0;
$custom-dark: #000000;
JSON
{
  "hex": "#ba4fe8",
  "rgb": {
    "r": 186,
    "g": 79,
    "b": 232
  },
  "hsl": {
    "h": 281.961,
    "s": 76.884,
    "l": 60.98
  },
  "oklch": {
    "l": 0.63112,
    "c": 0.2304,
    "h": 314
  },
  "luminance": 0.21857
}

Semantic roles & 50–950 ramp

primary
#BA4FE8
secondary
#BEE6AD
accent
#D90C4A
background
#FDF8FE
surface
#FAF0FD
border
#D3CBD5
text
#150C17
muted
#837D85

Preview Lab

Preview with #BA4FE8

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

Preview Lab → · Contrast checker → · Palette generator →

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