#522B85#522B85

#522B85 is a dark, vivid violet. Relative luminance 0.052; OKLCH L 39.0% C 0.144 H 299.6°. Best body text is #FFFFFF at 10.28:1 contrast (WCAG AA passes).

Color values

HEX#522B85
RGBrgb(82, 43, 133)
HSLhsl(266, 51%, 35%)
HSVhsv(266, 68%, 52%)
CMYKcmyk(38.3%, 67.7%, 0%, 47.8%)
CIE-LABlab(27.34, 37.46, -43.94)
CIE-LCHlch(27.34, 57.74, 310.45°)
OKLaboklab(38.99% 0.071 -0.1251)
OKLCHoklch(38.99% 0.144 299.6)
XYZxyz(8.5761, 5.2150, 22.7405)
Luminance0.0522 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522B85 #5E852B
analogous
#2B3185 #522B85 #7F2B85
triadic
#522B85 #85522B #2B8552
tetradic
#522B85 #852B31 #5E852B #2B857F
square
#522B85 #852B31 #5E852B #2B857F
split-complementary
#522B85 #857F2B #31852B
monochromatic
#190D29 #351C57 #522B85 #6F3AB3 #8E5FCB

Accessibility & contrast

On white

10.28
#522B85 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #522B85
10.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522B85#FFFFFF#000000##FFFFFF
##522B851.0010.282.0410.28
#FFFFFF10.281.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004088
Deuteranopia (green-blind)
#004083
Tritanopia (blue-blind)
#474054
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #522b85;
/* rgb */ color: rgb(82, 43, 133);
/* oklch */ color: oklch(39.0% 0.144 299.6);
Tailwind
colors: {
  custom: {
    50: '#8767a9',
    500: '#522b85',
    950: '#000000',
  },
}
SCSS
$custom: #522b85;
$custom-light: #8767a9;
$custom-dark: #000000;
JSON
{
  "hex": "#522b85",
  "rgb": {
    "r": 82,
    "g": 43,
    "b": 133
  },
  "hsl": {
    "h": 266,
    "s": 51.136,
    "l": 34.51
  },
  "oklch": {
    "l": 0.38993,
    "c": 0.14384,
    "h": 299.6
  },
  "luminance": 0.05215
}

Semantic roles & 50–950 ramp

primary
#522B85
secondary
#8CB15B
accent
#DB4D9D
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0610
muted
#7D7A7F

Preview Lab

Preview with #522B85

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

Preview Lab → · Contrast checker → · Palette generator →

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