#522F7D#522F7D

#522F7D is a dark, vivid violet. Relative luminance 0.053; OKLCH L 39.0% C 0.128 H 301.4°. Best body text is #FFFFFF at 10.19:1 contrast (WCAG AA passes).

Color values

HEX#522F7D
RGBrgb(82, 47, 125)
HSLhsl(267, 45%, 34%)
HSVhsv(267, 62%, 49%)
CMYKcmyk(34.4%, 62.4%, 0%, 51%)
CIE-LABlab(27.59, 33.00, -38.51)
CIE-LCHlch(27.59, 50.72, 310.60°)
OKLaboklab(38.99% 0.0666 -0.1092)
OKLCHoklch(38.99% 0.128 301.4)
XYZxyz(8.1970, 5.3075, 19.9907)
Luminance0.0531 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522F7D #5A7D2F
analogous
#2F337D #522F7D #792F7D
triadic
#522F7D #7D522F #2F7D52
tetradic
#522F7D #7D2F33 #5A7D2F #2F7D79
square
#522F7D #7D2F33 #5A7D2F #2F7D79
split-complementary
#522F7D #7D792F #337D2F
monochromatic
#180E24 #351E51 #522F7D #6F40A9 #8E62C4

Accessibility & contrast

On white

10.19
#522F7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.06
#522F7D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522F7D
10.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522F7D#FFFFFF#000000##FFFFFF
##522F7D1.0010.192.0610.19
#FFFFFF10.191.0021.001.00
#0000002.0621.001.0021.00
##FFFFFF10.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#024180
Deuteranopia (green-blind)
#17417B
Tritanopia (blue-blind)
#493F51
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #522f7d;
/* rgb */ color: rgb(82, 47, 125);
/* oklch */ color: oklch(39.0% 0.128 301.4);
Tailwind
colors: {
  custom: {
    50: '#8669a3',
    500: '#522f7d',
    950: '#000000',
  },
}
SCSS
$custom: #522f7d;
$custom-light: #8669a3;
$custom-dark: #000000;
JSON
{
  "hex": "#522f7d",
  "rgb": {
    "r": 82,
    "g": 47,
    "b": 125
  },
  "hsl": {
    "h": 266.923,
    "s": 45.349,
    "l": 33.725
  },
  "oklch": {
    "l": 0.38991,
    "c": 0.12786,
    "h": 301.4
  },
  "luminance": 0.05308
}

Semantic roles & 50–950 ramp

primary
#522F7D
secondary
#88AB5D
accent
#D5539B
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0B060F
muted
#7C7A7F

Preview Lab

Preview with #522F7D

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

Preview Lab → · Contrast checker → · Palette generator →

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