#522962#522962

#522962 is a dark, moderate purple. Relative luminance 0.043; OKLCH L 36.2% C 0.104 H 315.6°. Best body text is #FFFFFF at 11.34:1 contrast (WCAG AA passes).

Color values

HEX#522962
RGBrgb(82, 41, 98)
HSLhsl(283, 41%, 27%)
HSVhsv(283, 58%, 38%)
CMYKcmyk(16.3%, 58.2%, 0%, 61.6%)
CIE-LABlab(24.52, 29.58, -26.12)
CIE-LCHlch(24.52, 39.46, 318.55°)
OKLaboklab(36.18% 0.0745 -0.0729)
OKLCHoklch(36.18% 0.104 315.6)
XYZxyz(6.4769, 4.2618, 12.0343)
Luminance0.0426 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522962 #396229
analogous
#362962 #522962 #622956
triadic
#522962 #625229 #296252
tetradic
#522962 #623629 #396229 #295662
square
#522962 #623629 #396229 #295662
split-complementary
#522962 #566229 #296236
monochromatic
#120916 #2E1737 #522962 #763B8D #9950B6

Accessibility & contrast

On white

11.34
#522962 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#522962 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522962
11.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522962#FFFFFF#000000##FFFFFF
##5229621.0011.341.8511.34
#FFFFFF11.341.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B3864
Deuteranopia (green-blind)
#293B61
Tritanopia (blue-blind)
#513241
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #522962;
/* rgb */ color: rgb(82, 41, 98);
/* oklch */ color: oklch(36.2% 0.104 315.6);
Tailwind
colors: {
  custom: {
    50: '#84658f',
    500: '#522962',
    950: '#000000',
  },
}
SCSS
$custom: #522962;
$custom-light: #84658f;
$custom-dark: #000000;
JSON
{
  "hex": "#522962",
  "rgb": {
    "r": 82,
    "g": 41,
    "b": 98
  },
  "hsl": {
    "h": 283.158,
    "s": 41.007,
    "l": 27.255
  },
  "oklch": {
    "l": 0.36175,
    "c": 0.10419,
    "h": 315.6
  },
  "luminance": 0.04262
}

Semantic roles & 50–950 ramp

primary
#522962
secondary
#659552
accent
#D15779
background
#F8F6F8
surface
#EFEBF0
border
#CAC6CB
text
#0B060C
muted
#7C7A7D

Preview Lab

Preview with #522962

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

Preview Lab → · Contrast checker → · Palette generator →

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