#BA4FC7#BA4FC7

#BA4FC7 is a mid, vivid purple. Relative luminance 0.202; OKLCH L 61.2% C 0.200 H 323.2°. Best body text is #000000 at 5.03:1 contrast (WCAG AA passes).

Color values

HEX#BA4FC7
RGBrgb(186, 79, 199)
HSLhsl(294, 52%, 55%)
HSVhsv(294, 60%, 78%)
CMYKcmyk(6.5%, 60.3%, 0%, 22%)
CIE-LABlab(52.01, 59.51, -43.12)
CIE-LCHlch(52.01, 73.49, 324.07°)
OKLaboklab(61.17% 0.1601 -0.1197)
OKLCHoklch(61.17% 0.2 323.2)
XYZxyz(33.3535, 20.1564, 56.1555)
Luminance0.2016 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA4FC7 #5CC74F
analogous
#7E4FC7 #BA4FC7 #C74F98
triadic
#BA4FC7 #C7BA4F #4FC7BA
tetradic
#BA4FC7 #C77E4F #5CC74F #4F98C7
square
#BA4FC7 #C77E4F #5CC74F #4F98C7
split-complementary
#BA4FC7 #98C74F #4FC77E
monochromatic
#6D2676 #9834A4 #BA4FC7 #CC7DD6 #DEACE5

Accessibility & contrast

On white

4.17
#BA4FC7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.03
#BA4FC7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA4FC7
5.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA4FC7#FFFFFF#000000##000000
##BA4FC71.004.175.035.03
#FFFFFF4.171.0021.0021.00
#0000005.0321.001.001.00
##0000005.0321.001.001.00

Color blindness preview

Protanopia (red-blind)
#3874CB
Deuteranopia (green-blind)
#6080C4
Tritanopia (blue-blind)
#BD6184
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #ba4fc7;
/* rgb */ color: rgb(186, 79, 199);
/* oklch */ color: oklch(61.2% 0.200 323.2);
Tailwind
colors: {
  custom: {
    50: '#d287d8',
    500: '#ba4fc7',
    950: '#000000',
  },
}
SCSS
$custom: #ba4fc7;
$custom-light: #d287d8;
$custom-dark: #000000;
JSON
{
  "hex": "#ba4fc7",
  "rgb": {
    "r": 186,
    "g": 79,
    "b": 199
  },
  "hsl": {
    "h": 293.5,
    "s": 51.724,
    "l": 54.51
  },
  "oklch": {
    "l": 0.61166,
    "c": 0.19993,
    "h": 323.2
  },
  "luminance": 0.20155
}

Semantic roles & 50–950 ramp

primary
#BA4FC7
secondary
#A5D2A0
accent
#DB4D5C
background
#FDF8FD
surface
#FAF0FA
border
#D3CBD3
text
#140C14
muted
#837D83

Preview Lab

Preview with #BA4FC7

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

Preview Lab → · Contrast checker → · Palette generator →

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