#BA4FD9#BA4FD9

#BA4FD9 is a light, highly saturated purple. Relative luminance 0.210; OKLCH L 62.2% C 0.216 H 317.9°. Best body text is #000000 at 5.21:1 contrast (WCAG AA passes).

Color values

HEX#BA4FD9
RGBrgb(186, 79, 217)
HSLhsl(287, 64%, 58%)
HSVhsv(287, 64%, 85%)
CMYKcmyk(14.3%, 63.6%, 0%, 14.9%)
CIE-LABlab(53.00, 62.92, -51.85)
CIE-LCHlch(53.00, 81.53, 320.51°)
OKLaboklab(62.2% 0.1605 -0.1451)
OKLCHoklch(62.2% 0.216 317.9)
XYZxyz(35.5683, 21.0423, 67.8202)
Luminance0.2104 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA4FD9 #6ED94F
analogous
#754FD9 #BA4FD9 #D94FB3
triadic
#BA4FD9 #D9BA4F #4FD9BA
tetradic
#BA4FD9 #D9754F #6ED94F #4FB3D9
square
#BA4FD9 #D9754F #6ED94F #4FB3D9
split-complementary
#BA4FD9 #B3D94F #4FD975
monochromatic
#761F8F #9F2AC1 #BA4FD9 #CE81E4 #E1B4EF

Accessibility & contrast

On white

4.03
#BA4FD9 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.21
#BA4FD9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA4FD9
5.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA4FD9#FFFFFF#000000##000000
##BA4FD91.004.035.215.21
#FFFFFF4.031.0021.0021.00
#0000005.2121.001.001.00
##0000005.2121.001.001.00

Color blindness preview

Protanopia (red-blind)
#2178DD
Deuteranopia (green-blind)
#5482D6
Tritanopia (blue-blind)
#B9678D
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #ba4fd9;
/* rgb */ color: rgb(186, 79, 217);
/* oklch */ color: oklch(62.2% 0.216 317.9);
Tailwind
colors: {
  custom: {
    50: '#d287e5',
    500: '#ba4fd9',
    950: '#000000',
  },
}
SCSS
$custom: #ba4fd9;
$custom-light: #d287e5;
$custom-dark: #000000;
JSON
{
  "hex": "#ba4fd9",
  "rgb": {
    "r": 186,
    "g": 79,
    "b": 217
  },
  "hsl": {
    "h": 286.522,
    "s": 64.486,
    "l": 58.039
  },
  "oklch": {
    "l": 0.62195,
    "c": 0.21639,
    "h": 317.9
  },
  "luminance": 0.21041
}

Semantic roles & 50–950 ramp

primary
#BA4FD9
secondary
#B3DDA6
accent
#E74066
background
#FDF8FE
surface
#FAF0FC
border
#D3CBD5
text
#140C16
muted
#837D84

Preview Lab

Preview with #BA4FD9

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

Preview Lab → · Contrast checker → · Palette generator →

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