#522D7F#522D7F

#522D7F is a dark, vivid violet. Relative luminance 0.052; OKLCH L 38.8% C 0.133 H 301.2°. Best body text is #FFFFFF at 10.29:1 contrast (WCAG AA passes).

Color values

HEX#522D7F
RGBrgb(82, 45, 127)
HSLhsl(267, 48%, 34%)
HSVhsv(267, 65%, 50%)
CMYKcmyk(35.4%, 64.6%, 0%, 50.2%)
CIE-LABlab(27.31, 34.70, -40.23)
CIE-LCHlch(27.31, 53.13, 310.78°)
OKLaboklab(38.83% 0.0691 -0.1142)
OKLCHoklch(38.83% 0.133 301.2)
XYZxyz(8.2479, 5.2029, 20.6443)
Luminance0.0520 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522D7F #5A7F2D
analogous
#2D317F #522D7F #7B2D7F
triadic
#522D7F #7F522D #2D7F52
tetradic
#522D7F #7F2D31 #5A7F2D #2D7F7B
square
#522D7F #7F2D31 #5A7F2D #2D7F7B
split-complementary
#522D7F #7F7B2D #317F2D
monochromatic
#180D25 #351D52 #522D7F #6F3DAC #8E60C7

Accessibility & contrast

On white

10.29
#522D7F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #522D7F
10.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522D7F#FFFFFF#000000##FFFFFF
##522D7F1.0010.292.0410.29
#FFFFFF10.291.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004082
Deuteranopia (green-blind)
#10407D
Tritanopia (blue-blind)
#493F51
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #522d7f;
/* rgb */ color: rgb(82, 45, 127);
/* oklch */ color: oklch(38.8% 0.133 301.2);
Tailwind
colors: {
  custom: {
    50: '#8668a5',
    500: '#522d7f',
    950: '#000000',
  },
}
SCSS
$custom: #522d7f;
$custom-light: #8668a5;
$custom-dark: #000000;
JSON
{
  "hex": "#522d7f",
  "rgb": {
    "r": 82,
    "g": 45,
    "b": 127
  },
  "hsl": {
    "h": 267.073,
    "s": 47.674,
    "l": 33.725
  },
  "oklch": {
    "l": 0.38827,
    "c": 0.13347,
    "h": 301.2
  },
  "luminance": 0.05203
}

Semantic roles & 50–950 ramp

primary
#522D7F
secondary
#88AD5B
accent
#D7519A
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0B060F
muted
#7C7A7F

Preview Lab

Preview with #522D7F

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

Preview Lab → · Contrast checker → · Palette generator →

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