#522155#522155

#522155 is a dark, moderate purple. Relative luminance 0.035; OKLCH L 34.1% C 0.104 H 325.3°. Best body text is #FFFFFF at 12.30:1 contrast (WCAG AA passes).

Color values

HEX#522155
RGBrgb(82, 33, 85)
HSLhsl(297, 44%, 23%)
HSVhsv(297, 61%, 33%)
CMYKcmyk(3.5%, 61.2%, 0%, 66.7%)
CIE-LABlab(22.08, 31.15, -21.39)
CIE-LCHlch(22.08, 37.79, 325.52°)
OKLaboklab(34.14% 0.0853 -0.0591)
OKLCHoklch(34.14% 0.104 325.3)
XYZxyz(5.6631, 3.5377, 8.9771)
Luminance0.0354 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522155 #245521
analogous
#382155 #522155 #55213E
triadic
#522155 #555221 #215552
tetradic
#522155 #553821 #245521 #213E55
square
#522155 #553821 #245521 #213E55
split-complementary
#522155 #3E5521 #215538
monochromatic
#150916 #271029 #522155 #7D3281 #A743AD

Accessibility & contrast

On white

12.30
#522155 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#522155 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522155
12.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522155#FFFFFF#000000##FFFFFF
##5221551.0012.301.7112.30
#FFFFFF12.301.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A3157
Deuteranopia (green-blind)
#2A3754
Tritanopia (blue-blind)
#542837
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #522155;
/* rgb */ color: rgb(82, 33, 85);
/* oklch */ color: oklch(34.1% 0.104 325.3);
Tailwind
colors: {
  custom: {
    50: '#845f85',
    500: '#522155',
    950: '#000000',
  },
}
SCSS
$custom: #522155;
$custom-light: #845f85;
$custom-dark: #000000;
JSON
{
  "hex": "#522155",
  "rgb": {
    "r": 82,
    "g": 33,
    "b": 85
  },
  "hsl": {
    "h": 296.538,
    "s": 44.068,
    "l": 23.137
  },
  "oklch": {
    "l": 0.34139,
    "c": 0.10377,
    "h": 325.3
  },
  "luminance": 0.03537
}

Semantic roles & 50–950 ramp

primary
#522155
secondary
#4C8949
accent
#D4545B
background
#F8F5F8
surface
#EFE9EF
border
#CAC5CA
text
#0B050B
muted
#7C797C

Preview Lab

Preview with #522155

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#522155 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva