#522792#522792

#522792 is a dark, vivid violet. Relative luminance 0.053; OKLCH L 39.5% C 0.165 H 296.4°. Best body text is #FFFFFF at 10.17:1 contrast (WCAG AA passes).

Color values

HEX#522792
RGBrgb(82, 39, 146)
HSLhsl(264, 58%, 36%)
HSVhsv(264, 73%, 57%)
CMYKcmyk(43.8%, 73.3%, 0%, 42.7%)
CIE-LABlab(27.63, 43.11, -51.54)
CIE-LCHlch(27.63, 67.19, 309.91°)
OKLaboklab(39.53% 0.0732 -0.1474)
OKLCHoklch(39.53% 0.165 296.4)
XYZxyz(9.3921, 5.3200, 27.7206)
Luminance0.0532 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522792 #679227
analogous
#273292 #522792 #882792
triadic
#522792 #925227 #279252
tetradic
#522792 #922732 #679227 #279288
square
#522792 #922732 #679227 #279288
split-complementary
#522792 #928827 #329227
monochromatic
#1C0D31 #371A62 #522792 #6D34C2 #8E5FD4

Accessibility & contrast

On white

10.17
#522792 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.06
#522792 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522792
10.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522792#FFFFFF#000000##FFFFFF
##5227921.0010.172.0610.17
#FFFFFF10.171.0021.001.00
#0000002.0621.001.0021.00
##FFFFFF10.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004295
Deuteranopia (green-blind)
#004090
Tritanopia (blue-blind)
#41425A
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #522792;
/* rgb */ color: rgb(82, 39, 146);
/* oklch */ color: oklch(39.5% 0.165 296.4);
Tailwind
colors: {
  custom: {
    50: '#8965b3',
    500: '#522792',
    950: '#000000',
  },
}
SCSS
$custom: #522792;
$custom-light: #8965b3;
$custom-dark: #000000;
JSON
{
  "hex": "#522792",
  "rgb": {
    "r": 82,
    "g": 39,
    "b": 146
  },
  "hsl": {
    "h": 264.112,
    "s": 57.838,
    "l": 36.275
  },
  "oklch": {
    "l": 0.39529,
    "c": 0.16458,
    "h": 296.4
  },
  "luminance": 0.0532
}

Semantic roles & 50–950 ramp

primary
#522792
secondary
#94BA5B
accent
#E147A3
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #522792

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

Preview Lab → · Contrast checker → · Palette generator →

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