#522E7B#522E7B

#522E7B is a dark, vivid violet. Relative luminance 0.052; OKLCH L 38.7% C 0.127 H 302.4°. Best body text is #FFFFFF at 10.32:1 contrast (WCAG AA passes).

Color values

HEX#522E7B
RGBrgb(82, 46, 123)
HSLhsl(268, 46%, 33%)
HSVhsv(268, 63%, 48%)
CMYKcmyk(33.3%, 62.6%, 0%, 51.8%)
CIE-LABlab(27.24, 33.04, -37.83)
CIE-LCHlch(27.24, 50.23, 311.14°)
OKLaboklab(38.69% 0.068 -0.1071)
OKLCHoklch(38.69% 0.127 302.4)
XYZxyz(8.0310, 5.1779, 19.3114)
Luminance0.0518 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522E7B #577B2E
analogous
#2E307B #522E7B #782E7B
triadic
#522E7B #7B522E #2E7B52
tetradic
#522E7B #7B2E30 #577B2E #2E7B78
square
#522E7B #7B2E30 #577B2E #2E7B78
split-complementary
#522E7B #7B782E #307B2E
monochromatic
#170D22 #341D4E #522E7B #703FA8 #8E60C3

Accessibility & contrast

On white

10.32
#522E7B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#522E7B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522E7B
10.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522E7B#FFFFFF#000000##FFFFFF
##522E7B1.0010.322.0410.32
#FFFFFF10.321.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#03407D
Deuteranopia (green-blind)
#184079
Tritanopia (blue-blind)
#4A3E50
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #522e7b;
/* rgb */ color: rgb(82, 46, 123);
/* oklch */ color: oklch(38.7% 0.127 302.4);
Tailwind
colors: {
  custom: {
    50: '#8669a2',
    500: '#522e7b',
    950: '#000000',
  },
}
SCSS
$custom: #522e7b;
$custom-light: #8669a2;
$custom-dark: #000000;
JSON
{
  "hex": "#522e7b",
  "rgb": {
    "r": 82,
    "g": 46,
    "b": 123
  },
  "hsl": {
    "h": 268.052,
    "s": 45.562,
    "l": 33.137
  },
  "oklch": {
    "l": 0.38686,
    "c": 0.12688,
    "h": 302.4
  },
  "luminance": 0.05178
}

Semantic roles & 50–950 ramp

primary
#522E7B
secondary
#85AA5B
accent
#D55398
background
#F8F6FA
surface
#F0EBF3
border
#CBC6CD
text
#0B060F
muted
#7C7A7F

Preview Lab

Preview with #522E7B

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

Preview Lab → · Contrast checker → · Palette generator →

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