Skip to content

#BA04F6 Color

#BA04F6 is rgb(186, 4, 246) in RGB, hsl(285, 97%, 49%) in HSL, and about cmyk(24%, 98%, 0%, 4%) in CMYK. It has no registered color name of its own — the closest is Electric Purple (#BF00FF), very hard to tell apart at ΔE 3.86. White text is the more readable choice on this background.

#BA04F6
HEX#BA04F6
RGBrgb(186, 4, 246)
HSLhsl(285, 97%, 49%)
HSVhsv(285, 98%, 96%)
CMYKcmyk(24%, 98%, 0%, 4%)
OKLCHoklch(59.6% 0.295 313.4)
LABlab(47.75% 80.66 -76.21)
LCHlch(47.75% 110.97 316.62)

What #BA04F6 Is Called

Most hex codes have no name: there are 16.7 million of them and a few thousand registered names. These are the named colors nearest to #BA04F6, ordered by CIE76 distance in CIELAB. Anything under about ΔE 2 is a difference most people cannot see.

Browse the full index of named colors A-Z or every purple in the library.

#BA04F6 Channel Values

How #BA04F6 breaks down in each color model. Hue is measured in degrees around the color wheel; saturation, lightness, and the CMYK inks are percentages.

ModelChannelsNotes
RGBR 186 · G 4 · B 2468-bit channels as sent to the display
HSLH 285° · S 97% · L 49%Easiest model for building lighter and darker variants
HSVH 285° · S 98% · V 96%Matches the picker in most design tools
CMYKC 24% · M 98% · Y 0% · K 4%Approximate ink mix; confirm with an ICC profile before printing
Luminance4.73:1 vs white · 4.44:1 vs blackWCAG 2.2 relative-luminance contrast ratios

Text Contrast & Accessibility

WCAG 2.2 contrast ratios for text on a #BA04F6 background. AA requires 4.5:1 for normal text and 3:1 for large text; AAA requires 7:1. Contrast is one check, not a full accessibility review.

TextWhite text4.73:1AA normal AA large AAA normal
Fails AABlack text4.44:1AA normal AA large AAA normal

Need a specific ratio against another background? Open #BA04F6 in the contrast checker.

Colors That Go With #BA04F6

Pairings derived from color-wheel relationships. The complementary color sits opposite #BA04F6; analogous colors sit beside it; triadic and split-complementary sets spread evenly around the wheel. Select any swatch for its own breakdown.

Base
Complementary
Analogous
Analogous
Triadic
Triadic
Split comp.
Split comp.

Tints & Shades of #BA04F6

Lighter tints and darker shades built by moving the lightness channel while holding hue and saturation, which is what you want for hover states, backgrounds, and text variants.

Tints

Shades

Want a full 50-950 ramp with semantic roles? Generate design tokens from #BA04F6.

How #BA04F6 Looks with Color Vision Deficiency

Simulated with the Viénot, Brettel & Mollon LMS projection model. Anomalous types are rendered as partial versions of the matching dichromacy, which is an approximation rather than a per-person clinical model.

Typical#BA04F6
Protanopia#5252F6
Protanomaly#8840F6
Deuteranopia#7070F4
Deuteranomaly#9458F5
Tritanopia#A56060
Tritanomaly#AE4BB1
Achromatopsia#737373

Test a full palette in the color blindness simulator.

Using #BA04F6 in Code

Copy-ready declarations for the places this color usually ends up.

CSS custom property--color-ba04f6: #BA04F6;
CSS backgroundbackground-color: #BA04F6;
Tailwind configcolors: { 'color-ba04f6': '#BA04F6' }
SwiftUIColor(red: 0.729, green: 0.016, blue: 0.965)
Android XML<color name="color_ba04f6">#BA04F6</color>
SVG fillfill="#BA04F6"

More Purple Colors

#BA04F6 sits in the purple family. These are its neighbours across that family's full range, each with its own breakdown.

#BA04F6 Frequently Asked Questions

What color is #BA04F6?

#BA04F6 is a mid-tone purple — rgb(186, 4, 246) in RGB and hsl(285, 97%, 49%) in HSL. It carries no registered color name of its own; the closest named color is Electric Purple (#BF00FF), which is very hard to tell apart at a CIE76 distance of 3.86.

What is the RGB value of #BA04F6?

#BA04F6 is rgb(186, 4, 246) — red 186, green 4, and blue 246 on the 0-255 scale.

What is the CMYK value of #BA04F6?

#BA04F6 converts to approximately cmyk(24%, 98%, 0%, 4%). CMYK output is a mathematical approximation for planning; confirm production print colors with your printer and ICC profile.

Should text on #BA04F6 be black or white?

White text is the more readable choice. #BA04F6 scores 4.73:1 against white and 4.44:1 against black, and WCAG 2.2 asks for at least 4.5:1 for normal body text.

Can I write #BA04F6 as a CSS color keyword?

No. #BA04F6 is not one of the CSS color keywords, so it has to be written as a hex, rgb() or hsl() value. The closest keyword is darkviolet (#9400D3) at a CIE76 distance of 14.48, which is visibly different.

Open #BA04F6 in a Tool

Keep exploring: every purple in the color library, the guide to shades of purple, or the full color library.