#522782#522782

#522782 is a dark, vivid violet. Relative luminance 0.049; OKLCH L 38.2% C 0.146 H 301.4°. Best body text is #FFFFFF at 10.65:1 contrast (WCAG AA passes).

Color values

HEX#522782
RGBrgb(82, 39, 130)
HSLhsl(268, 54%, 33%)
HSVhsv(268, 70%, 51%)
CMYKcmyk(36.9%, 70%, 0%, 49%)
CIE-LABlab(26.32, 38.81, -43.71)
CIE-LCHlch(26.32, 58.45, 311.60°)
OKLaboklab(38.19% 0.076 -0.1244)
OKLCHoklch(38.19% 0.146 301.4)
XYZxyz(8.2335, 4.8565, 21.6184)
Luminance0.0486 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522782 #578227
analogous
#272982 #522782 #7F2782
triadic
#522782 #825227 #278252
tetradic
#522782 #822729 #578227 #27827F
square
#522782 #822729 #578227 #27827F
split-complementary
#522782 #827F27 #298227
monochromatic
#170B24 #341953 #522782 #7035B1 #8E57CD

Accessibility & contrast

On white

10.65
#522782 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.97
#522782 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522782
10.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522782#FFFFFF#000000##FFFFFF
##5227821.0010.651.9710.65
#FFFFFF10.651.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E85
Deuteranopia (green-blind)
#003E80
Tritanopia (blue-blind)
#483C51
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #522782;
/* rgb */ color: rgb(82, 39, 130);
/* oklch */ color: oklch(38.2% 0.146 301.4);
Tailwind
colors: {
  custom: {
    50: '#8764a7',
    500: '#522782',
    950: '#000000',
  },
}
SCSS
$custom: #522782;
$custom-light: #8764a7;
$custom-dark: #000000;
JSON
{
  "hex": "#522782",
  "rgb": {
    "r": 82,
    "g": 39,
    "b": 130
  },
  "hsl": {
    "h": 268.352,
    "s": 53.846,
    "l": 33.137
  },
  "oklch": {
    "l": 0.3819,
    "c": 0.1458,
    "h": 301.4
  },
  "luminance": 0.04857
}

Semantic roles & 50–950 ramp

primary
#522782
secondary
#85B153
accent
#DD4B98
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C060F
muted
#7D7A7F

Preview Lab

Preview with #522782

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

Preview Lab → · Contrast checker → · Palette generator →

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