RGB to HEX: #A800B7
Also known as: Tailwind fuchsia-700
Result
rgb(168 0 183) → #A800B7
Values are shown at full precision, so converting back gives exactly #a800b7. The rounded form is what you normally paste into CSS.
Step-by-step math
Every number below is computed from the input, nothing is looked up.
1. base 10 → base 16
R = 168 = 10×16 + 8 → A8 G = 0 = 0×16 + 0 → 00 B = 183 = 11×16 + 7 → B7
2. pairs → HEX
A8 00 B7 → #A800B7
All formats
- HEX
- #a800b7
- RGB
- rgb(168 0 183)
- RGB (legacy)
- rgb(168, 0, 183)
- HSL
- hsl(295.08 100.00% 35.88%) → hsl(295 100% 36%)
- HWB
- hwb(295 0% 28%)
- OKLCH
- oklch(0.523 0.246 323.8) · oklch(52.3% 0.246 323.8)
- OKLab
- oklab(0.523 0.199 -0.145)
- Lab (D50)
- lab(40.55 70.13 -51.86)
- LCH (D50)
- lch(40.55 87.22 323.52)
- Display P3
- color(display-p3 0.6030 0.1177 0.6928)
- Linear sRGB
- color(srgb-linear 0.3916 0.0000 0.4735)
Gamut: sRGB and Display P3
#A800B7 is a hex color, so it sits inside sRGB and therefore inside Display P3. At this lightness and hue, sRGB reaches chroma 0.246 and Display P3 reaches 0.267; this color uses 100% of the sRGB chroma available.
CSS snippets
.element {
color: #a800b7;
color: rgb(168 0 183);
color: hsl(295 100% 36%);
color: oklch(0.523 0.246 323.8);
}
/* Tailwind CSS v4 */
@theme {
--color-brand: oklch(0.523 0.246 323.8);
}
/* arbitrary values */
class="text-[#a800b7] bg-[oklch(0.523_0.246_323.8)]"
/* wide-gamut screens */
@media (color-gamut: p3) {
.element { color: color(display-p3 0.6030 0.1177 0.6928); }
}
/* relative color syntax: 10% darker */
.element-dark { color: oklch(from #a800b7 calc(l - 0.1) c h); }Nearby colors
Closest colors in the Tailwind and CSS named palettes (OKLab distance).
- v3 fuchsia-700#A21CAF
- darkorchid#9932CC
- darkviolet#9400D3
- v3 fuchsia-600#C026D3
- fuchsia-800#8A0194
- fuchsia-600#C800DE
- darkmagenta#8B008B
- v3 fuchsia-800#86198F
Lighter and darker, same hue and chroma
- #BC2ACB · oklch(0.583 0.246 323.8) · ΔL +0.06
- #9400A3 · oklch(0.463 0.246 323.8) · ΔL −0.06
Open in the studio
Other converters for this color
Guides: What is OKLCH?