#522FB6#522FB6

#522FB6 is a dark, vivid violet. Relative luminance 0.072; OKLCH L 43.8% C 0.198 H 287.0°. Best body text is #FFFFFF at 8.60:1 contrast (WCAG AA passes).

Color values

HEX#522FB6
RGBrgb(82, 47, 182)
HSLhsl(256, 59%, 45%)
HSVhsv(256, 74%, 71%)
CMYKcmyk(54.9%, 74.2%, 0%, 28.6%)
CIE-LABlab(32.27, 49.16, -65.71)
CIE-LCHlch(32.27, 82.06, 306.80°)
OKLaboklab(43.79% 0.0577 -0.189)
OKLCHoklch(43.79% 0.198 287)
XYZxyz(12.9372, 7.2036, 44.9556)
Luminance0.0720 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522FB6 #93B62F
analogous
#2F4FB6 #522FB6 #962FB6
triadic
#522FB6 #B6522F #2FB652
tetradic
#522FB6 #B62F4F #93B62F #2FB696
square
#522FB6 #B62F4F #93B62F #2FB696
split-complementary
#522FB6 #B6962F #4FB62F
monochromatic
#261655 #3C2285 #522FB6 #7250D2 #9981DE

Accessibility & contrast

On white

8.60
#522FB6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.44
#522FB6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522FB6
8.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522FB6#FFFFFF#000000##FFFFFF
##522FB61.008.602.448.60
#FFFFFF8.601.0021.001.00
#0000002.4421.001.0021.00
##FFFFFF8.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FBA
Deuteranopia (green-blind)
#0048B3
Tritanopia (blue-blind)
#275470
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #522fb6;
/* rgb */ color: rgb(82, 47, 182);
/* oklch */ color: oklch(43.8% 0.198 287.0);
Tailwind
colors: {
  custom: {
    50: '#8d6bcd',
    500: '#522fb6',
    950: '#000000',
  },
}
SCSS
$custom: #522fb6;
$custom-light: #8d6bcd;
$custom-dark: #000000;
JSON
{
  "hex": "#522fb6",
  "rgb": {
    "r": 82,
    "g": 47,
    "b": 182
  },
  "hsl": {
    "h": 255.556,
    "s": 58.952,
    "l": 44.902
  },
  "oklch": {
    "l": 0.43792,
    "c": 0.19766,
    "h": 287
  },
  "luminance": 0.07204
}

Semantic roles & 50–950 ramp

primary
#522FB6
secondary
#B3C779
accent
#E246BA
background
#F9F6FC
surface
#F2EBF9
border
#CCC6D2
text
#0D0714
muted
#7E7A82

Preview Lab

Preview with #522FB6

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

Preview Lab → · Contrast checker → · Palette generator →

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