#522B7D#522B7D

#522B7D is a dark, vivid violet. Relative luminance 0.050; OKLCH L 38.4% C 0.134 H 302.4°. Best body text is #FFFFFF at 10.50:1 contrast (WCAG AA passes).

Color values

HEX#522B7D
RGBrgb(82, 43, 125)
HSLhsl(269, 49%, 33%)
HSVhsv(269, 66%, 49%)
CMYKcmyk(34.4%, 65.6%, 0%, 51%)
CIE-LABlab(26.74, 35.30, -39.88)
CIE-LCHlch(26.74, 53.26, 311.51°)
OKLaboklab(38.37% 0.0717 -0.1132)
OKLCHoklch(38.37% 0.134 302.4)
XYZxyz(8.0444, 5.0022, 19.9398)
Luminance0.0500 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522B7D #567D2B
analogous
#2B2D7D #522B7D #7B2B7D
triadic
#522B7D #7D522B #2B7D52
tetradic
#522B7D #7D2B2D #567D2B #2B7D7B
square
#522B7D #7D2B2D #567D2B #2B7D7B
split-complementary
#522B7D #7D7B2B #2D7D2B
monochromatic
#160C22 #341B4F #522B7D #703BAB #8F5CC7

Accessibility & contrast

On white

10.50
#522B7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #522B7D
10.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522B7D#FFFFFF#000000##FFFFFF
##522B7D1.0010.502.0010.50
#FFFFFF10.501.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F80
Deuteranopia (green-blind)
#103F7B
Tritanopia (blue-blind)
#493D50
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #522b7d;
/* rgb */ color: rgb(82, 43, 125);
/* oklch */ color: oklch(38.4% 0.134 302.4);
Tailwind
colors: {
  custom: {
    50: '#8667a3',
    500: '#522b7d',
    950: '#000000',
  },
}
SCSS
$custom: #522b7d;
$custom-light: #8667a3;
$custom-dark: #000000;
JSON
{
  "hex": "#522b7d",
  "rgb": {
    "r": 82,
    "g": 43,
    "b": 125
  },
  "hsl": {
    "h": 268.537,
    "s": 48.81,
    "l": 32.941
  },
  "oklch": {
    "l": 0.38372,
    "c": 0.13401,
    "h": 302.4
  },
  "luminance": 0.05002
}

Semantic roles & 50–950 ramp

primary
#522B7D
secondary
#84AD57
accent
#D84F97
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0B060F
muted
#7C7A7F

Preview Lab

Preview with #522B7D

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

Preview Lab → · Contrast checker → · Palette generator →

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