#522DAF#522DAF

#522DAF is a dark, vivid violet. Relative luminance 0.068; OKLCH L 42.9% C 0.192 H 288.6°. Best body text is #FFFFFF at 8.92:1 contrast (WCAG AA passes).

Color values

HEX#522DAF
RGBrgb(82, 45, 175)
HSLhsl(257, 59%, 43%)
HSVhsv(257, 74%, 69%)
CMYKcmyk(53.1%, 74.3%, 0%, 31.4%)
CIE-LABlab(31.27, 48.17, -63.18)
CIE-LCHlch(31.27, 79.45, 307.32°)
OKLaboklab(42.89% 0.061 -0.1816)
OKLCHoklch(42.89% 0.192 288.6)
XYZxyz(12.1537, 6.7652, 41.2145)
Luminance0.0677 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522DAF #8AAF2D
analogous
#2D49AF #522DAF #932DAF
triadic
#522DAF #AF522D #2DAF52
tetradic
#522DAF #AF2D49 #8AAF2D #2DAF93
square
#522DAF #AF2D49 #8AAF2D #2DAF93
split-complementary
#522DAF #AF932D #49AF2D
monochromatic
#24144E #3B207E #522DAF #6F49D0 #967ADD

Accessibility & contrast

On white

8.92
#522DAF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.35
#522DAF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522DAF
8.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522DAF#FFFFFF#000000##FFFFFF
##522DAF1.008.922.358.92
#FFFFFF8.921.0021.001.00
#0000002.3521.001.0021.00
##FFFFFF8.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CB3
Deuteranopia (green-blind)
#0046AD
Tritanopia (blue-blind)
#2E506C
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #522daf;
/* rgb */ color: rgb(82, 45, 175);
/* oklch */ color: oklch(42.9% 0.192 288.6);
Tailwind
colors: {
  custom: {
    50: '#8c6ac8',
    500: '#522daf',
    950: '#000000',
  },
}
SCSS
$custom: #522daf;
$custom-light: #8c6ac8;
$custom-dark: #000000;
JSON
{
  "hex": "#522daf",
  "rgb": {
    "r": 82,
    "g": 45,
    "b": 175
  },
  "hsl": {
    "h": 257.077,
    "s": 59.091,
    "l": 43.137
  },
  "oklch": {
    "l": 0.42891,
    "c": 0.19161,
    "h": 288.6
  },
  "luminance": 0.06766
}

Semantic roles & 50–950 ramp

primary
#522DAF
secondary
#AEC573
accent
#E246B6
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0713
muted
#7E7A82

Preview Lab

Preview with #522DAF

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

Preview Lab → · Contrast checker → · Palette generator →

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