#522662#522662

#522662 is a dark, moderate purple. Relative luminance 0.041; OKLCH L 35.7% C 0.109 H 316.2°. Best body text is #FFFFFF at 11.59:1 contrast (WCAG AA passes).

Color values

HEX#522662
RGBrgb(82, 38, 98)
HSLhsl(284, 44%, 27%)
HSVhsv(284, 61%, 38%)
CMYKcmyk(16.3%, 61.2%, 0%, 61.6%)
CIE-LABlab(23.88, 31.29, -27.14)
CIE-LCHlch(23.88, 41.42, 319.07°)
OKLaboklab(35.7% 0.0789 -0.0758)
OKLCHoklch(35.7% 0.109 316.2)
XYZxyz(6.3771, 4.0621, 12.0011)
Luminance0.0406 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522662 #366226
analogous
#342662 #522662 #622654
triadic
#522662 #625226 #266252
tetradic
#522662 #623426 #366226 #265462
square
#522662 #623426 #366226 #265462
split-complementary
#522662 #546226 #266234
monochromatic
#120916 #2D1536 #522662 #77378E #9B4AB9

Accessibility & contrast

On white

11.59
#522662 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#522662 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522662
11.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522662#FFFFFF#000000##FFFFFF
##5226621.0011.591.8111.59
#FFFFFF11.591.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#163664
Deuteranopia (green-blind)
#263A60
Tritanopia (blue-blind)
#513040
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #522662;
/* rgb */ color: rgb(82, 38, 98);
/* oklch */ color: oklch(35.7% 0.109 316.2);
Tailwind
colors: {
  custom: {
    50: '#84638f',
    500: '#522662',
    950: '#000000',
  },
}
SCSS
$custom: #522662;
$custom-light: #84638f;
$custom-dark: #000000;
JSON
{
  "hex": "#522662",
  "rgb": {
    "r": 82,
    "g": 38,
    "b": 98
  },
  "hsl": {
    "h": 284,
    "s": 44.118,
    "l": 26.667
  },
  "oklch": {
    "l": 0.35703,
    "c": 0.10946,
    "h": 316.2
  },
  "luminance": 0.04062
}

Semantic roles & 50–950 ramp

primary
#522662
secondary
#61954F
accent
#D45476
background
#F8F6F8
surface
#EFEBF0
border
#CAC6CB
text
#0B050C
muted
#7C7A7D

Preview Lab

Preview with #522662

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

Preview Lab → · Contrast checker → · Palette generator →

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