#52257D

A color in the Purple, Crimson, Magenta family

#52257d is a color in the Purple, Crimson, Magenta family: RGB(82, 37, 125), HSL(271°, 54%, 32%), CMYK(34%, 70%, 0%, 51%). Closest named color: indigo. Contrast is 10.94:1 on white and 1.92:1 on black. See shades, harmonies and color-blindness simulation.

Open in Picker Generate Scheme

Color Codes

HEX#52257d
RGBrgb(82 37 125)
RGB (legacy)rgb(82, 37, 125)
RGB %rgb(32% 15% 49%)
HSLhsl(271 54% 32%)
HSV / HSBhsv(271, 70%, 49%)
HWBhwb(271 15% 51%)
CMYKcmyk(34%, 70%, 0%, 51%)
CIELAB (D50)lab(25.1 34.63 -42.3)
LCHlch(25.1 54.66 309.31)
OKLaboklab(0.3752 0.079 -0.1188)
OKLCHoklch(0.3752 0.1427 303.63)
Decimal5383549

Properties

Color TonePurple, Crimson, Magenta
Closest named colorindigo ΔE 5.2
Closest web-safe color#663366
Hue271°
Saturation (HSL / HSV)54% / 70%
Lightness (HSL)32%
Brightness or Value (HSV)49%
Luminance (Rec.601 / Rec.709)24% / 21%
Relative luminance (WCAG)0.046
Red / Green / Blue82 / 37 / 125

WCAG 2.2 Contrast Ratio

On White (#ffffff)
10.94:1
AA Normal (4.5:1) · PassAA Large (3:1) · PassAAA Normal (7:1) · Pass
On Black (#000000)
1.92:1
AA Normal (4.5:1) · FailAA Large (3:1) · FailAAA Normal (7:1) · Fail
Aa Bb 123

APCA Contrast Lc (reference) — As text on white / black: Lc 94.7 / -7.9 · As background with white / black text: Lc -98.7 / 9.2

Lightness Scale (OKLCH 50–950)

Eleven steps that change only perceived lightness while keeping hue and chroma — ready to use as design-system color tokens.

Tints (mixed with white)

Shades (mixed with black)

Color Harmonies

Color Vision Deficiency Simulation

Estimated appearance of this color for people with color vision deficiencies (Machado 2009).

Similar Named Colors

Use in CSS

:root {
  --color-brand: #52257d;
  --color-brand-oklch: oklch(37.52% 0.1427 303.63);
}
.text { color: var(--color-brand); }
.background { background-color: var(--color-brand); }
.border { border: 1px solid rgb(82 37 125 / 50%); }
/* Tailwind CSS */
<div class="bg-[#52257d] text-[#52257d] border-[#52257d]">