#522FB4#522FB4

#522FB4 is a dark, vivid violet. Relative luminance 0.071; OKLCH L 43.6% C 0.195 H 287.3°. Best body text is #FFFFFF at 8.66:1 contrast (WCAG AA passes).

Color values

HEX#522FB4
RGBrgb(82, 47, 180)
HSLhsl(256, 59%, 45%)
HSVhsv(256, 74%, 71%)
CMYKcmyk(54.4%, 73.9%, 0%, 29.4%)
CIE-LABlab(32.08, 48.58, -64.82)
CIE-LCHlch(32.08, 81.01, 306.85°)
OKLaboklab(43.61% 0.0582 -0.1864)
OKLCHoklch(43.61% 0.195 287.3)
XYZxyz(12.7320, 7.1215, 43.8749)
Luminance0.0712 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522FB4 #91B42F
analogous
#2F4FB4 #522FB4 #942FB4
triadic
#522FB4 #B4522F #2FB452
tetradic
#522FB4 #B42F4F #91B42F #2FB494
square
#522FB4 #B42F4F #91B42F #2FB494
split-complementary
#522FB4 #B4942F #4FB42F
monochromatic
#261653 #3C2283 #522FB4 #714FD1 #9880DE

Accessibility & contrast

On white

8.66
#522FB4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.42
#522FB4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522FB4
8.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522FB4#FFFFFF#000000##FFFFFF
##522FB41.008.662.428.66
#FFFFFF8.661.0021.001.00
#0000002.4221.001.0021.00
##FFFFFF8.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FB8
Deuteranopia (green-blind)
#0048B2
Tritanopia (blue-blind)
#29536F
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #522fb4;
/* rgb */ color: rgb(82, 47, 180);
/* oklch */ color: oklch(43.6% 0.195 287.3);
Tailwind
colors: {
  custom: {
    50: '#8d6bcc',
    500: '#522fb4',
    950: '#000000',
  },
}
SCSS
$custom: #522fb4;
$custom-light: #8d6bcc;
$custom-dark: #000000;
JSON
{
  "hex": "#522fb4",
  "rgb": {
    "r": 82,
    "g": 47,
    "b": 180
  },
  "hsl": {
    "h": 255.789,
    "s": 58.59,
    "l": 44.51
  },
  "oklch": {
    "l": 0.43606,
    "c": 0.19533,
    "h": 287.3
  },
  "luminance": 0.07122
}

Semantic roles & 50–950 ramp

primary
#522FB4
secondary
#B2C778
accent
#E246B9
background
#F9F6FC
surface
#F1EBF9
border
#CBC6D2
text
#0D0713
muted
#7E7A82

Preview Lab

Preview with #522FB4

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

Preview Lab → · Contrast checker → · Palette generator →

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