#522470#522470

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

Color values

HEX#522470
RGBrgb(82, 36, 112)
HSLhsl(276, 51%, 29%)
HSVhsv(276, 68%, 44%)
CMYKcmyk(26.8%, 67.9%, 0%, 56.1%)
CIE-LABlab(24.40, 35.77, -35.37)
CIE-LCHlch(24.40, 50.31, 315.32°)
OKLaboklab(36.39% 0.0816 -0.0999)
OKLCHoklch(36.39% 0.129 309.2)
XYZxyz(7.0346, 4.2256, 15.7711)
Luminance0.0423 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522470 #427024
analogous
#2C2470 #522470 #702468
triadic
#522470 #705224 #247052
tetradic
#522470 #702C24 #427024 #246870
square
#522470 #702C24 #427024 #246870
split-complementary
#522470 #687024 #24702C
monochromatic
#110717 #301542 #522470 #74339E #944AC5

Accessibility & contrast

On white

11.38
#522470 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#522470 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522470
11.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522470#FFFFFF#000000##FFFFFF
##5224701.0011.381.8511.38
#FFFFFF11.381.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003872
Deuteranopia (green-blind)
#183B6E
Tritanopia (blue-blind)
#4E3446
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #522470;
/* rgb */ color: rgb(82, 36, 112);
/* oklch */ color: oklch(36.4% 0.129 309.2);
Tailwind
colors: {
  custom: {
    50: '#856299',
    500: '#522470',
    950: '#000000',
  },
}
SCSS
$custom: #522470;
$custom-light: #856299;
$custom-dark: #000000;
JSON
{
  "hex": "#522470",
  "rgb": {
    "r": 82,
    "g": 36,
    "b": 112
  },
  "hsl": {
    "h": 276.316,
    "s": 51.351,
    "l": 29.02
  },
  "oklch": {
    "l": 0.36386,
    "c": 0.12899,
    "h": 309.2
  },
  "luminance": 0.04225
}

Semantic roles & 50–950 ramp

primary
#522470
secondary
#6FA34D
accent
#DB4D85
background
#F8F5F9
surface
#F0EAF2
border
#CBC6CC
text
#0B050E
muted
#7C797E

Preview Lab

Preview with #522470

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

Preview Lab → · Contrast checker → · Palette generator →

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