#52257A

A color in the Purple, Crimson, Magenta family

#52257a is a color in the Purple, Crimson, Magenta family: RGB(82, 37, 122), HSL(272°, 53%, 31%), CMYK(33%, 70%, 0%, 52%). Closest named color: indigo. Contrast is 11.03:1 on white and 1.9:1 on black. See shades, harmonies and color-blindness simulation.

Open in Picker Generate Scheme

Color Codes

HEX#52257a
RGBrgb(82 37 122)
RGB (legacy)rgb(82, 37, 122)
RGB %rgb(32% 15% 48%)
HSLhsl(272 53% 31%)
HSV / HSBhsv(272, 70%, 48%)
HWBhwb(272 15% 52%)
CMYKcmyk(33%, 70%, 0%, 52%)
CIELAB (D50)lab(24.9 34.02 -40.72)
LCHlch(24.9 53.06 309.88)
OKLaboklab(0.3728 0.0794 -0.1143)
OKLCHoklch(0.3728 0.1392 304.79)
Decimal5383546

Properties

Color TonePurple, Crimson, Magenta
Closest named colorindigo ΔE 5.3
Closest web-safe color#663366
Hue272°
Saturation (HSL / HSV)53% / 70%
Lightness (HSL)31%
Brightness or Value (HSV)48%
Luminance (Rec.601 / Rec.709)24% / 21%
Relative luminance (WCAG)0.0452
Red / Green / Blue82 / 37 / 122

WCAG 2.2 Contrast Ratio

On White (#ffffff)
11.03:1
AA Normal (4.5:1) · PassAA Large (3:1) · PassAAA Normal (7:1) · Pass
On Black (#000000)
1.90: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.9 / -7.7 · As background with white / black text: Lc -98.8 / 9

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: #52257a;
  --color-brand-oklch: oklch(37.28% 0.1392 304.79);
}
.text { color: var(--color-brand); }
.background { background-color: var(--color-brand); }
.border { border: 1px solid rgb(82 37 122 / 50%); }
/* Tailwind CSS */
<div class="bg-[#52257a] text-[#52257a] border-[#52257a]">