#522982#522982

#522982 is a dark, vivid violet. Relative luminance 0.050; OKLCH L 38.5% C 0.143 H 301.0°. Best body text is #FFFFFF at 10.51:1 contrast (WCAG AA passes).

Color values

HEX#522982
RGBrgb(82, 41, 130)
HSLhsl(268, 52%, 34%)
HSVhsv(268, 68%, 51%)
CMYKcmyk(36.9%, 68.5%, 0%, 49%)
CIE-LABlab(26.71, 37.74, -43.08)
CIE-LCHlch(26.71, 57.27, 311.22°)
OKLaboklab(38.47% 0.0737 -0.1226)
OKLCHoklch(38.47% 0.143 301)
XYZxyz(8.3009, 4.9914, 21.6409)
Luminance0.0499 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522982 #598229
analogous
#292C82 #522982 #7E2982
triadic
#522982 #825229 #298252
tetradic
#522982 #82292C #598229 #29827E
square
#522982 #82292C #598229 #29827E
split-complementary
#522982 #827E29 #2C8229
monochromatic
#170C25 #351A53 #522982 #6F38B1 #8E5ACB

Accessibility & contrast

On white

10.51
#522982 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.00
#522982 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522982
10.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522982#FFFFFF#000000##FFFFFF
##5229821.0010.512.0010.51
#FFFFFF10.511.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F85
Deuteranopia (green-blind)
#003F80
Tritanopia (blue-blind)
#483D52
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #522982;
/* rgb */ color: rgb(82, 41, 130);
/* oklch */ color: oklch(38.5% 0.143 301.0);
Tailwind
colors: {
  custom: {
    50: '#8766a7',
    500: '#522982',
    950: '#000000',
  },
}
SCSS
$custom: #522982;
$custom-light: #8766a7;
$custom-dark: #000000;
JSON
{
  "hex": "#522982",
  "rgb": {
    "r": 82,
    "g": 41,
    "b": 130
  },
  "hsl": {
    "h": 267.64,
    "s": 52.047,
    "l": 33.529
  },
  "oklch": {
    "l": 0.38468,
    "c": 0.14302,
    "h": 301
  },
  "luminance": 0.04991
}

Semantic roles & 50–950 ramp

primary
#522982
secondary
#87B056
accent
#DB4C9A
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C060F
muted
#7D7A7F

Preview Lab

Preview with #522982

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

Preview Lab → · Contrast checker → · Palette generator →

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