#522F98#522F98

#522F98 is a dark, vivid violet. Relative luminance 0.061; OKLCH L 41.1% C 0.162 H 293.3°. Best body text is #FFFFFF at 9.46:1 contrast (WCAG AA passes).

Color values

HEX#522F98
RGBrgb(82, 47, 152)
HSLhsl(260, 53%, 39%)
HSVhsv(260, 69%, 60%)
CMYKcmyk(46.1%, 69.1%, 0%, 40.4%)
CIE-LABlab(29.65, 40.56, -51.93)
CIE-LCHlch(29.65, 65.89, 307.99°)
OKLaboklab(41.12% 0.0639 -0.1486)
OKLCHoklch(41.12% 0.162 293.3)
XYZxyz(10.1621, 6.0936, 30.3404)
Luminance0.0609 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522F98 #75982F
analogous
#2F4198 #522F98 #872F98
triadic
#522F98 #98522F #2F9852
tetradic
#522F98 #982F41 #75982F #2F9887
square
#522F98 #982F41 #75982F #2F9887
split-complementary
#522F98 #98872F #41982F
monochromatic
#20123B #392169 #522F98 #6C40C4 #906FD2

Accessibility & contrast

On white

9.46
#522F98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.22
#522F98 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522F98
9.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522F98#FFFFFF#000000##FFFFFF
##522F981.009.462.229.46
#FFFFFF9.461.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00479B
Deuteranopia (green-blind)
#004496
Tritanopia (blue-blind)
#3E495F
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #522f98;
/* rgb */ color: rgb(82, 47, 152);
/* oklch */ color: oklch(41.1% 0.162 293.3);
Tailwind
colors: {
  custom: {
    50: '#896ab7',
    500: '#522f98',
    950: '#000000',
  },
}
SCSS
$custom: #522f98;
$custom-light: #896ab7;
$custom-dark: #000000;
JSON
{
  "hex": "#522f98",
  "rgb": {
    "r": 82,
    "g": 47,
    "b": 152
  },
  "hsl": {
    "h": 260,
    "s": 52.764,
    "l": 39.02
  },
  "oklch": {
    "l": 0.41124,
    "c": 0.16176,
    "h": 293.3
  },
  "luminance": 0.06094
}

Semantic roles & 50–950 ramp

primary
#522F98
secondary
#9FBA69
accent
#DC4CAC
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0711
muted
#7D7A80

Preview Lab

Preview with #522F98

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

Preview Lab → · Contrast checker → · Palette generator →

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