#522085#522085

#522085 is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.6% C 0.158 H 301.6°. Best body text is #FFFFFF at 11.03:1 contrast (WCAG AA passes).

Color values

HEX#522085
RGBrgb(82, 32, 133)
HSLhsl(270, 61%, 32%)
HSVhsv(270, 76%, 52%)
CMYKcmyk(38.3%, 75.9%, 0%, 47.8%)
CIE-LABlab(25.32, 43.08, -47.22)
CIE-LCHlch(25.32, 63.92, 312.38°)
OKLaboklab(37.56% 0.0829 -0.1347)
OKLCHoklch(37.56% 0.158 301.6)
XYZxyz(8.2288, 4.5203, 22.6247)
Luminance0.0452 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522085 #538520
analogous
#202185 #522085 #852085
triadic
#522085 #855220 #208552
tetradic
#522085 #852021 #538520 #208585
square
#522085 #852021 #538520 #208585
split-complementary
#522085 #858520 #218520
monochromatic
#150822 #341454 #522085 #702CB6 #8F4CD4

Accessibility & contrast

On white

11.03
#522085 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#522085 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522085
11.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522085#FFFFFF#000000##FFFFFF
##5220851.0011.031.9011.03
#FFFFFF11.031.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B88
Deuteranopia (green-blind)
#003C83
Tritanopia (blue-blind)
#473951
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #522085;
/* rgb */ color: rgb(82, 32, 133);
/* oklch */ color: oklch(37.6% 0.158 301.6);
Tailwind
colors: {
  custom: {
    50: '#8861a9',
    500: '#522085',
    950: '#000000',
  },
}
SCSS
$custom: #522085;
$custom-light: #8861a9;
$custom-dark: #000000;
JSON
{
  "hex": "#522085",
  "rgb": {
    "r": 82,
    "g": 32,
    "b": 133
  },
  "hsl": {
    "h": 269.703,
    "s": 61.212,
    "l": 32.353
  },
  "oklch": {
    "l": 0.37555,
    "c": 0.15817,
    "h": 301.6
  },
  "luminance": 0.0452
}

Semantic roles & 50–950 ramp

primary
#522085
secondary
#81B74A
accent
#E44395
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #522085

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

Preview Lab → · Contrast checker → · Palette generator →

#522085 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva