#522F7E#522F7E

#522F7E is a dark, vivid violet. Relative luminance 0.053; OKLCH L 39.1% C 0.129 H 301.0°. Best body text is #FFFFFF at 10.16:1 contrast (WCAG AA passes).

Color values

HEX#522F7E
RGBrgb(82, 47, 126)
HSLhsl(267, 46%, 34%)
HSVhsv(267, 63%, 49%)
CMYKcmyk(34.9%, 62.7%, 0%, 50.6%)
CIE-LABlab(27.66, 33.28, -39.03)
CIE-LCHlch(27.66, 51.29, 310.45°)
OKLaboklab(39.07% 0.0665 -0.1107)
OKLCHoklch(39.07% 0.129 301)
XYZxyz(8.2612, 5.3332, 20.3288)
Luminance0.0533 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522F7E #5B7E2F
analogous
#2F347E #522F7E #7A2F7E
triadic
#522F7E #7E522F #2F7E52
tetradic
#522F7E #7E2F34 #5B7E2F #2F7E7A
square
#522F7E #7E2F34 #5B7E2F #2F7E7A
split-complementary
#522F7E #7E7A2F #347E2F
monochromatic
#180E25 #351E51 #522F7E #6F40AB #8E63C5

Accessibility & contrast

On white

10.16
#522F7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.07
#522F7E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522F7E
10.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522F7E#FFFFFF#000000##FFFFFF
##522F7E1.0010.162.0710.16
#FFFFFF10.161.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004181
Deuteranopia (green-blind)
#16417C
Tritanopia (blue-blind)
#494052
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #522f7e;
/* rgb */ color: rgb(82, 47, 126);
/* oklch */ color: oklch(39.1% 0.129 301.0);
Tailwind
colors: {
  custom: {
    50: '#8669a4',
    500: '#522f7e',
    950: '#000000',
  },
}
SCSS
$custom: #522f7e;
$custom-light: #8669a4;
$custom-dark: #000000;
JSON
{
  "hex": "#522f7e",
  "rgb": {
    "r": 82,
    "g": 47,
    "b": 126
  },
  "hsl": {
    "h": 266.582,
    "s": 45.665,
    "l": 33.922
  },
  "oklch": {
    "l": 0.39065,
    "c": 0.12914,
    "h": 301
  },
  "luminance": 0.05333
}

Semantic roles & 50–950 ramp

primary
#522F7E
secondary
#89AC5D
accent
#D5529B
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0B060F
muted
#7C7A7F

Preview Lab

Preview with #522F7E

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

Preview Lab → · Contrast checker → · Palette generator →

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