#522F76#522F76

#522F76 is a dark, moderate violet. Relative luminance 0.051; OKLCH L 38.5% C 0.119 H 304.1°. Best body text is #FFFFFF at 10.36:1 contrast (WCAG AA passes).

Color values

HEX#522F76
RGBrgb(82, 47, 118)
HSLhsl(270, 43%, 32%)
HSVhsv(270, 60%, 46%)
CMYKcmyk(30.5%, 60.2%, 0%, 53.7%)
CIE-LABlab(27.12, 31.12, -34.85)
CIE-LCHlch(27.12, 46.72, 311.76°)
OKLaboklab(38.49% 0.0666 -0.0984)
OKLCHoklch(38.49% 0.119 304.1)
XYZxyz(7.7655, 5.1349, 17.7181)
Luminance0.0513 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522F76 #53762F
analogous
#2F3076 #522F76 #752F76
triadic
#522F76 #76522F #2F7652
tetradic
#522F76 #762F30 #53762F #2F7675
square
#522F76 #762F30 #53762F #2F7675
split-complementary
#522F76 #76752F #30762F
monochromatic
#150C1E #341E4A #522F76 #7040A2 #8F60C0

Accessibility & contrast

On white

10.36
#522F76 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.03
#522F76 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522F76
10.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522F76#FFFFFF#000000##FFFFFF
##522F761.0010.362.0310.36
#FFFFFF10.361.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#113F78
Deuteranopia (green-blind)
#204074
Tritanopia (blue-blind)
#4C3D4D
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #522f76;
/* rgb */ color: rgb(82, 47, 118);
/* oklch */ color: oklch(38.5% 0.119 304.1);
Tailwind
colors: {
  custom: {
    50: '#85699e',
    500: '#522f76',
    950: '#000000',
  },
}
SCSS
$custom: #522f76;
$custom-light: #85699e;
$custom-dark: #000000;
JSON
{
  "hex": "#522f76",
  "rgb": {
    "r": 82,
    "g": 47,
    "b": 118
  },
  "hsl": {
    "h": 269.577,
    "s": 43.03,
    "l": 32.353
  },
  "oklch": {
    "l": 0.38489,
    "c": 0.11887,
    "h": 304.1
  },
  "luminance": 0.05135
}

Semantic roles & 50–950 ramp

primary
#522F76
secondary
#81A75A
accent
#D35595
background
#F8F6F9
surface
#EFEBF2
border
#CAC6CC
text
#0B060E
muted
#7C7A7E

Preview Lab

Preview with #522F76

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

Preview Lab → · Contrast checker → · Palette generator →

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