#522FB2#522FB2

#522FB2 is a dark, vivid violet. Relative luminance 0.070; OKLCH L 43.4% C 0.193 H 287.7°. Best body text is #FFFFFF at 8.72:1 contrast (WCAG AA passes).

Color values

HEX#522FB2
RGBrgb(82, 47, 178)
HSLhsl(256, 58%, 44%)
HSVhsv(256, 74%, 70%)
CMYKcmyk(53.9%, 73.6%, 0%, 30.2%)
CIE-LABlab(31.90, 48.01, -63.93)
CIE-LCHlch(31.90, 79.95, 306.90°)
OKLaboklab(43.42% 0.0587 -0.1838)
OKLCHoklch(43.42% 0.193 287.7)
XYZxyz(12.5297, 7.0406, 42.8096)
Luminance0.0704 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522FB2 #8FB22F
analogous
#2F4DB2 #522FB2 #942FB2
triadic
#522FB2 #B2522F #2FB252
tetradic
#522FB2 #B22F4D #8FB22F #2FB294
square
#522FB2 #B22F4D #8FB22F #2FB294
split-complementary
#522FB2 #B2942F #4DB22F
monochromatic
#251551 #3C2282 #522FB2 #714ED0 #987EDD

Accessibility & contrast

On white

8.72
#522FB2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.41
#522FB2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522FB2
8.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522FB2#FFFFFF#000000##FFFFFF
##522FB21.008.722.418.72
#FFFFFF8.721.0021.001.00
#0000002.4121.001.0021.00
##FFFFFF8.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EB6
Deuteranopia (green-blind)
#0047B0
Tritanopia (blue-blind)
#2B536E
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #522fb2;
/* rgb */ color: rgb(82, 47, 178);
/* oklch */ color: oklch(43.4% 0.193 287.7);
Tailwind
colors: {
  custom: {
    50: '#8d6bca',
    500: '#522fb2',
    950: '#000000',
  },
}
SCSS
$custom: #522fb2;
$custom-light: #8d6bca;
$custom-dark: #000000;
JSON
{
  "hex": "#522fb2",
  "rgb": {
    "r": 82,
    "g": 47,
    "b": 178
  },
  "hsl": {
    "h": 256.031,
    "s": 58.222,
    "l": 44.118
  },
  "oklch": {
    "l": 0.43421,
    "c": 0.19298,
    "h": 287.7
  },
  "luminance": 0.07041
}

Semantic roles & 50–950 ramp

primary
#522FB2
secondary
#B1C677
accent
#E146B8
background
#F9F6FC
surface
#F1EBF9
border
#CBC6D2
text
#0D0713
muted
#7E7A82

Preview Lab

Preview with #522FB2

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

Preview Lab → · Contrast checker → · Palette generator →

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