#522771#522771

#522771 is a dark, vivid violet. Relative luminance 0.044; OKLCH L 36.9% C 0.126 H 308.2°. Best body text is #FFFFFF at 11.13:1 contrast (WCAG AA passes).

Color values

HEX#522771
RGBrgb(82, 39, 113)
HSLhsl(275, 49%, 30%)
HSVhsv(275, 65%, 44%)
CMYKcmyk(27.4%, 65.5%, 0%, 55.7%)
CIE-LABlab(25.07, 34.40, -34.95)
CIE-LCHlch(25.07, 49.04, 314.55°)
OKLaboklab(36.89% 0.0776 -0.0987)
OKLCHoklch(36.89% 0.126 308.2)
XYZxyz(7.1852, 4.4372, 16.0975)
Luminance0.0444 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522771 #467127
analogous
#2D2771 #522771 #71276B
triadic
#522771 #715227 #277152
tetradic
#522771 #712D27 #467127 #276B71
square
#522771 #712D27 #467127 #276B71
split-complementary
#522771 #6B7127 #27712D
monochromatic
#110817 #311744 #522771 #73379E #9350C3

Accessibility & contrast

On white

11.13
#522771 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.89
#522771 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522771
11.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522771#FFFFFF#000000##FFFFFF
##5227711.0011.131.8911.13
#FFFFFF11.131.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#013A73
Deuteranopia (green-blind)
#1B3C6F
Tritanopia (blue-blind)
#4D3648
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #522771;
/* rgb */ color: rgb(82, 39, 113);
/* oklch */ color: oklch(36.9% 0.126 308.2);
Tailwind
colors: {
  custom: {
    50: '#85649a',
    500: '#522771',
    950: '#000000',
  },
}
SCSS
$custom: #522771;
$custom-light: #85649a;
$custom-dark: #000000;
JSON
{
  "hex": "#522771",
  "rgb": {
    "r": 82,
    "g": 39,
    "b": 113
  },
  "hsl": {
    "h": 274.865,
    "s": 48.684,
    "l": 29.804
  },
  "oklch": {
    "l": 0.36888,
    "c": 0.12555,
    "h": 308.2
  },
  "luminance": 0.04437
}

Semantic roles & 50–950 ramp

primary
#522771
secondary
#73A350
accent
#D85089
background
#F8F6F9
surface
#EFEBF2
border
#CAC6CC
text
#0B050E
muted
#7C7A7E

Preview Lab

Preview with #522771

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

Preview Lab → · Contrast checker → · Palette generator →

#522771 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva