#522897#522897

#522897 is a dark, vivid violet. Relative luminance 0.055; OKLCH L 40.1% C 0.169 H 294.8°. Best body text is #FFFFFF at 9.96:1 contrast (WCAG AA passes).

Color values

HEX#522897
RGBrgb(82, 40, 151)
HSLhsl(263, 58%, 37%)
HSVhsv(263, 74%, 59%)
CMYKcmyk(45.7%, 73.5%, 0%, 40.8%)
CIE-LABlab(28.24, 43.97, -53.62)
CIE-LCHlch(28.24, 69.34, 309.35°)
OKLaboklab(40.09% 0.0711 -0.1535)
OKLCHoklch(40.09% 0.169 294.8)
XYZxyz(9.8229, 5.5455, 29.8250)
Luminance0.0555 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522897 #6D9728
analogous
#283597 #522897 #8A2897
triadic
#522897 #975228 #289752
tetradic
#522897 #972835 #6D9728 #28978A
square
#522897 #972835 #6D9728 #28978A
split-complementary
#522897 #978A28 #359728
monochromatic
#1D0E36 #381B67 #522897 #6C35C7 #8F64D6

Accessibility & contrast

On white

9.96
#522897 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.11
#522897 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522897
9.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522897#FFFFFF#000000##FFFFFF
##5228971.009.962.119.96
#FFFFFF9.961.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00449A
Deuteranopia (green-blind)
#004195
Tritanopia (blue-blind)
#3F455D
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #522897;
/* rgb */ color: rgb(82, 40, 151);
/* oklch */ color: oklch(40.1% 0.169 294.8);
Tailwind
colors: {
  custom: {
    50: '#8966b6',
    500: '#522897',
    950: '#000000',
  },
}
SCSS
$custom: #522897;
$custom-light: #8966b6;
$custom-dark: #000000;
JSON
{
  "hex": "#522897",
  "rgb": {
    "r": 82,
    "g": 40,
    "b": 151
  },
  "hsl": {
    "h": 262.703,
    "s": 58.115,
    "l": 37.451
  },
  "oklch": {
    "l": 0.40092,
    "c": 0.16921,
    "h": 294.8
  },
  "luminance": 0.05546
}

Semantic roles & 50–950 ramp

primary
#522897
secondary
#99BC5F
accent
#E146A7
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #522897

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

Preview Lab → · Contrast checker → · Palette generator →

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