#522495#522495

#522495 is a dark, vivid violet. Relative luminance 0.052; OKLCH L 39.4% C 0.172 H 296.0°. Best body text is #FFFFFF at 10.27:1 contrast (WCAG AA passes).

Color values

HEX#522495
RGBrgb(82, 36, 149)
HSLhsl(264, 61%, 36%)
HSVhsv(264, 76%, 58%)
CMYKcmyk(45%, 75.8%, 0%, 41.6%)
CIE-LABlab(27.37, 45.39, -53.81)
CIE-LCHlch(27.37, 70.40, 310.15°)
OKLaboklab(39.42% 0.0753 -0.1541)
OKLCHoklch(39.42% 0.172 296)
XYZxyz(9.5339, 5.2253, 28.9342)
Luminance0.0523 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522495 #679524
analogous
#242F95 #522495 #8B2495
triadic
#522495 #955224 #249552
tetradic
#522495 #95242F #679524 #24958B
square
#522495 #95242F #679524 #24958B
split-complementary
#522495 #958B24 #2F9524
monochromatic
#1C0C32 #371864 #522495 #6D30C6 #8E5CD8

Accessibility & contrast

On white

10.27
#522495 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.05
#522495 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522495
10.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522495#FFFFFF#000000##FFFFFF
##5224951.0010.272.0510.27
#FFFFFF10.271.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004198
Deuteranopia (green-blind)
#003F93
Tritanopia (blue-blind)
#40425B
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #522495;
/* rgb */ color: rgb(82, 36, 149);
/* oklch */ color: oklch(39.4% 0.172 296.0);
Tailwind
colors: {
  custom: {
    50: '#8964b5',
    500: '#522495',
    950: '#000000',
  },
}
SCSS
$custom: #522495;
$custom-light: #8964b5;
$custom-dark: #000000;
JSON
{
  "hex": "#522495",
  "rgb": {
    "r": 82,
    "g": 36,
    "b": 149
  },
  "hsl": {
    "h": 264.425,
    "s": 61.081,
    "l": 36.275
  },
  "oklch": {
    "l": 0.39425,
    "c": 0.1715,
    "h": 296
  },
  "luminance": 0.05226
}

Semantic roles & 50–950 ramp

primary
#522495
secondary
#94BC59
accent
#E444A3
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #522495

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

Preview Lab → · Contrast checker → · Palette generator →

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