#522793#522793

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

Color values

HEX#522793
RGBrgb(82, 39, 147)
HSLhsl(264, 58%, 36%)
HSVhsv(264, 73%, 58%)
CMYKcmyk(44.2%, 73.5%, 0%, 42.4%)
CIE-LABlab(27.71, 43.38, -52.02)
CIE-LCHlch(27.71, 67.73, 309.83°)
OKLaboklab(39.62% 0.0729 -0.1488)
OKLCHoklch(39.62% 0.166 296.1)
XYZxyz(9.4703, 5.3512, 28.1320)
Luminance0.0535 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522793 #689327
analogous
#273293 #522793 #882793
triadic
#522793 #935227 #279352
tetradic
#522793 #932732 #689327 #279388
square
#522793 #932732 #689327 #279388
split-complementary
#522793 #938827 #329327
monochromatic
#1C0D32 #371A63 #522793 #6D34C3 #8E60D5

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##522793#FFFFFF#000000##FFFFFF
##5227931.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)
#004296
Deuteranopia (green-blind)
#004091
Tritanopia (blue-blind)
#41435A
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #522793;
/* rgb */ color: rgb(82, 39, 147);
/* oklch */ color: oklch(39.6% 0.166 296.1);
Tailwind
colors: {
  custom: {
    50: '#8965b4',
    500: '#522793',
    950: '#000000',
  },
}
SCSS
$custom: #522793;
$custom-light: #8965b4;
$custom-dark: #000000;
JSON
{
  "hex": "#522793",
  "rgb": {
    "r": 82,
    "g": 39,
    "b": 147
  },
  "hsl": {
    "h": 263.889,
    "s": 58.065,
    "l": 36.471
  },
  "oklch": {
    "l": 0.39616,
    "c": 0.16574,
    "h": 296.1
  },
  "luminance": 0.05351
}

Semantic roles & 50–950 ramp

primary
#522793
secondary
#95BA5C
accent
#E147A4
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #522793

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

Preview Lab → · Contrast checker → · Palette generator →

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