#522698#522698

#522698 is a dark, vivid violet. Relative luminance 0.054; OKLCH L 39.9% C 0.173 H 294.9°. Best body text is #FFFFFF at 10.05:1 contrast (WCAG AA passes).

Color values

HEX#522698
RGBrgb(82, 38, 152)
HSLhsl(263, 60%, 37%)
HSVhsv(263, 75%, 60%)
CMYKcmyk(46.1%, 75%, 0%, 40.4%)
CIE-LABlab(27.97, 45.23, -54.66)
CIE-LCHlch(27.97, 70.95, 309.61°)
OKLaboklab(39.93% 0.0727 -0.1566)
OKLCHoklch(39.93% 0.173 294.9)
XYZxyz(9.8388, 5.4468, 30.2326)
Luminance0.0545 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522698 #6C9826
analogous
#263398 #522698 #8B2698
triadic
#522698 #985226 #269852
tetradic
#522698 #982633 #6C9826 #26988B
square
#522698 #982633 #6C9826 #26988B
split-complementary
#522698 #988B26 #339826
monochromatic
#1D0E36 #381A67 #522698 #6C32C9 #8F61D7

Accessibility & contrast

On white

10.05
#522698 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.09
#522698 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522698
10.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522698#FFFFFF#000000##FFFFFF
##5226981.0010.052.0910.05
#FFFFFF10.051.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00439B
Deuteranopia (green-blind)
#004096
Tritanopia (blue-blind)
#3E445D
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #522698;
/* rgb */ color: rgb(82, 38, 152);
/* oklch */ color: oklch(39.9% 0.173 294.9);
Tailwind
colors: {
  custom: {
    50: '#8a65b7',
    500: '#522698',
    950: '#000000',
  },
}
SCSS
$custom: #522698;
$custom-light: #8a65b7;
$custom-dark: #000000;
JSON
{
  "hex": "#522698",
  "rgb": {
    "r": 82,
    "g": 38,
    "b": 152
  },
  "hsl": {
    "h": 263.158,
    "s": 60,
    "l": 37.255
  },
  "oklch": {
    "l": 0.39933,
    "c": 0.17267,
    "h": 294.9
  },
  "luminance": 0.05447
}

Semantic roles & 50–950 ramp

primary
#522698
secondary
#98BD5D
accent
#E345A6
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #522698

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

Preview Lab → · Contrast checker → · Palette generator →

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