#522175#522175

#522175 is a dark, vivid violet. Relative luminance 0.042; OKLCH L 36.4% C 0.139 H 307.6°. Best body text is #FFFFFF at 11.46:1 contrast (WCAG AA passes).

Color values

HEX#522175
RGBrgb(82, 33, 117)
HSLhsl(275, 56%, 29%)
HSVhsv(275, 72%, 46%)
CMYKcmyk(29.9%, 71.8%, 0%, 54.1%)
CIE-LABlab(24.21, 38.56, -38.89)
CIE-LCHlch(24.21, 54.76, 314.76°)
OKLaboklab(36.36% 0.0848 -0.1102)
OKLCHoklch(36.36% 0.139 307.6)
XYZxyz(7.2337, 4.1660, 17.2492)
Luminance0.0417 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522175 #447521
analogous
#282175 #522175 #75216E
triadic
#522175 #755221 #217552
tetradic
#522175 #752821 #447521 #216E75
square
#522175 #752821 #447521 #216E75
split-complementary
#522175 #6E7521 #217528
monochromatic
#110718 #311445 #522175 #732EA5 #9346CB

Accessibility & contrast

On white

11.46
#522175 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #522175
11.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522175#FFFFFF#000000##FFFFFF
##5221751.0011.461.8311.46
#FFFFFF11.461.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003877
Deuteranopia (green-blind)
#0C3A73
Tritanopia (blue-blind)
#4C3448
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #522175;
/* rgb */ color: rgb(82, 33, 117);
/* oklch */ color: oklch(36.4% 0.139 307.6);
Tailwind
colors: {
  custom: {
    50: '#86619d',
    500: '#522175',
    950: '#000000',
  },
}
SCSS
$custom: #522175;
$custom-light: #86619d;
$custom-dark: #000000;
JSON
{
  "hex": "#522175",
  "rgb": {
    "r": 82,
    "g": 33,
    "b": 117
  },
  "hsl": {
    "h": 275,
    "s": 56,
    "l": 29.412
  },
  "oklch": {
    "l": 0.36365,
    "c": 0.13903,
    "h": 307.6
  },
  "luminance": 0.04166
}

Semantic roles & 50–950 ramp

primary
#522175
secondary
#71A84A
accent
#DF4987
background
#F8F5F9
surface
#F0EAF2
border
#CBC6CC
text
#0B050E
muted
#7C797E

Preview Lab

Preview with #522175

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

Preview Lab → · Contrast checker → · Palette generator →

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