Skip to content

Han Purple (#5218FA)

The hex code for Han Purple is #5218FA. It is rgb(82, 24, 250) in RGB, hsl(255, 96%, 54%) in HSL, and about cmyk(67%, 90%, 0%, 2%) in CMYK — a mid-tone purple. White text is the more readable choice on this background.

#5218FA
HEX#5218FA
RGBrgb(82, 24, 250)
HSLhsl(255, 96%, 54%)
HSVhsv(255, 90%, 98%)
CMYKcmyk(67%, 90%, 0%, 2%)
OKLCHoklch(48.9% 0.286 279.1)
LABlab(34.66% 65.86 -100.61)
LCHlch(34.66% 120.25 303.21)

Colors Closest to Han Purple

Han Purple is a registered color name. These are the named colors nearest to it, measured as CIE76 distance in CIELAB — a perceptual scale, so the ordering matches what the eye sees rather than how close the raw RGB numbers happen to sit.

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

#5218FA Channel Values

How Han Purple 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 82 · G 24 · B 2508-bit channels as sent to the display
HSLH 255° · S 96% · L 54%Easiest model for building lighter and darker variants
HSVH 255° · S 90% · V 98%Matches the picker in most design tools
CMYKC 67% · M 90% · Y 0% · K 2%Approximate ink mix; confirm with an ICC profile before printing
Luminance7.32:1 vs white · 2.87:1 vs blackWCAG 2.2 relative-luminance contrast ratios

Text Contrast & Accessibility

WCAG 2.2 contrast ratios for text on a Han Purple 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 text7.32:1AA normal AA large AAA normal
TextBlack text2.87:1AA normal AA large AAA normal

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

Colors That Go With Han Purple

Pairings derived from color-wheel relationships. The complementary color sits opposite Han Purple; 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 Han Purple

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 #5218FA.

How Han Purple 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#5218FA
Protanopia#2929FA
Protanomaly#3D23FA
Deuteranopia#3434FA
Deuteranomaly#422BFA
Tritanopia#006464
Tritanomaly#1D50B5
Achromatopsia#565656

Test a full palette in the color blindness simulator.

Using #5218FA in Code

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

CSS custom property--han-purple: #5218FA;
CSS backgroundbackground-color: #5218FA;
Tailwind configcolors: { 'han-purple': '#5218FA' }
SwiftUIColor(red: 0.322, green: 0.094, blue: 0.980)
Android XML<color name="han_purple">#5218FA</color>
SVG fillfill="#5218FA"

More Purple Colors

Han Purple sits in the purplefamily. These are its neighbours across that family's full range, each with its own breakdown.

#5218FA Frequently Asked Questions

What is the hex code for Han Purple?

The hex code for Han Purple is #5218FA. That is rgb(82, 24, 250) in RGB, hsl(255, 96%, 54%) in HSL, and approximately cmyk(67%, 90%, 0%, 2%) in CMYK.

What is the RGB value of #5218FA?

#5218FA is rgb(82, 24, 250) — red 82, green 24, and blue 250 on the 0-255 scale.

What is the CMYK value of #5218FA?

#5218FA converts to approximately cmyk(67%, 90%, 0%, 2%). CMYK output is a mathematical approximation for planning; confirm production print colors with your printer and ICC profile.

Should text on #5218FA be black or white?

White text is the more readable choice. #5218FA scores 7.32:1 against white and 2.87:1 against black, and WCAG 2.2 asks for at least 4.5:1 for normal body text.

Can I write #5218FA as a CSS color keyword?

No. #5218FA 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 blue (#0000FF) at a CIE76 distance of 12.74, which is visibly different.

Open Han Purple in a Tool

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