#522762#522762

#522762 is a dark, moderate purple. Relative luminance 0.041; OKLCH L 35.9% C 0.108 H 316.0°. Best body text is #FFFFFF at 11.50:1 contrast (WCAG AA passes).

Color values

HEX#522762
RGBrgb(82, 39, 98)
HSLhsl(284, 43%, 27%)
HSVhsv(284, 60%, 38%)
CMYKcmyk(16.3%, 60.2%, 0%, 61.6%)
CIE-LABlab(24.09, 30.73, -26.81)
CIE-LCHlch(24.09, 40.78, 318.90°)
OKLaboklab(35.86% 0.0775 -0.0749)
OKLCHoklch(35.86% 0.108 316)
XYZxyz(6.4095, 4.1269, 12.0119)
Luminance0.0413 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522762 #376227
analogous
#352762 #522762 #622755
triadic
#522762 #625227 #276252
tetradic
#522762 #623527 #376227 #275562
square
#522762 #623527 #376227 #275562
split-complementary
#522762 #556227 #276235
monochromatic
#120916 #2D1636 #522762 #77388E #9A4CB8

Accessibility & contrast

On white

11.50
#522762 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#522762 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522762
11.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522762#FFFFFF#000000##FFFFFF
##5227621.0011.501.8311.50
#FFFFFF11.501.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#183764
Deuteranopia (green-blind)
#273B60
Tritanopia (blue-blind)
#513140
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #522762;
/* rgb */ color: rgb(82, 39, 98);
/* oklch */ color: oklch(35.9% 0.108 316.0);
Tailwind
colors: {
  custom: {
    50: '#84638f',
    500: '#522762',
    950: '#000000',
  },
}
SCSS
$custom: #522762;
$custom-light: #84638f;
$custom-dark: #000000;
JSON
{
  "hex": "#522762",
  "rgb": {
    "r": 82,
    "g": 39,
    "b": 98
  },
  "hsl": {
    "h": 283.729,
    "s": 43.066,
    "l": 26.863
  },
  "oklch": {
    "l": 0.35858,
    "c": 0.10772,
    "h": 316
  },
  "luminance": 0.04127
}

Semantic roles & 50–950 ramp

primary
#522762
secondary
#639550
accent
#D35577
background
#F8F6F8
surface
#EFEBF0
border
#CAC6CB
text
#0B050C
muted
#7C7A7D

Preview Lab

Preview with #522762

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

Preview Lab → · Contrast checker → · Palette generator →

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