#522B7E#522B7E

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

Color values

HEX#522B7E
RGBrgb(82, 43, 126)
HSLhsl(268, 49%, 33%)
HSVhsv(268, 66%, 49%)
CMYKcmyk(34.9%, 65.9%, 0%, 50.6%)
CIE-LABlab(26.81, 35.57, -40.40)
CIE-LCHlch(26.81, 53.82, 311.36°)
OKLaboklab(38.45% 0.0717 -0.1147)
OKLCHoklch(38.45% 0.135 302)
XYZxyz(8.1086, 5.0279, 20.2779)
Luminance0.0503 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522B7E #577E2B
analogous
#2B2D7E #522B7E #7B2B7E
triadic
#522B7E #7E522B #2B7E52
tetradic
#522B7E #7E2B2D #577E2B #2B7E7B
square
#522B7E #7E2B2D #577E2B #2B7E7B
split-complementary
#522B7E #7E7B2B #2D7E2B
monochromatic
#170C23 #341B50 #522B7E #703BAC #8E5CC7

Accessibility & contrast

On white

10.47
#522B7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.01
#522B7E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522B7E
10.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522B7E#FFFFFF#000000##FFFFFF
##522B7E1.0010.472.0110.47
#FFFFFF10.471.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F81
Deuteranopia (green-blind)
#0E3F7C
Tritanopia (blue-blind)
#493D50
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #522b7e;
/* rgb */ color: rgb(82, 43, 126);
/* oklch */ color: oklch(38.4% 0.135 302.0);
Tailwind
colors: {
  custom: {
    50: '#8667a4',
    500: '#522b7e',
    950: '#000000',
  },
}
SCSS
$custom: #522b7e;
$custom-light: #8667a4;
$custom-dark: #000000;
JSON
{
  "hex": "#522b7e",
  "rgb": {
    "r": 82,
    "g": 43,
    "b": 126
  },
  "hsl": {
    "h": 268.193,
    "s": 49.112,
    "l": 33.137
  },
  "oklch": {
    "l": 0.38448,
    "c": 0.13524,
    "h": 302
  },
  "luminance": 0.05028
}

Semantic roles & 50–950 ramp

primary
#522B7E
secondary
#85AD58
accent
#D94F98
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0B060F
muted
#7C7A7F

Preview Lab

Preview with #522B7E

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

Preview Lab → · Contrast checker → · Palette generator →

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