#522366#522366

#522366 is a dark, moderate purple. Relative luminance 0.040; OKLCH L 35.5% C 0.119 H 314.4°. Best body text is #FFFFFF at 11.73:1 contrast (WCAG AA passes).

Color values

HEX#522366
RGBrgb(82, 35, 102)
HSLhsl(282, 49%, 27%)
HSVhsv(282, 66%, 40%)
CMYKcmyk(19.6%, 65.7%, 0%, 60%)
CIE-LABlab(23.52, 33.89, -30.31)
CIE-LCHlch(23.52, 45.47, 318.18°)
OKLaboklab(35.53% 0.0833 -0.0851)
OKLCHoklch(35.53% 0.119 314.4)
XYZxyz(6.4786, 3.9554, 12.9900)
Luminance0.0396 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522366 #376623
analogous
#312366 #522366 #662359
triadic
#522366 #665223 #236652
tetradic
#522366 #663123 #376623 #235966
square
#522366 #663123 #376623 #235966
split-complementary
#522366 #596623 #236631
monochromatic
#120817 #2D1338 #522366 #773394 #9A44BF

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##522366#FFFFFF#000000##FFFFFF
##5223661.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)
#0B3568
Deuteranopia (green-blind)
#213964
Tritanopia (blue-blind)
#502F41
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #522366;
/* rgb */ color: rgb(82, 35, 102);
/* oklch */ color: oklch(35.5% 0.119 314.4);
Tailwind
colors: {
  custom: {
    50: '#856192',
    500: '#522366',
    950: '#000000',
  },
}
SCSS
$custom: #522366;
$custom-light: #856192;
$custom-dark: #000000;
JSON
{
  "hex": "#522366",
  "rgb": {
    "r": 82,
    "g": 35,
    "b": 102
  },
  "hsl": {
    "h": 282.09,
    "s": 48.905,
    "l": 26.863
  },
  "oklch": {
    "l": 0.3553,
    "c": 0.11906,
    "h": 314.4
  },
  "luminance": 0.03955
}

Semantic roles & 50–950 ramp

primary
#522366
secondary
#639A4B
accent
#D84F78
background
#F8F5F9
surface
#EFEAF1
border
#CAC6CB
text
#0B050D
muted
#7C797E

Preview Lab

Preview with #522366

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

Preview Lab → · Contrast checker → · Palette generator →

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