#BA4FC9#BA4FC9

#BA4FC9 is a mid, highly saturated purple. Relative luminance 0.202; OKLCH L 61.3% C 0.202 H 322.6°. Best body text is #000000 at 5.05:1 contrast (WCAG AA passes).

Color values

HEX#BA4FC9
RGBrgb(186, 79, 201)
HSLhsl(293, 53%, 55%)
HSVhsv(293, 61%, 79%)
CMYKcmyk(7.5%, 60.7%, 0%, 21.2%)
CIE-LABlab(52.12, 59.88, -44.11)
CIE-LCHlch(52.12, 74.37, 323.63°)
OKLaboklab(61.28% 0.1602 -0.1226)
OKLCHoklch(61.28% 0.202 322.6)
XYZxyz(33.5872, 20.2499, 57.3865)
Luminance0.2025 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA4FC9 #5EC94F
analogous
#7D4FC9 #BA4FC9 #C94F9B
triadic
#BA4FC9 #C9BA4F #4FC9BA
tetradic
#BA4FC9 #C97D4F #5EC94F #4F9BC9
square
#BA4FC9 #C97D4F #5EC94F #4F9BC9
split-complementary
#BA4FC9 #9BC94F #4FC97D
monochromatic
#6E2579 #9933A7 #BA4FC9 #CC7ED7 #DFADE6

Accessibility & contrast

On white

4.16
#BA4FC9 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.05
#BA4FC9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA4FC9
5.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA4FC9#FFFFFF#000000##000000
##BA4FC91.004.165.055.05
#FFFFFF4.161.0021.0021.00
#0000005.0521.001.001.00
##0000005.0521.001.001.00

Color blindness preview

Protanopia (red-blind)
#3674CD
Deuteranopia (green-blind)
#5F81C6
Tritanopia (blue-blind)
#BD6185
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #ba4fc9;
/* rgb */ color: rgb(186, 79, 201);
/* oklch */ color: oklch(61.3% 0.202 322.6);
Tailwind
colors: {
  custom: {
    50: '#d287da',
    500: '#ba4fc9',
    950: '#000000',
  },
}
SCSS
$custom: #ba4fc9;
$custom-light: #d287da;
$custom-dark: #000000;
JSON
{
  "hex": "#ba4fc9",
  "rgb": {
    "r": 186,
    "g": 79,
    "b": 201
  },
  "hsl": {
    "h": 292.623,
    "s": 53.043,
    "l": 54.902
  },
  "oklch": {
    "l": 0.61277,
    "c": 0.20173,
    "h": 322.6
  },
  "luminance": 0.20248
}

Semantic roles & 50–950 ramp

primary
#BA4FC9
secondary
#A7D4A0
accent
#DC4B5D
background
#FDF8FD
surface
#FAF0FB
border
#D3CBD4
text
#140C15
muted
#837D83

Preview Lab

Preview with #BA4FC9

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

Preview Lab → · Contrast checker → · Palette generator →

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