#522CAF#522CAF

#522CAF is a dark, vivid violet. Relative luminance 0.067; OKLCH L 42.8% C 0.193 H 288.7°. Best body text is #FFFFFF at 8.98:1 contrast (WCAG AA passes).

Color values

HEX#522CAF
RGBrgb(82, 44, 175)
HSLhsl(257, 60%, 43%)
HSVhsv(257, 75%, 69%)
CMYKcmyk(53.1%, 74.9%, 0%, 31.4%)
CIE-LABlab(31.09, 48.66, -63.47)
CIE-LCHlch(31.09, 79.98, 307.48°)
OKLaboklab(42.77% 0.0619 -0.1825)
OKLCHoklch(42.77% 0.193 288.7)
XYZxyz(12.1160, 6.6898, 41.2020)
Luminance0.0669 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522CAF #89AF2C
analogous
#2C47AF #522CAF #942CAF
triadic
#522CAF #AF522C #2CAF52
tetradic
#522CAF #AF2C47 #89AF2C #2CAF94
square
#522CAF #AF2C47 #89AF2C #2CAF94
split-complementary
#522CAF #AF942C #47AF2C
monochromatic
#24134D #3B207E #522CAF #6F47D1 #9678DD

Accessibility & contrast

On white

8.98
#522CAF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.34
#522CAF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522CAF
8.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522CAF#FFFFFF#000000##FFFFFF
##522CAF1.008.982.348.98
#FFFFFF8.981.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CB3
Deuteranopia (green-blind)
#0046AD
Tritanopia (blue-blind)
#2E506B
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #522caf;
/* rgb */ color: rgb(82, 44, 175);
/* oklch */ color: oklch(42.8% 0.193 288.7);
Tailwind
colors: {
  custom: {
    50: '#8c69c8',
    500: '#522caf',
    950: '#000000',
  },
}
SCSS
$custom: #522caf;
$custom-light: #8c69c8;
$custom-dark: #000000;
JSON
{
  "hex": "#522caf",
  "rgb": {
    "r": 82,
    "g": 44,
    "b": 175
  },
  "hsl": {
    "h": 257.405,
    "s": 59.817,
    "l": 42.941
  },
  "oklch": {
    "l": 0.42767,
    "c": 0.19267,
    "h": 288.7
  },
  "luminance": 0.0669
}

Semantic roles & 50–950 ramp

primary
#522CAF
secondary
#ADC572
accent
#E345B5
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0713
muted
#7E7A82

Preview Lab

Preview with #522CAF

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

Preview Lab → · Contrast checker → · Palette generator →

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