#522B7C#522B7C

#522B7C is a dark, vivid violet. Relative luminance 0.050; OKLCH L 38.3% C 0.133 H 302.7°. Best body text is #FFFFFF at 10.52:1 contrast (WCAG AA passes).

Color values

HEX#522B7C
RGBrgb(82, 43, 124)
HSLhsl(269, 49%, 33%)
HSVhsv(269, 65%, 49%)
CMYKcmyk(33.9%, 65.3%, 0%, 51.4%)
CIE-LABlab(26.67, 35.03, -39.37)
CIE-LCHlch(26.67, 52.70, 311.66°)
OKLaboklab(38.3% 0.0718 -0.1117)
OKLCHoklch(38.3% 0.133 302.7)
XYZxyz(7.9808, 4.9768, 19.6050)
Luminance0.0498 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522B7C #557C2B
analogous
#2B2C7C #522B7C #7A2B7C
triadic
#522B7C #7C522B #2B7C52
tetradic
#522B7C #7C2B2C #557C2B #2B7C7A
square
#522B7C #7C2B2C #557C2B #2B7C7A
split-complementary
#522B7C #7C7A2B #2C7C2B
monochromatic
#160B21 #341B4F #522B7C #703BA9 #8F5BC6

Accessibility & contrast

On white

10.52
#522B7C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.00
#522B7C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522B7C
10.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522B7C#FFFFFF#000000##FFFFFF
##522B7C1.0010.522.0010.52
#FFFFFF10.521.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E7F
Deuteranopia (green-blind)
#123F7A
Tritanopia (blue-blind)
#4A3C4F
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #522b7c;
/* rgb */ color: rgb(82, 43, 124);
/* oklch */ color: oklch(38.3% 0.133 302.7);
Tailwind
colors: {
  custom: {
    50: '#8667a2',
    500: '#522b7c',
    950: '#000000',
  },
}
SCSS
$custom: #522b7c;
$custom-light: #8667a2;
$custom-dark: #000000;
JSON
{
  "hex": "#522b7c",
  "rgb": {
    "r": 82,
    "g": 43,
    "b": 124
  },
  "hsl": {
    "h": 268.889,
    "s": 48.503,
    "l": 32.745
  },
  "oklch": {
    "l": 0.38297,
    "c": 0.13277,
    "h": 302.7
  },
  "luminance": 0.04977
}

Semantic roles & 50–950 ramp

primary
#522B7C
secondary
#83AC57
accent
#D85096
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0B060F
muted
#7C7A7F

Preview Lab

Preview with #522B7C

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

Preview Lab → · Contrast checker → · Palette generator →

#522B7C Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva