#522A6F#522A6F

#522A6F is a dark, moderate violet. Relative luminance 0.046; OKLCH L 37.2% C 0.118 H 308.5°. Best body text is #FFFFFF at 10.94:1 contrast (WCAG AA passes).

Color values

HEX#522A6F
RGBrgb(82, 42, 111)
HSLhsl(275, 45%, 30%)
HSVhsv(275, 62%, 44%)
CMYKcmyk(26.1%, 62.2%, 0%, 56.5%)
CIE-LABlab(25.56, 32.21, -32.88)
CIE-LCHlch(25.56, 46.03, 314.41°)
OKLaboklab(37.2% 0.0736 -0.0926)
OKLCHoklch(37.2% 0.118 308.5)
XYZxyz(7.1763, 4.5976, 15.5452)
Luminance0.0460 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522A6F #476F2A
analogous
#302A6F #522A6F #6F2A69
triadic
#522A6F #6F522A #2A6F52
tetradic
#522A6F #6F302A #476F2A #2A696F
square
#522A6F #6F302A #476F2A #2A696F
split-complementary
#522A6F #696F2A #2A6F30
monochromatic
#100816 #311943 #522A6F #733B9B #9255BF

Accessibility & contrast

On white

10.94
#522A6F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#522A6F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522A6F
10.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522A6F#FFFFFF#000000##FFFFFF
##522A6F1.0010.941.9210.94
#FFFFFF10.941.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F3B71
Deuteranopia (green-blind)
#203D6D
Tritanopia (blue-blind)
#4E3748
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #522a6f;
/* rgb */ color: rgb(82, 42, 111);
/* oklch */ color: oklch(37.2% 0.118 308.5);
Tailwind
colors: {
  custom: {
    50: '#856699',
    500: '#522a6f',
    950: '#000000',
  },
}
SCSS
$custom: #522a6f;
$custom-light: #856699;
$custom-dark: #000000;
JSON
{
  "hex": "#522a6f",
  "rgb": {
    "r": 82,
    "g": 42,
    "b": 111
  },
  "hsl": {
    "h": 274.783,
    "s": 45.098,
    "l": 30
  },
  "oklch": {
    "l": 0.37199,
    "c": 0.11829,
    "h": 308.5
  },
  "luminance": 0.04597
}

Semantic roles & 50–950 ramp

primary
#522A6F
secondary
#74A154
accent
#D5538A
background
#F8F6F9
surface
#EFEBF2
border
#CAC6CC
text
#0B060E
muted
#7C7A7E

Preview Lab

Preview with #522A6F

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

Preview Lab → · Contrast checker → · Palette generator →

#522A6F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva