#522271#522271

#522271 is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.2% C 0.133 H 309.1°. Best body text is #FFFFFF at 11.50:1 contrast (WCAG AA passes).

Color values

HEX#522271
RGBrgb(82, 34, 113)
HSLhsl(276, 54%, 29%)
HSVhsv(276, 70%, 44%)
CMYKcmyk(27.4%, 69.9%, 0%, 55.7%)
CIE-LABlab(24.10, 37.06, -36.51)
CIE-LCHlch(24.10, 52.03, 315.43°)
OKLaboklab(36.19% 0.084 -0.1032)
OKLCHoklch(36.19% 0.133 309.1)
XYZxyz(7.0317, 4.1303, 16.0464)
Luminance0.0413 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522271 #417122
analogous
#2B2271 #522271 #712269
triadic
#522271 #715222 #227152
tetradic
#522271 #712B22 #417122 #226971
square
#522271 #712B22 #417122 #226971
split-complementary
#522271 #697122 #22712B
monochromatic
#110718 #301442 #522271 #7430A0 #9546C7

Accessibility & contrast

On white

11.50
#522271 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#522271 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522271
11.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522271#FFFFFF#000000##FFFFFF
##5222711.0011.501.8311.50
#FFFFFF11.501.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003773
Deuteranopia (green-blind)
#143A6F
Tritanopia (blue-blind)
#4D3346
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #522271;
/* rgb */ color: rgb(82, 34, 113);
/* oklch */ color: oklch(36.2% 0.133 309.1);
Tailwind
colors: {
  custom: {
    50: '#86619a',
    500: '#522271',
    950: '#000000',
  },
}
SCSS
$custom: #522271;
$custom-light: #86619a;
$custom-dark: #000000;
JSON
{
  "hex": "#522271",
  "rgb": {
    "r": 82,
    "g": 34,
    "b": 113
  },
  "hsl": {
    "h": 276.456,
    "s": 53.741,
    "l": 28.824
  },
  "oklch": {
    "l": 0.36188,
    "c": 0.1331,
    "h": 309.1
  },
  "luminance": 0.0413
}

Semantic roles & 50–950 ramp

primary
#522271
secondary
#6EA44A
accent
#DD4B84
background
#F8F5F9
surface
#F0EAF2
border
#CBC6CC
text
#0B050E
muted
#7C797E

Preview Lab

Preview with #522271

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

Preview Lab → · Contrast checker → · Palette generator →

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