#BA4FD8#BA4FD8

#BA4FD8 is a light, highly saturated purple. Relative luminance 0.210; OKLCH L 62.1% C 0.215 H 318.2°. Best body text is #000000 at 5.20:1 contrast (WCAG AA passes).

Color values

HEX#BA4FD8
RGBrgb(186, 79, 216)
HSLhsl(287, 64%, 58%)
HSVhsv(287, 63%, 85%)
CMYKcmyk(13.9%, 63.4%, 0%, 15.3%)
CIE-LABlab(52.94, 62.72, -51.37)
CIE-LCHlch(52.94, 81.07, 320.68°)
OKLaboklab(62.14% 0.1605 -0.1437)
OKLCHoklch(62.14% 0.215 318.2)
XYZxyz(35.4386, 20.9904, 67.1373)
Luminance0.2099 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA4FD8 #6DD84F
analogous
#754FD8 #BA4FD8 #D84FB2
triadic
#BA4FD8 #D8BA4F #4FD8BA
tetradic
#BA4FD8 #D8754F #6DD84F #4FB2D8
square
#BA4FD8 #D8754F #6DD84F #4FB2D8
split-complementary
#BA4FD8 #B2D84F #4FD875
monochromatic
#751F8D #9F2ABF #BA4FD8 #CE81E3 #E1B3EE

Accessibility & contrast

On white

4.04
#BA4FD8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.20
#BA4FD8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA4FD8
5.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA4FD8#FFFFFF#000000##000000
##BA4FD81.004.045.205.20
#FFFFFF4.041.0021.0021.00
#0000005.2021.001.001.00
##0000005.2021.001.001.00

Color blindness preview

Protanopia (red-blind)
#2277DC
Deuteranopia (green-blind)
#5582D5
Tritanopia (blue-blind)
#B9678D
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #ba4fd8;
/* rgb */ color: rgb(186, 79, 216);
/* oklch */ color: oklch(62.1% 0.215 318.2);
Tailwind
colors: {
  custom: {
    50: '#d287e5',
    500: '#ba4fd8',
    950: '#000000',
  },
}
SCSS
$custom: #ba4fd8;
$custom-light: #d287e5;
$custom-dark: #000000;
JSON
{
  "hex": "#ba4fd8",
  "rgb": {
    "r": 186,
    "g": 79,
    "b": 216
  },
  "hsl": {
    "h": 286.861,
    "s": 63.721,
    "l": 57.843
  },
  "oklch": {
    "l": 0.62136,
    "c": 0.21546,
    "h": 318.2
  },
  "luminance": 0.20989
}

Semantic roles & 50–950 ramp

primary
#BA4FD8
secondary
#B2DDA6
accent
#E74165
background
#FDF8FE
surface
#FAF0FC
border
#D3CBD5
text
#140C16
muted
#837D84

Preview Lab

Preview with #BA4FD8

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

Preview Lab → · Contrast checker → · Palette generator →

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