#522F96#522F96

#522F96 is a dark, vivid violet. Relative luminance 0.060; OKLCH L 41.0% C 0.159 H 293.8°. Best body text is #FFFFFF at 9.52:1 contrast (WCAG AA passes).

Color values

HEX#522F96
RGBrgb(82, 47, 150)
HSLhsl(260, 52%, 39%)
HSVhsv(260, 69%, 59%)
CMYKcmyk(45.3%, 68.7%, 0%, 41.2%)
CIE-LABlab(29.48, 39.99, -50.97)
CIE-LCHlch(29.48, 64.78, 308.11°)
OKLaboklab(40.96% 0.0642 -0.1458)
OKLCHoklch(40.96% 0.159 293.8)
XYZxyz(9.9997, 6.0286, 29.4850)
Luminance0.0603 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522F96 #73962F
analogous
#2F4096 #522F96 #852F96
triadic
#522F96 #96522F #2F9652
tetradic
#522F96 #962F40 #73962F #2F9685
square
#522F96 #962F40 #73962F #2F9685
split-complementary
#522F96 #96852F #40962F
monochromatic
#1F1239 #392067 #522F96 #6C3FC3 #906ED2

Accessibility & contrast

On white

9.52
#522F96 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.21
#522F96 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522F96
9.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522F96#FFFFFF#000000##FFFFFF
##522F961.009.522.219.52
#FFFFFF9.521.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004799
Deuteranopia (green-blind)
#004494
Tritanopia (blue-blind)
#3F485E
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #522f96;
/* rgb */ color: rgb(82, 47, 150);
/* oklch */ color: oklch(41.0% 0.159 293.8);
Tailwind
colors: {
  custom: {
    50: '#896ab6',
    500: '#522f96',
    950: '#000000',
  },
}
SCSS
$custom: #522f96;
$custom-light: #896ab6;
$custom-dark: #000000;
JSON
{
  "hex": "#522f96",
  "rgb": {
    "r": 82,
    "g": 47,
    "b": 150
  },
  "hsl": {
    "h": 260.388,
    "s": 52.284,
    "l": 38.627
  },
  "oklch": {
    "l": 0.40956,
    "c": 0.15931,
    "h": 293.8
  },
  "luminance": 0.06029
}

Semantic roles & 50–950 ramp

primary
#522F96
secondary
#9DB968
accent
#DC4CAB
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #522F96

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

Preview Lab → · Contrast checker → · Palette generator →

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