#522FAF#522FAF

#522FAF is a dark, vivid violet. Relative luminance 0.069; OKLCH L 43.1% C 0.189 H 288.3°. Best body text is #FFFFFF at 8.81:1 contrast (WCAG AA passes).

Color values

HEX#522FAF
RGBrgb(82, 47, 175)
HSLhsl(256, 58%, 44%)
HSVhsv(256, 73%, 69%)
CMYKcmyk(53.1%, 73.1%, 0%, 31.4%)
CIE-LABlab(31.63, 47.15, -62.59)
CIE-LCHlch(31.63, 78.36, 306.99°)
OKLaboklab(43.15% 0.0594 -0.1799)
OKLCHoklch(43.15% 0.189 288.3)
XYZxyz(12.2318, 6.9214, 41.2406)
Luminance0.0692 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522FAF #8CAF2F
analogous
#2F4CAF #522FAF #922FAF
triadic
#522FAF #AF522F #2FAF52
tetradic
#522FAF #AF2F4C #8CAF2F #2FAF92
square
#522FAF #AF2F4C #8CAF2F #2FAF92
split-complementary
#522FAF #AF922F #4CAF2F
monochromatic
#25154F #3B227F #522FAF #704CCF #977CDC

Accessibility & contrast

On white

8.81
#522FAF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.38
#522FAF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522FAF
8.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522FAF#FFFFFF#000000##FFFFFF
##522FAF1.008.812.388.81
#FFFFFF8.811.0021.001.00
#0000002.3821.001.0021.00
##FFFFFF8.811.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: #522faf;
/* rgb */ color: rgb(82, 47, 175);
/* oklch */ color: oklch(43.1% 0.189 288.3);
Tailwind
colors: {
  custom: {
    50: '#8c6bc8',
    500: '#522faf',
    950: '#000000',
  },
}
SCSS
$custom: #522faf;
$custom-light: #8c6bc8;
$custom-dark: #000000;
JSON
{
  "hex": "#522faf",
  "rgb": {
    "r": 82,
    "g": 47,
    "b": 175
  },
  "hsl": {
    "h": 256.406,
    "s": 57.658,
    "l": 43.529
  },
  "oklch": {
    "l": 0.43146,
    "c": 0.18945,
    "h": 288.3
  },
  "luminance": 0.06922
}

Semantic roles & 50–950 ramp

primary
#522FAF
secondary
#AFC475
accent
#E147B7
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0713
muted
#7E7A82

Preview Lab

Preview with #522FAF

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

Preview Lab → · Contrast checker → · Palette generator →

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