#522790#522790

#522790 is a dark, vivid violet. Relative luminance 0.053; OKLCH L 39.4% C 0.162 H 297.0°. Best body text is #FFFFFF at 10.24:1 contrast (WCAG AA passes).

Color values

HEX#522790
RGBrgb(82, 39, 144)
HSLhsl(265, 57%, 36%)
HSVhsv(265, 73%, 56%)
CMYKcmyk(43.1%, 72.9%, 0%, 43.5%)
CIE-LABlab(27.46, 42.57, -50.58)
CIE-LCHlch(27.46, 66.11, 310.08°)
OKLaboklab(39.36% 0.0736 -0.1446)
OKLCHoklch(39.36% 0.162 297)
XYZxyz(9.2379, 5.2583, 26.9084)
Luminance0.0526 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522790 #659027
analogous
#273190 #522790 #862790
triadic
#522790 #905227 #279052
tetradic
#522790 #902731 #659027 #279086
square
#522790 #902731 #659027 #279086
split-complementary
#522790 #908627 #319027
monochromatic
#1B0D30 #371A60 #522790 #6D34C0 #8E5ED3

Accessibility & contrast

On white

10.24
#522790 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.05
#522790 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522790
10.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522790#FFFFFF#000000##FFFFFF
##5227901.0010.242.0510.24
#FFFFFF10.241.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004193
Deuteranopia (green-blind)
#00408E
Tritanopia (blue-blind)
#424159
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #522790;
/* rgb */ color: rgb(82, 39, 144);
/* oklch */ color: oklch(39.4% 0.162 297.0);
Tailwind
colors: {
  custom: {
    50: '#8865b1',
    500: '#522790',
    950: '#000000',
  },
}
SCSS
$custom: #522790;
$custom-light: #8865b1;
$custom-dark: #000000;
JSON
{
  "hex": "#522790",
  "rgb": {
    "r": 82,
    "g": 39,
    "b": 144
  },
  "hsl": {
    "h": 264.571,
    "s": 57.377,
    "l": 35.882
  },
  "oklch": {
    "l": 0.39356,
    "c": 0.16225,
    "h": 297
  },
  "luminance": 0.05258
}

Semantic roles & 50–950 ramp

primary
#522790
secondary
#92B95A
accent
#E147A2
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #522790

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

Preview Lab → · Contrast checker → · Palette generator →

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