#522597#522597

#522597 is a dark, vivid violet. Relative luminance 0.054; OKLCH L 39.7% C 0.173 H 295.3°. Best body text is #FFFFFF at 10.14:1 contrast (WCAG AA passes).

Color values

HEX#522597
RGBrgb(82, 37, 151)
HSLhsl(264, 61%, 37%)
HSVhsv(264, 75%, 59%)
CMYKcmyk(45.7%, 75.5%, 0%, 40.8%)
CIE-LABlab(27.71, 45.45, -54.47)
CIE-LCHlch(27.71, 70.94, 309.84°)
OKLaboklab(39.72% 0.0739 -0.156)
OKLCHoklch(39.72% 0.173 295.3)
XYZxyz(9.7257, 5.3511, 29.7926)
Luminance0.0535 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522597 #6A9725
analogous
#253197 #522597 #8B2597
triadic
#522597 #975225 #259752
tetradic
#522597 #972531 #6A9725 #25978B
square
#522597 #972531 #6A9725 #25978B
split-complementary
#522597 #978B25 #319725
monochromatic
#1D0D35 #371966 #522597 #6D31C8 #8E5FD8

Accessibility & contrast

On white

10.14
#522597 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.07
#522597 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522597
10.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522597#FFFFFF#000000##FFFFFF
##5225971.0010.142.0710.14
#FFFFFF10.141.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00429A
Deuteranopia (green-blind)
#004095
Tritanopia (blue-blind)
#3F435C
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #522597;
/* rgb */ color: rgb(82, 37, 151);
/* oklch */ color: oklch(39.7% 0.173 295.3);
Tailwind
colors: {
  custom: {
    50: '#8964b7',
    500: '#522597',
    950: '#000000',
  },
}
SCSS
$custom: #522597;
$custom-light: #8964b7;
$custom-dark: #000000;
JSON
{
  "hex": "#522597",
  "rgb": {
    "r": 82,
    "g": 37,
    "b": 151
  },
  "hsl": {
    "h": 263.684,
    "s": 60.638,
    "l": 36.863
  },
  "oklch": {
    "l": 0.39723,
    "c": 0.17265,
    "h": 295.3
  },
  "luminance": 0.05351
}

Semantic roles & 50–950 ramp

primary
#522597
secondary
#96BD5B
accent
#E444A5
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #522597

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

Preview Lab → · Contrast checker → · Palette generator →

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