#522F7C#522F7C

#522F7C is a dark, vivid violet. Relative luminance 0.053; OKLCH L 38.9% C 0.127 H 301.7°. Best body text is #FFFFFF at 10.21:1 contrast (WCAG AA passes).

Color values

HEX#522F7C
RGBrgb(82, 47, 124)
HSLhsl(267, 45%, 34%)
HSVhsv(267, 62%, 49%)
CMYKcmyk(33.9%, 62.1%, 0%, 51.4%)
CIE-LABlab(27.52, 32.73, -37.99)
CIE-LCHlch(27.52, 50.15, 310.75°)
OKLaboklab(38.92% 0.0666 -0.1076)
OKLCHoklch(38.92% 0.127 301.7)
XYZxyz(8.1334, 5.2821, 19.6559)
Luminance0.0528 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522F7C #597C2F
analogous
#2F327C #522F7C #782F7C
triadic
#522F7C #7C522F #2F7C52
tetradic
#522F7C #7C2F32 #597C2F #2F7C78
square
#522F7C #7C2F32 #597C2F #2F7C78
split-complementary
#522F7C #7C782F #327C2F
monochromatic
#170D23 #351E50 #522F7C #6F40A8 #8E62C3

Accessibility & contrast

On white

10.21
#522F7C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #522F7C
10.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522F7C#FFFFFF#000000##FFFFFF
##522F7C1.0010.212.0610.21
#FFFFFF10.211.0021.001.00
#0000002.0621.001.0021.00
##FFFFFF10.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#05407E
Deuteranopia (green-blind)
#19417A
Tritanopia (blue-blind)
#4A3F51
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #522f7c;
/* rgb */ color: rgb(82, 47, 124);
/* oklch */ color: oklch(38.9% 0.127 301.7);
Tailwind
colors: {
  custom: {
    50: '#8669a2',
    500: '#522f7c',
    950: '#000000',
  },
}
SCSS
$custom: #522f7c;
$custom-light: #8669a2;
$custom-dark: #000000;
JSON
{
  "hex": "#522f7c",
  "rgb": {
    "r": 82,
    "g": 47,
    "b": 124
  },
  "hsl": {
    "h": 267.273,
    "s": 45.029,
    "l": 33.529
  },
  "oklch": {
    "l": 0.38918,
    "c": 0.12658,
    "h": 301.7
  },
  "luminance": 0.05282
}

Semantic roles & 50–950 ramp

primary
#522F7C
secondary
#87AA5C
accent
#D5539A
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0B060F
muted
#7C7A7F

Preview Lab

Preview with #522F7C

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

Preview Lab → · Contrast checker → · Palette generator →

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