#522F81#522F81

#522F81 is a dark, vivid violet. Relative luminance 0.054; OKLCH L 39.3% C 0.133 H 300.0°. Best body text is #FFFFFF at 10.08:1 contrast (WCAG AA passes).

Color values

HEX#522F81
RGBrgb(82, 47, 129)
HSLhsl(266, 47%, 35%)
HSVhsv(266, 64%, 51%)
CMYKcmyk(36.4%, 63.6%, 0%, 49.4%)
CIE-LABlab(27.88, 34.10, -40.57)
CIE-LCHlch(27.88, 52.99, 310.05°)
OKLaboklab(39.29% 0.0664 -0.1152)
OKLCHoklch(39.29% 0.133 300)
XYZxyz(8.4577, 5.4118, 21.3636)
Luminance0.0541 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522F81 #5E812F
analogous
#2F3581 #522F81 #7B2F81
triadic
#522F81 #81522F #2F8152
tetradic
#522F81 #812F35 #5E812F #2F817B
square
#522F81 #812F35 #5E812F #2F817B
split-complementary
#522F81 #817B2F #35812F
monochromatic
#190E27 #351F54 #522F81 #6F3FAE #8E64C6

Accessibility & contrast

On white

10.08
#522F81 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.08
#522F81 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522F81
10.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522F81#FFFFFF#000000##FFFFFF
##522F811.0010.082.0810.08
#FFFFFF10.081.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004284
Deuteranopia (green-blind)
#11417F
Tritanopia (blue-blind)
#484153
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #522f81;
/* rgb */ color: rgb(82, 47, 129);
/* oklch */ color: oklch(39.3% 0.133 300.0);
Tailwind
colors: {
  custom: {
    50: '#8669a6',
    500: '#522f81',
    950: '#000000',
  },
}
SCSS
$custom: #522f81;
$custom-light: #8669a6;
$custom-dark: #000000;
JSON
{
  "hex": "#522f81",
  "rgb": {
    "r": 82,
    "g": 47,
    "b": 129
  },
  "hsl": {
    "h": 265.61,
    "s": 46.591,
    "l": 34.51
  },
  "oklch": {
    "l": 0.39288,
    "c": 0.13297,
    "h": 300
  },
  "luminance": 0.05412
}

Semantic roles & 50–950 ramp

primary
#522F81
secondary
#8CAD5E
accent
#D6529E
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0B060F
muted
#7C7A7F

Preview Lab

Preview with #522F81

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

Preview Lab → · Contrast checker → · Palette generator →

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