#522758#522758

#522758 is a dark, moderate purple. Relative luminance 0.039; OKLCH L 35.2% C 0.096 H 322.6°. Best body text is #FFFFFF at 11.73:1 contrast (WCAG AA passes).

Color values

HEX#522758
RGBrgb(82, 39, 88)
HSLhsl(293, 39%, 25%)
HSVhsv(293, 56%, 35%)
CMYKcmyk(6.8%, 55.7%, 0%, 65.5%)
CIE-LABlab(23.50, 28.44, -21.15)
CIE-LCHlch(23.50, 35.44, 323.36°)
OKLaboklab(35.24% 0.0764 -0.0584)
OKLCHoklch(35.24% 0.096 322.6)
XYZxyz(5.9665, 3.9497, 9.6787)
Luminance0.0395 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522758 #2D5827
analogous
#392758 #522758 #582746
triadic
#522758 #585227 #275852
tetradic
#522758 #583927 #2D5827 #274658
square
#522758 #583927 #2D5827 #274658
split-complementary
#522758 #465827 #275839
monochromatic
#140915 #2A142E #522758 #7A3A82 #A14DAD

Accessibility & contrast

On white

11.73
#522758 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#522758 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522758
11.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522758#FFFFFF#000000##FFFFFF
##5227581.0011.731.7911.73
#FFFFFF11.731.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#20355A
Deuteranopia (green-blind)
#2D3A57
Tritanopia (blue-blind)
#532D3B
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #522758;
/* rgb */ color: rgb(82, 39, 88);
/* oklch */ color: oklch(35.2% 0.096 322.6);
Tailwind
colors: {
  custom: {
    50: '#846387',
    500: '#522758',
    950: '#000000',
  },
}
SCSS
$custom: #522758;
$custom-light: #846387;
$custom-dark: #000000;
JSON
{
  "hex": "#522758",
  "rgb": {
    "r": 82,
    "g": 39,
    "b": 88
  },
  "hsl": {
    "h": 292.653,
    "s": 38.583,
    "l": 24.902
  },
  "oklch": {
    "l": 0.35241,
    "c": 0.09619,
    "h": 322.6
  },
  "luminance": 0.03949
}

Semantic roles & 50–950 ramp

primary
#522758
secondary
#578B50
accent
#CF5968
background
#F8F6F8
surface
#EFEBEF
border
#CAC6CA
text
#0B050B
muted
#7C7A7C

Preview Lab

Preview with #522758

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

Preview Lab → · Contrast checker → · Palette generator →

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