#522658#522658

#522658 is a dark, moderate purple. Relative luminance 0.039; OKLCH L 35.1% C 0.098 H 322.7°. Best body text is #FFFFFF at 11.82:1 contrast (WCAG AA passes).

Color values

HEX#522658
RGBrgb(82, 38, 88)
HSLhsl(293, 40%, 25%)
HSVhsv(293, 57%, 35%)
CMYKcmyk(6.8%, 56.8%, 0%, 65.5%)
CIE-LABlab(23.29, 29.01, -21.49)
CIE-LCHlch(23.29, 36.10, 323.47°)
OKLaboklab(35.08% 0.078 -0.0594)
OKLCHoklch(35.08% 0.098 322.7)
XYZxyz(5.9341, 3.8849, 9.6679)
Luminance0.0389 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522658 #2C5826
analogous
#392658 #522658 #582645
triadic
#522658 #585226 #265852
tetradic
#522658 #583926 #2C5826 #264558
square
#522658 #583926 #2C5826 #264558
split-complementary
#522658 #455826 #265839
monochromatic
#140915 #2A142D #522658 #7A3883 #A24BAD

Accessibility & contrast

On white

11.82
#522658 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#522658 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522658
11.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522658#FFFFFF#000000##FFFFFF
##5226581.0011.821.7811.82
#FFFFFF11.821.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E345A
Deuteranopia (green-blind)
#2C3957
Tritanopia (blue-blind)
#532D3B
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #522658;
/* rgb */ color: rgb(82, 38, 88);
/* oklch */ color: oklch(35.1% 0.098 322.7);
Tailwind
colors: {
  custom: {
    50: '#846287',
    500: '#522658',
    950: '#000000',
  },
}
SCSS
$custom: #522658;
$custom-light: #846287;
$custom-dark: #000000;
JSON
{
  "hex": "#522658",
  "rgb": {
    "r": 82,
    "g": 38,
    "b": 88
  },
  "hsl": {
    "h": 292.8,
    "s": 39.683,
    "l": 24.706
  },
  "oklch": {
    "l": 0.3508,
    "c": 0.09804,
    "h": 322.7
  },
  "luminance": 0.03885
}

Semantic roles & 50–950 ramp

primary
#522658
secondary
#568B4F
accent
#D05867
background
#F8F5F8
surface
#EFEAEF
border
#CAC6CA
text
#0B050B
muted
#7C797C

Preview Lab

Preview with #522658

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

Preview Lab → · Contrast checker → · Palette generator →

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