#BA4FC8#BA4FC8

#BA4FC8 is a mid, highly saturated purple. Relative luminance 0.202; OKLCH L 61.2% C 0.201 H 322.9°. Best body text is #000000 at 5.04:1 contrast (WCAG AA passes).

Color values

HEX#BA4FC8
RGBrgb(186, 79, 200)
HSLhsl(293, 52%, 55%)
HSVhsv(293, 61%, 78%)
CMYKcmyk(7%, 60.5%, 0%, 21.6%)
CIE-LABlab(52.07, 59.69, -43.62)
CIE-LCHlch(52.07, 73.93, 323.85°)
OKLaboklab(61.22% 0.1602 -0.1211)
OKLCHoklch(61.22% 0.201 322.9)
XYZxyz(33.4700, 20.2030, 56.7690)
Luminance0.2020 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA4FC8 #5DC84F
analogous
#7E4FC8 #BA4FC8 #C84F99
triadic
#BA4FC8 #C8BA4F #4FC8BA
tetradic
#BA4FC8 #C87E4F #5DC84F #4F99C8
square
#BA4FC8 #C87E4F #5DC84F #4F99C8
split-complementary
#BA4FC8 #99C84F #4FC87E
monochromatic
#6E2577 #9934A6 #BA4FC8 #CC7ED7 #DFACE5

Accessibility & contrast

On white

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

On black

5.04
#BA4FC8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA4FC8
5.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA4FC8#FFFFFF#000000##000000
##BA4FC81.004.175.045.04
#FFFFFF4.171.0021.0021.00
#0000005.0421.001.001.00
##0000005.0421.001.001.00

Color blindness preview

Protanopia (red-blind)
#3774CC
Deuteranopia (green-blind)
#6080C5
Tritanopia (blue-blind)
#BD6184
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #ba4fc8;
/* rgb */ color: rgb(186, 79, 200);
/* oklch */ color: oklch(61.2% 0.201 322.9);
Tailwind
colors: {
  custom: {
    50: '#d287d9',
    500: '#ba4fc8',
    950: '#000000',
  },
}
SCSS
$custom: #ba4fc8;
$custom-light: #d287d9;
$custom-dark: #000000;
JSON
{
  "hex": "#ba4fc8",
  "rgb": {
    "r": 186,
    "g": 79,
    "b": 200
  },
  "hsl": {
    "h": 293.058,
    "s": 52.381,
    "l": 54.706
  },
  "oklch": {
    "l": 0.61221,
    "c": 0.20083,
    "h": 322.9
  },
  "luminance": 0.20201
}

Semantic roles & 50–950 ramp

primary
#BA4FC8
secondary
#A6D3A0
accent
#DC4C5D
background
#FDF8FD
surface
#FAF0FA
border
#D3CBD3
text
#140C15
muted
#837D83

Preview Lab

Preview with #BA4FC8

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

Preview Lab → · Contrast checker → · Palette generator →

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