#522F8F#522F8F

#522F8F is a dark, vivid violet. Relative luminance 0.058; OKLCH L 40.4% C 0.151 H 295.6°. Best body text is #FFFFFF at 9.71:1 contrast (WCAG AA passes).

Color values

HEX#522F8F
RGBrgb(82, 47, 143)
HSLhsl(262, 51%, 37%)
HSVhsv(262, 67%, 56%)
CMYKcmyk(42.7%, 67.1%, 0%, 43.9%)
CIE-LABlab(28.93, 38.00, -47.57)
CIE-LCHlch(28.93, 60.89, 308.62°)
OKLaboklab(40.38% 0.0652 -0.1358)
OKLCHoklch(40.38% 0.151 295.6)
XYZxyz(9.4528, 5.8098, 26.6046)
Luminance0.0581 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522F8F #6C8F2F
analogous
#2F3C8F #522F8F #822F8F
triadic
#522F8F #8F522F #2F8F52
tetradic
#522F8F #8F2F3C #6C8F2F #2F8F82
square
#522F8F #8F2F3C #6C8F2F #2F8F82
split-complementary
#522F8F #8F822F #3C8F2F
monochromatic
#1D1133 #382061 #522F8F #6C3EBD #8F6ACE

Accessibility & contrast

On white

9.71
#522F8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.16
#522F8F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522F8F
9.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522F8F#FFFFFF#000000##FFFFFF
##522F8F1.009.712.169.71
#FFFFFF9.711.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004592
Deuteranopia (green-blind)
#00438D
Tritanopia (blue-blind)
#42465B
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #522f8f;
/* rgb */ color: rgb(82, 47, 143);
/* oklch */ color: oklch(40.4% 0.151 295.6);
Tailwind
colors: {
  custom: {
    50: '#886ab0',
    500: '#522f8f',
    950: '#000000',
  },
}
SCSS
$custom: #522f8f;
$custom-light: #886ab0;
$custom-dark: #000000;
JSON
{
  "hex": "#522f8f",
  "rgb": {
    "r": 82,
    "g": 47,
    "b": 143
  },
  "hsl": {
    "h": 261.875,
    "s": 50.526,
    "l": 37.255
  },
  "oklch": {
    "l": 0.40381,
    "c": 0.15063,
    "h": 295.6
  },
  "luminance": 0.0581
}

Semantic roles & 50–950 ramp

primary
#522F8F
secondary
#98B565
accent
#DA4EA7
background
#F8F6FA
surface
#F0EBF5
border
#CBC6CF
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #522F8F

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

Preview Lab → · Contrast checker → · Palette generator →

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