#522692#522692

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

Color values

HEX#522692
RGBrgb(82, 38, 146)
HSLhsl(264, 59%, 36%)
HSVhsv(264, 74%, 57%)
CMYKcmyk(43.8%, 74%, 0%, 42.7%)
CIE-LABlab(27.45, 43.61, -51.83)
CIE-LCHlch(27.45, 67.73, 310.08°)
OKLaboklab(39.4% 0.0741 -0.1483)
OKLCHoklch(39.4% 0.166 296.6)
XYZxyz(9.3597, 5.2552, 27.7098)
Luminance0.0525 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522692 #669226
analogous
#263092 #522692 #882692
triadic
#522692 #925226 #269252
tetradic
#522692 #922630 #669226 #269288
square
#522692 #922630 #669226 #269288
split-complementary
#522692 #928826 #309226
monochromatic
#1B0D31 #371961 #522692 #6D33C3 #8E5DD5

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##522692#FFFFFF#000000##FFFFFF
##5226921.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)
#004195
Deuteranopia (green-blind)
#003F90
Tritanopia (blue-blind)
#41425A
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #522692;
/* rgb */ color: rgb(82, 38, 146);
/* oklch */ color: oklch(39.4% 0.166 296.6);
Tailwind
colors: {
  custom: {
    50: '#8965b3',
    500: '#522692',
    950: '#000000',
  },
}
SCSS
$custom: #522692;
$custom-light: #8965b3;
$custom-dark: #000000;
JSON
{
  "hex": "#522692",
  "rgb": {
    "r": 82,
    "g": 38,
    "b": 146
  },
  "hsl": {
    "h": 264.444,
    "s": 58.696,
    "l": 36.078
  },
  "oklch": {
    "l": 0.39403,
    "c": 0.16578,
    "h": 296.6
  },
  "luminance": 0.05255
}

Semantic roles & 50–950 ramp

primary
#522692
secondary
#93BA5A
accent
#E246A2
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #522692

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

Preview Lab → · Contrast checker → · Palette generator →

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