#522971#522971

#522971 is a dark, vivid violet. Relative luminance 0.046; OKLCH L 37.2% C 0.122 H 307.8°. Best body text is #FFFFFF at 10.97:1 contrast (WCAG AA passes).

Color values

HEX#522971
RGBrgb(82, 41, 113)
HSLhsl(274, 47%, 30%)
HSVhsv(274, 64%, 44%)
CMYKcmyk(27.4%, 63.7%, 0%, 55.7%)
CIE-LABlab(25.48, 33.28, -34.29)
CIE-LCHlch(25.48, 47.79, 314.15°)
OKLaboklab(37.19% 0.0749 -0.0967)
OKLCHoklch(37.19% 0.122 307.8)
XYZxyz(7.2526, 4.5721, 16.1200)
Luminance0.0457 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522971 #487129
analogous
#2E2971 #522971 #71296C
triadic
#522971 #715229 #297152
tetradic
#522971 #712E29 #487129 #296C71
square
#522971 #712E29 #487129 #296C71
split-complementary
#522971 #6C7129 #29712E
monochromatic
#110817 #311944 #522971 #73399E #9254C1

Accessibility & contrast

On white

10.97
#522971 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#522971 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522971
10.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522971#FFFFFF#000000##FFFFFF
##5229711.0010.971.9110.97
#FFFFFF10.971.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF10.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#083B73
Deuteranopia (green-blind)
#1D3D6F
Tritanopia (blue-blind)
#4D3749
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #522971;
/* rgb */ color: rgb(82, 41, 113);
/* oklch */ color: oklch(37.2% 0.122 307.8);
Tailwind
colors: {
  custom: {
    50: '#85659a',
    500: '#522971',
    950: '#000000',
  },
}
SCSS
$custom: #522971;
$custom-light: #85659a;
$custom-dark: #000000;
JSON
{
  "hex": "#522971",
  "rgb": {
    "r": 82,
    "g": 41,
    "b": 113
  },
  "hsl": {
    "h": 274.167,
    "s": 46.753,
    "l": 30.196
  },
  "oklch": {
    "l": 0.37187,
    "c": 0.12237,
    "h": 307.8
  },
  "luminance": 0.04572
}

Semantic roles & 50–950 ramp

primary
#522971
secondary
#75A353
accent
#D6518B
background
#F8F6F9
surface
#EFEBF2
border
#CAC6CC
text
#0B060E
muted
#7C7A7E

Preview Lab

Preview with #522971

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

Preview Lab → · Contrast checker → · Palette generator →

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