#522485#522485

#522485 is a dark, vivid violet. Relative luminance 0.047; OKLCH L 38.0% C 0.153 H 301.0°. Best body text is #FFFFFF at 10.77:1 contrast (WCAG AA passes).

Color values

HEX#522485
RGBrgb(82, 36, 133)
HSLhsl(268, 57%, 33%)
HSVhsv(268, 73%, 52%)
CMYKcmyk(38.3%, 72.9%, 0%, 47.8%)
CIE-LABlab(26.01, 41.15, -46.10)
CIE-LCHlch(26.01, 61.79, 311.75°)
OKLaboklab(38.04% 0.0788 -0.1314)
OKLCHoklch(38.04% 0.153 301)
XYZxyz(8.3432, 4.7490, 22.6628)
Luminance0.0475 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522485 #578524
analogous
#242685 #522485 #822485
triadic
#522485 #855224 #248552
tetradic
#522485 #852426 #578524 #248582
square
#522485 #852426 #578524 #248582
split-complementary
#522485 #858224 #268524
monochromatic
#170A25 #341755 #522485 #7031B5 #8E53D0

Accessibility & contrast

On white

10.77
#522485 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.95
#522485 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522485
10.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522485#FFFFFF#000000##FFFFFF
##5224851.0010.771.9510.77
#FFFFFF10.771.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D88
Deuteranopia (green-blind)
#003D83
Tritanopia (blue-blind)
#473B52
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #522485;
/* rgb */ color: rgb(82, 36, 133);
/* oklch */ color: oklch(38.0% 0.153 301.0);
Tailwind
colors: {
  custom: {
    50: '#8763a9',
    500: '#522485',
    950: '#000000',
  },
}
SCSS
$custom: #522485;
$custom-light: #8763a9;
$custom-dark: #000000;
JSON
{
  "hex": "#522485",
  "rgb": {
    "r": 82,
    "g": 36,
    "b": 133
  },
  "hsl": {
    "h": 268.454,
    "s": 57.396,
    "l": 33.137
  },
  "oklch": {
    "l": 0.38041,
    "c": 0.15326,
    "h": 301
  },
  "luminance": 0.04749
}

Semantic roles & 50–950 ramp

primary
#522485
secondary
#85B450
accent
#E14798
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0510
muted
#7D7A7F

Preview Lab

Preview with #522485

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

Preview Lab → · Contrast checker → · Palette generator →

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