HSL(298, 71%, 25%)
Purple — Purple color
Adjust Color
Color Information
Color Name
Purple
Color Family
Purple
Warm / Cool
🔵 Cool
Temperature
6500K
CSS Class
bg-[hsl(298,71%,25%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(298, 71%, 25%) | color: hsl(298, 71%, 25%) | |
| HEX | #6A126D | color: #6A126D | |
| RGB | rgb(106, 18, 109) | color: rgb(106, 18, 109) | |
| CMYK | cmyk(3%, 83%, 0%, 57%) | — | |
| HSV | hsv(298, 83%, 43%) | — | |
| HWB | hwb(298 7% 57%) | color: hwb(298 7% 57%) | |
| OKLCH | oklch(0.3795 0.1586 326.64) | color: oklch(0.3795 0.1586 326.64) | |
| Lab | lab(25.57 48.05 -31.36) | color: lab(25.57 48.05 -31.36) | |
| LCH | lch(25.57 57.38 326.87) | color: lch(25.57 57.38 326.87) |
Color Theory
Accessibility (WCAG)
White text on color
Black text on color
Colored text
Contrast Ratios
AA Normal (4.5:1)
AA Large (3:1)
AAA Normal (7:1)
Best text on this color: white
Color Blindness Simulation
Protanopia (Red-blind)
#444357 — rgb(68, 67, 87)
Deuteranopia (Green-blind)
#495052 — rgb(73, 80, 82)
Tritanopia (Blue-blind)
#664642 — rgb(102, 70, 66)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(298, 71%, 25%);
text
color: hsl(298, 71%, 25%);
border
border: 2px solid hsl(298, 71%, 25%);
gradient light
background: linear-gradient(to right, hsl(298, 71%, 45%), hsl(298, 71%, 25%));
gradient dark
background: linear-gradient(to right, hsl(298, 71%, 25%), hsl(298, 71%, 5%))
hex
background-color: #6A126D;
tailwind
bg-[hsl(298,71%,25%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(298, 71%, 25%, 0.4);
css variable
--color-primary: hsl(298, 71%, 25%);
Related Colors
Use Cases for Purple
Frequently Asked Questions
What are all the color codes for HSL(298, 71%, 25%)?
HEX: #6A126D | RGB: rgb(106, 18, 109) | CMYK: 3%, 83%, 0%, 57% | HSV: 298°, 83%, 43%. Copy any format from the conversion table above.
What colors go well with #6A126D?
The complementary color is HSL(118, 71%, 25%). For a triadic harmony, use hues 298°, 58°, and 178°. For analogous combinations, try hues 268° and 328°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(298, 71%, 25%) in CSS?
As HSL: color: hsl(298, 71%, 25%); — As HEX: color: #6A126D; — As RGB: color: rgb(106, 18, 109); — Tailwind CSS: bg-[hsl(298,71%,25%)] — CSS variable: --color-primary: hsl(298, 71%, 25%);