#BA4FD7#BA4FD7

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

Color values

HEX#BA4FD7
RGBrgb(186, 79, 215)
HSLhsl(287, 63%, 58%)
HSVhsv(287, 63%, 84%)
CMYKcmyk(13.5%, 63.3%, 0%, 15.7%)
CIE-LABlab(52.88, 62.53, -50.89)
CIE-LCHlch(52.88, 80.62, 320.86°)
OKLaboklab(62.08% 0.1605 -0.1423)
OKLCHoklch(62.08% 0.215 318.4)
XYZxyz(35.3098, 20.9389, 66.4585)
Luminance0.2094 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA4FD7 #6CD74F
analogous
#764FD7 #BA4FD7 #D74FB0
triadic
#BA4FD7 #D7BA4F #4FD7BA
tetradic
#BA4FD7 #D7764F #6CD74F #4FB0D7
square
#BA4FD7 #D7764F #6CD74F #4FB0D7
split-complementary
#BA4FD7 #B0D74F #4FD776
monochromatic
#75208C #9E2BBE #BA4FD7 #CE81E2 #E1B3EE

Accessibility & contrast

On white

4.05
#BA4FD7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.19
#BA4FD7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA4FD7
5.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA4FD7#FFFFFF#000000##000000
##BA4FD71.004.055.195.19
#FFFFFF4.051.0021.0021.00
#0000005.1921.001.001.00
##0000005.1921.001.001.00

Color blindness preview

Protanopia (red-blind)
#2477DB
Deuteranopia (green-blind)
#5682D4
Tritanopia (blue-blind)
#BA678C
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #ba4fd7;
/* rgb */ color: rgb(186, 79, 215);
/* oklch */ color: oklch(62.1% 0.215 318.4);
Tailwind
colors: {
  custom: {
    50: '#d287e4',
    500: '#ba4fd7',
    950: '#000000',
  },
}
SCSS
$custom: #ba4fd7;
$custom-light: #d287e4;
$custom-dark: #000000;
JSON
{
  "hex": "#ba4fd7",
  "rgb": {
    "r": 186,
    "g": 79,
    "b": 215
  },
  "hsl": {
    "h": 287.206,
    "s": 62.963,
    "l": 57.647
  },
  "oklch": {
    "l": 0.62077,
    "c": 0.21453,
    "h": 318.4
  },
  "luminance": 0.20937
}

Semantic roles & 50–950 ramp

primary
#BA4FD7
secondary
#B1DCA6
accent
#E64265
background
#FDF8FE
surface
#FAF0FC
border
#D3CBD5
text
#140C16
muted
#837D84

Preview Lab

Preview with #BA4FD7

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

Preview Lab → · Contrast checker → · Palette generator →

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