#522AAF#522AAF

#522AAF is a dark, vivid violet. Relative luminance 0.065; OKLCH L 42.5% C 0.195 H 289.0°. Best body text is #FFFFFF at 9.09:1 contrast (WCAG AA passes).

Color values

HEX#522AAF
RGBrgb(82, 42, 175)
HSLhsl(258, 61%, 43%)
HSVhsv(258, 76%, 69%)
CMYKcmyk(53.1%, 76%, 0%, 31.4%)
CIE-LABlab(30.75, 49.64, -64.04)
CIE-LCHlch(30.75, 81.02, 307.78°)
OKLaboklab(42.53% 0.0634 -0.1841)
OKLCHoklch(42.53% 0.195 289)
XYZxyz(12.0432, 6.5443, 41.1777)
Luminance0.0654 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522AAF #87AF2A
analogous
#2A45AF #522AAF #942AAF
triadic
#522AAF #AF522A #2AAF52
tetradic
#522AAF #AF2A45 #87AF2A #2AAF94
square
#522AAF #AF2A45 #87AF2A #2AAF94
split-complementary
#522AAF #AF942A #45AF2A
monochromatic
#24124C #3B1E7E #522AAF #6F44D2 #9575DE

Accessibility & contrast

On white

9.09
#522AAF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.31
#522AAF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522AAF
9.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522AAF#FFFFFF#000000##FFFFFF
##522AAF1.009.092.319.09
#FFFFFF9.091.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BB3
Deuteranopia (green-blind)
#0045AD
Tritanopia (blue-blind)
#2E4F6B
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #522aaf;
/* rgb */ color: rgb(82, 42, 175);
/* oklch */ color: oklch(42.5% 0.195 289.0);
Tailwind
colors: {
  custom: {
    50: '#8d68c8',
    500: '#522aaf',
    950: '#000000',
  },
}
SCSS
$custom: #522aaf;
$custom-light: #8d68c8;
$custom-dark: #000000;
JSON
{
  "hex": "#522aaf",
  "rgb": {
    "r": 82,
    "g": 42,
    "b": 175
  },
  "hsl": {
    "h": 258.045,
    "s": 61.29,
    "l": 42.549
  },
  "oklch": {
    "l": 0.42525,
    "c": 0.19472,
    "h": 289
  },
  "luminance": 0.06545
}

Semantic roles & 50–950 ramp

primary
#522AAF
secondary
#ACC66F
accent
#E443B4
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0613
muted
#7E7A82

Preview Lab

Preview with #522AAF

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

Preview Lab → · Contrast checker → · Palette generator →

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