#522B7B#522B7B

#522B7B is a dark, vivid violet. Relative luminance 0.050; OKLCH L 38.2% C 0.132 H 303.1°. Best body text is #FFFFFF at 10.55:1 contrast (WCAG AA passes).

Color values

HEX#522B7B
RGBrgb(82, 43, 123)
HSLhsl(269, 48%, 33%)
HSVhsv(269, 65%, 48%)
CMYKcmyk(33.3%, 65%, 0%, 51.8%)
CIE-LABlab(26.60, 34.76, -38.85)
CIE-LCHlch(26.60, 52.14, 311.82°)
OKLaboklab(38.22% 0.0719 -0.1102)
OKLCHoklch(38.22% 0.132 303.1)
XYZxyz(7.9179, 4.9517, 19.2737)
Luminance0.0495 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522B7B #547B2B
analogous
#2B2C7B #522B7B #7A2B7B
triadic
#522B7B #7B522B #2B7B52
tetradic
#522B7B #7B2B2C #547B2B #2B7B7A
square
#522B7B #7B2B2C #547B2B #2B7B7A
split-complementary
#522B7B #7B7A2B #2C7B2B
monochromatic
#160B20 #341B4E #522B7B #703BA8 #8F5BC6

Accessibility & contrast

On white

10.55
#522B7B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.99
#522B7B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522B7B
10.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522B7B#FFFFFF#000000##FFFFFF
##522B7B1.0010.551.9910.55
#FFFFFF10.551.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E7E
Deuteranopia (green-blind)
#133F79
Tritanopia (blue-blind)
#4A3C4F
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #522b7b;
/* rgb */ color: rgb(82, 43, 123);
/* oklch */ color: oklch(38.2% 0.132 303.1);
Tailwind
colors: {
  custom: {
    50: '#8667a2',
    500: '#522b7b',
    950: '#000000',
  },
}
SCSS
$custom: #522b7b;
$custom-light: #8667a2;
$custom-dark: #000000;
JSON
{
  "hex": "#522b7b",
  "rgb": {
    "r": 82,
    "g": 43,
    "b": 123
  },
  "hsl": {
    "h": 269.25,
    "s": 48.193,
    "l": 32.549
  },
  "oklch": {
    "l": 0.38222,
    "c": 0.13153,
    "h": 303.1
  },
  "luminance": 0.04952
}

Semantic roles & 50–950 ramp

primary
#522B7B
secondary
#82AB56
accent
#D85096
background
#F8F6FA
surface
#F0EBF3
border
#CBC6CD
text
#0B060F
muted
#7C7A7F

Preview Lab

Preview with #522B7B

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

Preview Lab → · Contrast checker → · Palette generator →

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