#522174#522174

#522174 is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.3% C 0.138 H 308.0°. Best body text is #FFFFFF at 11.48:1 contrast (WCAG AA passes).

Color values

HEX#522174
RGBrgb(82, 33, 116)
HSLhsl(275, 56%, 29%)
HSVhsv(275, 72%, 45%)
CMYKcmyk(29.3%, 71.6%, 0%, 54.5%)
CIE-LABlab(24.14, 38.31, -38.37)
CIE-LCHlch(24.14, 54.22, 314.96°)
OKLaboklab(36.29% 0.0849 -0.1087)
OKLCHoklch(36.29% 0.138 308)
XYZxyz(7.1753, 4.1426, 16.9412)
Luminance0.0414 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522174 #437421
analogous
#292174 #522174 #74216D
triadic
#522174 #745221 #217452
tetradic
#522174 #742921 #437421 #216D74
square
#522174 #742921 #437421 #216D74
split-complementary
#522174 #6D7421 #217429
monochromatic
#110718 #301344 #522174 #742FA4 #9445CA

Accessibility & contrast

On white

11.48
#522174 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #522174
11.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522174#FFFFFF#000000##FFFFFF
##5221741.0011.481.8311.48
#FFFFFF11.481.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003876
Deuteranopia (green-blind)
#0E3A72
Tritanopia (blue-blind)
#4D3348
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #522174;
/* rgb */ color: rgb(82, 33, 116);
/* oklch */ color: oklch(36.3% 0.138 308.0);
Tailwind
colors: {
  custom: {
    50: '#86609d',
    500: '#522174',
    950: '#000000',
  },
}
SCSS
$custom: #522174;
$custom-light: #86609d;
$custom-dark: #000000;
JSON
{
  "hex": "#522174",
  "rgb": {
    "r": 82,
    "g": 33,
    "b": 116
  },
  "hsl": {
    "h": 275.422,
    "s": 55.705,
    "l": 29.216
  },
  "oklch": {
    "l": 0.36288,
    "c": 0.1379,
    "h": 308
  },
  "luminance": 0.04143
}

Semantic roles & 50–950 ramp

primary
#522174
secondary
#70A749
accent
#DF4986
background
#F8F5F9
surface
#F0EAF2
border
#CBC6CC
text
#0B050E
muted
#7C797E

Preview Lab

Preview with #522174

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

Preview Lab → · Contrast checker → · Palette generator →

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