#522E7F#522E7F

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

Color values

HEX#522E7F
RGBrgb(82, 46, 127)
HSLhsl(267, 47%, 34%)
HSVhsv(267, 64%, 50%)
CMYKcmyk(35.4%, 63.8%, 0%, 50.2%)
CIE-LABlab(27.52, 34.13, -39.89)
CIE-LCHlch(27.52, 52.50, 310.55°)
OKLaboklab(38.98% 0.0678 -0.1132)
OKLCHoklch(38.98% 0.132 300.9)
XYZxyz(8.2865, 5.2801, 20.6572)
Luminance0.0528 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522E7F #5B7F2E
analogous
#2E337F #522E7F #7B2E7F
triadic
#522E7F #7F522E #2E7F52
tetradic
#522E7F #7F2E33 #5B7F2E #2E7F7B
square
#522E7F #7F2E33 #5B7F2E #2E7F7B
split-complementary
#522E7F #7F7B2E #337F2E
monochromatic
#180D25 #351E52 #522E7F #6F3EAC #8E61C6

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##522E7F#FFFFFF#000000##FFFFFF
##522E7F1.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)
#004182
Deuteranopia (green-blind)
#12417D
Tritanopia (blue-blind)
#493F52
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #522e7f;
/* rgb */ color: rgb(82, 46, 127);
/* oklch */ color: oklch(39.0% 0.132 300.9);
Tailwind
colors: {
  custom: {
    50: '#8669a5',
    500: '#522e7f',
    950: '#000000',
  },
}
SCSS
$custom: #522e7f;
$custom-light: #8669a5;
$custom-dark: #000000;
JSON
{
  "hex": "#522e7f",
  "rgb": {
    "r": 82,
    "g": 46,
    "b": 127
  },
  "hsl": {
    "h": 266.667,
    "s": 46.821,
    "l": 33.922
  },
  "oklch": {
    "l": 0.38982,
    "c": 0.13195,
    "h": 300.9
  },
  "luminance": 0.0528
}

Semantic roles & 50–950 ramp

primary
#522E7F
secondary
#89AD5C
accent
#D6519B
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0B060F
muted
#7C7A7F

Preview Lab

Preview with #522E7F

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

Preview Lab → · Contrast checker → · Palette generator →

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