#522657#522657

#522657 is a dark, moderate purple. Relative luminance 0.039; OKLCH L 35.0% C 0.097 H 323.4°. Best body text is #FFFFFF at 11.84:1 contrast (WCAG AA passes).

Color values

HEX#522657
RGBrgb(82, 38, 87)
HSLhsl(294, 39%, 25%)
HSVhsv(294, 56%, 34%)
CMYKcmyk(5.7%, 56.3%, 0%, 65.9%)
CIE-LABlab(23.23, 28.79, -20.91)
CIE-LCHlch(23.23, 35.59, 324.01°)
OKLaboklab(35.02% 0.0778 -0.0578)
OKLCHoklch(35.02% 0.097 323.4)
XYZxyz(5.8929, 3.8685, 9.4513)
Luminance0.0387 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522657 #2B5726
analogous
#3A2657 #522657 #572644
triadic
#522657 #575226 #265752
tetradic
#522657 #573A26 #2B5726 #264457
square
#522657 #573A26 #2B5726 #264457
split-complementary
#522657 #445726 #26573A
monochromatic
#140915 #2A132C #522657 #7A3982 #A24BAC

Accessibility & contrast

On white

11.84
#522657 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#522657 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522657
11.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522657#FFFFFF#000000##FFFFFF
##5226571.0011.841.7711.84
#FFFFFF11.841.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F3459
Deuteranopia (green-blind)
#2D3956
Tritanopia (blue-blind)
#532C3A
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #522657;
/* rgb */ color: rgb(82, 38, 87);
/* oklch */ color: oklch(35.0% 0.097 323.4);
Tailwind
colors: {
  custom: {
    50: '#846286',
    500: '#522657',
    950: '#000000',
  },
}
SCSS
$custom: #522657;
$custom-light: #846286;
$custom-dark: #000000;
JSON
{
  "hex": "#522657",
  "rgb": {
    "r": 82,
    "g": 38,
    "b": 87
  },
  "hsl": {
    "h": 293.878,
    "s": 39.2,
    "l": 24.51
  },
  "oklch": {
    "l": 0.35021,
    "c": 0.09693,
    "h": 323.4
  },
  "luminance": 0.03868
}

Semantic roles & 50–950 ramp

primary
#522657
secondary
#558A4F
accent
#CF5965
background
#F8F5F8
surface
#EFEAEF
border
#CAC6CA
text
#0B050B
muted
#7C797C

Preview Lab

Preview with #522657

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

Preview Lab → · Contrast checker → · Palette generator →

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