#522261#522261

#522261 is a dark, moderate purple. Relative luminance 0.038; OKLCH L 35.0% C 0.115 H 317.4°. Best body text is #FFFFFF at 11.93:1 contrast (WCAG AA passes).

Color values

HEX#522261
RGBrgb(82, 34, 97)
HSLhsl(286, 48%, 26%)
HSVhsv(286, 65%, 38%)
CMYKcmyk(15.5%, 64.9%, 0%, 62%)
CIE-LABlab(23.00, 33.26, -27.87)
CIE-LCHlch(23.00, 43.39, 320.03°)
OKLaboklab(35.05% 0.0846 -0.0779)
OKLCHoklch(35.05% 0.115 317.4)
XYZxyz(6.2091, 3.8012, 11.7136)
Luminance0.0380 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522261 #316122
analogous
#322261 #522261 #612250
triadic
#522261 #615222 #226152
tetradic
#522261 #613222 #316122 #225061
square
#522261 #613222 #316122 #225061
split-complementary
#522261 #506122 #226132
monochromatic
#130817 #2C1234 #522261 #78328E #9F42BC

Accessibility & contrast

On white

11.93
#522261 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#522261 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522261
11.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522261#FFFFFF#000000##FFFFFF
##5222611.0011.931.7611.93
#FFFFFF11.931.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#103463
Deuteranopia (green-blind)
#24385F
Tritanopia (blue-blind)
#522D3E
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #522261;
/* rgb */ color: rgb(82, 34, 97);
/* oklch */ color: oklch(35.0% 0.115 317.4);
Tailwind
colors: {
  custom: {
    50: '#85608e',
    500: '#522261',
    950: '#000000',
  },
}
SCSS
$custom: #522261;
$custom-light: #85608e;
$custom-dark: #000000;
JSON
{
  "hex": "#522261",
  "rgb": {
    "r": 82,
    "g": 34,
    "b": 97
  },
  "hsl": {
    "h": 285.714,
    "s": 48.092,
    "l": 25.686
  },
  "oklch": {
    "l": 0.35047,
    "c": 0.11506,
    "h": 317.4
  },
  "luminance": 0.03801
}

Semantic roles & 50–950 ramp

primary
#522261
secondary
#5C954A
accent
#D85070
background
#F8F5F8
surface
#EFEAF0
border
#CAC6CB
text
#0B050C
muted
#7C797D

Preview Lab

Preview with #522261

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

Preview Lab → · Contrast checker → · Palette generator →

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