#522B8E#522B8E

#522B8E is a dark, vivid violet. Relative luminance 0.055; OKLCH L 39.7% C 0.155 H 296.8°. Best body text is #FFFFFF at 10.02:1 contrast (WCAG AA passes).

Color values

HEX#522B8E
RGBrgb(82, 43, 142)
HSLhsl(264, 54%, 36%)
HSVhsv(264, 70%, 56%)
CMYKcmyk(42.3%, 69.7%, 0%, 44.3%)
CIE-LABlab(28.05, 39.93, -48.39)
CIE-LCHlch(28.05, 62.73, 309.53°)
OKLaboklab(39.72% 0.0698 -0.1382)
OKLCHoklch(39.72% 0.155 296.8)
XYZxyz(9.2248, 5.4744, 26.1566)
Luminance0.0548 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522B8E #678E2B
analogous
#2B368E #522B8E #842B8E
triadic
#522B8E #8E522B #2B8E52
tetradic
#522B8E #8E2B36 #678E2B #2B8E84
square
#522B8E #8E2B36 #678E2B #2B8E84
split-complementary
#522B8E #8E842B #368E2B
monochromatic
#1C0F30 #371D5F #522B8E #6D39BD #8E63D0

Accessibility & contrast

On white

10.02
#522B8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.10
#522B8E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522B8E
10.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522B8E#FFFFFF#000000##FFFFFF
##522B8E1.0010.022.1010.02
#FFFFFF10.021.0021.001.00
#0000002.1021.001.0021.00
##FFFFFF10.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004391
Deuteranopia (green-blind)
#00418C
Tritanopia (blue-blind)
#434359
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #522b8e;
/* rgb */ color: rgb(82, 43, 142);
/* oklch */ color: oklch(39.7% 0.155 296.8);
Tailwind
colors: {
  custom: {
    50: '#8867b0',
    500: '#522b8e',
    950: '#000000',
  },
}
SCSS
$custom: #522b8e;
$custom-light: #8867b0;
$custom-dark: #000000;
JSON
{
  "hex": "#522b8e",
  "rgb": {
    "r": 82,
    "g": 43,
    "b": 142
  },
  "hsl": {
    "h": 263.636,
    "s": 53.514,
    "l": 36.275
  },
  "oklch": {
    "l": 0.39723,
    "c": 0.1548,
    "h": 296.8
  },
  "luminance": 0.05475
}

Semantic roles & 50–950 ramp

primary
#522B8E
secondary
#94B65F
accent
#DD4BA3
background
#F8F6FA
surface
#F0EBF5
border
#CBC6CF
text
#0C0610
muted
#7D7A7F

Preview Lab

Preview with #522B8E

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

Preview Lab → · Contrast checker → · Palette generator →

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