#522783#522783

#522783 is a dark, vivid violet. Relative luminance 0.049; OKLCH L 38.3% C 0.147 H 301.1°. Best body text is #FFFFFF at 10.62:1 contrast (WCAG AA passes).

Color values

HEX#522783
RGBrgb(82, 39, 131)
HSLhsl(268, 54%, 33%)
HSVhsv(268, 70%, 51%)
CMYKcmyk(37.4%, 70.2%, 0%, 48.6%)
CIE-LABlab(26.40, 39.08, -44.21)
CIE-LCHlch(26.40, 59.00, 311.47°)
OKLaboklab(38.27% 0.0759 -0.1259)
OKLCHoklch(38.27% 0.147 301.1)
XYZxyz(8.3009, 4.8835, 21.9736)
Luminance0.0488 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522783 #588327
analogous
#272A83 #522783 #802783
triadic
#522783 #835227 #278352
tetradic
#522783 #83272A #588327 #278380
square
#522783 #83272A #588327 #278380
split-complementary
#522783 #838027 #2A8327
monochromatic
#170B25 #341954 #522783 #7035B2 #8E57CD

Accessibility & contrast

On white

10.62
#522783 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.98
#522783 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522783
10.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522783#FFFFFF#000000##FFFFFF
##5227831.0010.621.9810.62
#FFFFFF10.621.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E86
Deuteranopia (green-blind)
#003E81
Tritanopia (blue-blind)
#473C52
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #522783;
/* rgb */ color: rgb(82, 39, 131);
/* oklch */ color: oklch(38.3% 0.147 301.1);
Tailwind
colors: {
  custom: {
    50: '#8764a8',
    500: '#522783',
    950: '#000000',
  },
}
SCSS
$custom: #522783;
$custom-light: #8764a8;
$custom-dark: #000000;
JSON
{
  "hex": "#522783",
  "rgb": {
    "r": 82,
    "g": 39,
    "b": 131
  },
  "hsl": {
    "h": 268.043,
    "s": 54.118,
    "l": 33.333
  },
  "oklch": {
    "l": 0.38271,
    "c": 0.14698,
    "h": 301.1
  },
  "luminance": 0.04884
}

Semantic roles & 50–950 ramp

primary
#522783
secondary
#86B254
accent
#DD4A99
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0610
muted
#7D7A7F

Preview Lab

Preview with #522783

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

Preview Lab → · Contrast checker → · Palette generator →

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