#522F7B#522F7B

#522F7B is a dark, vivid violet. Relative luminance 0.053; OKLCH L 38.8% C 0.125 H 302.1°. Best body text is #FFFFFF at 10.24:1 contrast (WCAG AA passes).

Color values

HEX#522F7B
RGBrgb(82, 47, 123)
HSLhsl(268, 45%, 33%)
HSVhsv(268, 62%, 48%)
CMYKcmyk(33.3%, 61.8%, 0%, 51.8%)
CIE-LABlab(27.45, 32.46, -37.47)
CIE-LCHlch(27.45, 49.58, 310.90°)
OKLaboklab(38.85% 0.0666 -0.1061)
OKLCHoklch(38.85% 0.125 302.1)
XYZxyz(8.0705, 5.2569, 19.3246)
Luminance0.0526 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522F7B #587B2F
analogous
#2F327B #522F7B #782F7B
triadic
#522F7B #7B522F #2F7B52
tetradic
#522F7B #7B2F32 #587B2F #2F7B78
square
#522F7B #7B2F32 #587B2F #2F7B78
split-complementary
#522F7B #7B782F #327B2F
monochromatic
#170D22 #341E4F #522F7B #7040A7 #8E62C3

Accessibility & contrast

On white

10.24
#522F7B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.05
#522F7B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522F7B
10.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522F7B#FFFFFF#000000##FFFFFF
##522F7B1.0010.242.0510.24
#FFFFFF10.241.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#07407D
Deuteranopia (green-blind)
#1A4179
Tritanopia (blue-blind)
#4A3F50
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #522f7b;
/* rgb */ color: rgb(82, 47, 123);
/* oklch */ color: oklch(38.8% 0.125 302.1);
Tailwind
colors: {
  custom: {
    50: '#8669a2',
    500: '#522f7b',
    950: '#000000',
  },
}
SCSS
$custom: #522f7b;
$custom-light: #8669a2;
$custom-dark: #000000;
JSON
{
  "hex": "#522f7b",
  "rgb": {
    "r": 82,
    "g": 47,
    "b": 123
  },
  "hsl": {
    "h": 267.632,
    "s": 44.706,
    "l": 33.333
  },
  "oklch": {
    "l": 0.38846,
    "c": 0.1253,
    "h": 302.1
  },
  "luminance": 0.05257
}

Semantic roles & 50–950 ramp

primary
#522F7B
secondary
#86AA5C
accent
#D45399
background
#F8F6FA
surface
#F0EBF3
border
#CBC6CD
text
#0B060F
muted
#7C7A7F

Preview Lab

Preview with #522F7B

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

Preview Lab → · Contrast checker → · Palette generator →

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