#522EAF#522EAF

#522EAF is a dark, vivid violet. Relative luminance 0.068; OKLCH L 43.0% C 0.191 H 288.4°. Best body text is #FFFFFF at 8.87:1 contrast (WCAG AA passes).

Color values

HEX#522EAF
RGBrgb(82, 46, 175)
HSLhsl(257, 58%, 43%)
HSVhsv(257, 74%, 69%)
CMYKcmyk(53.1%, 73.7%, 0%, 31.4%)
CIE-LABlab(31.45, 47.66, -62.89)
CIE-LCHlch(31.45, 78.91, 307.16°)
OKLaboklab(43.02% 0.0602 -0.1808)
OKLCHoklch(43.02% 0.191 288.4)
XYZxyz(12.1923, 6.8424, 41.2274)
Luminance0.0684 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522EAF #8BAF2E
analogous
#2E4AAF #522EAF #922EAF
triadic
#522EAF #AF522E #2EAF52
tetradic
#522EAF #AF2E4A #8BAF2E #2EAF92
square
#522EAF #AF2E4A #8BAF2E #2EAF92
split-complementary
#522EAF #AF922E #4AAF2E
monochromatic
#25154E #3B217F #522EAF #704BD0 #967BDC

Accessibility & contrast

On white

8.87
#522EAF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.37
#522EAF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522EAF
8.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522EAF#FFFFFF#000000##FFFFFF
##522EAF1.008.872.378.87
#FFFFFF8.871.0021.001.00
#0000002.3721.001.0021.00
##FFFFFF8.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DB3
Deuteranopia (green-blind)
#0047AD
Tritanopia (blue-blind)
#2E516C
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #522eaf;
/* rgb */ color: rgb(82, 46, 175);
/* oklch */ color: oklch(43.0% 0.191 288.4);
Tailwind
colors: {
  custom: {
    50: '#8c6ac8',
    500: '#522eaf',
    950: '#000000',
  },
}
SCSS
$custom: #522eaf;
$custom-light: #8c6ac8;
$custom-dark: #000000;
JSON
{
  "hex": "#522eaf",
  "rgb": {
    "r": 82,
    "g": 46,
    "b": 175
  },
  "hsl": {
    "h": 256.744,
    "s": 58.371,
    "l": 43.333
  },
  "oklch": {
    "l": 0.43017,
    "c": 0.19054,
    "h": 288.4
  },
  "luminance": 0.06843
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #522EAF

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

Preview Lab → · Contrast checker → · Palette generator →

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