#522682#522682

#522682 is a dark, vivid violet. Relative luminance 0.048; OKLCH L 38.1% C 0.147 H 301.6°. Best body text is #FFFFFF at 10.72:1 contrast (WCAG AA passes).

Color values

HEX#522682
RGBrgb(82, 38, 130)
HSLhsl(269, 55%, 33%)
HSVhsv(269, 71%, 51%)
CMYKcmyk(36.9%, 70.8%, 0%, 49%)
CIE-LABlab(26.13, 39.34, -44.01)
CIE-LCHlch(26.13, 59.03, 311.79°)
OKLaboklab(38.06% 0.0772 -0.1253)
OKLCHoklch(38.06% 0.147 301.6)
XYZxyz(8.2011, 4.7917, 21.6076)
Luminance0.0479 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522682 #568226
analogous
#262882 #522682 #802682
triadic
#522682 #825226 #268252
tetradic
#522682 #822628 #568226 #268280
square
#522682 #822628 #568226 #268280
split-complementary
#522682 #828026 #288226
monochromatic
#160A23 #341853 #522682 #7034B1 #8F55CD

Accessibility & contrast

On white

10.72
#522682 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.96
#522682 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522682
10.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522682#FFFFFF#000000##FFFFFF
##5226821.0010.721.9610.72
#FFFFFF10.721.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D85
Deuteranopia (green-blind)
#003D80
Tritanopia (blue-blind)
#483B51
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #522682;
/* rgb */ color: rgb(82, 38, 130);
/* oklch */ color: oklch(38.1% 0.147 301.6);
Tailwind
colors: {
  custom: {
    50: '#8764a7',
    500: '#522682',
    950: '#000000',
  },
}
SCSS
$custom: #522682;
$custom-light: #8764a7;
$custom-dark: #000000;
JSON
{
  "hex": "#522682",
  "rgb": {
    "r": 82,
    "g": 38,
    "b": 130
  },
  "hsl": {
    "h": 268.696,
    "s": 54.762,
    "l": 32.941
  },
  "oklch": {
    "l": 0.38055,
    "c": 0.14716,
    "h": 301.6
  },
  "luminance": 0.04792
}

Semantic roles & 50–950 ramp

primary
#522682
secondary
#84B252
accent
#DE4A97
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C060F
muted
#7D7A7F

Preview Lab

Preview with #522682

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

Preview Lab → · Contrast checker → · Palette generator →

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