#522FB9#522FB9

#522FB9 is a dark, highly saturated violet. Relative luminance 0.073; OKLCH L 44.1% C 0.201 H 286.5°. Best body text is #FFFFFF at 8.52:1 contrast (WCAG AA passes).

Color values

HEX#522FB9
RGBrgb(82, 47, 185)
HSLhsl(255, 59%, 45%)
HSVhsv(255, 75%, 73%)
CMYKcmyk(55.7%, 74.6%, 0%, 27.5%)
CIE-LABlab(32.54, 50.02, -67.03)
CIE-LCHlch(32.54, 83.63, 306.73°)
OKLaboklab(44.07% 0.057 -0.1929)
OKLCHoklch(44.07% 0.201 286.5)
XYZxyz(13.2505, 7.3289, 46.6059)
Luminance0.0733 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522FB9 #96B92F
analogous
#2F51B9 #522FB9 #972FB9
triadic
#522FB9 #B9522F #2FB952
tetradic
#522FB9 #B92F51 #96B92F #2FB997
square
#522FB9 #B92F51 #96B92F #2FB997
split-complementary
#522FB9 #B9972F #51B92F
monochromatic
#271657 #3C2388 #522FB9 #7352D3 #9A83DF

Accessibility & contrast

On white

8.52
#522FB9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.47
#522FB9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522FB9
8.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522FB9#FFFFFF#000000##FFFFFF
##522FB91.008.522.478.52
#FFFFFF8.521.0021.001.00
#0000002.4721.001.0021.00
##FFFFFF8.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050BD
Deuteranopia (green-blind)
#0049B6
Tritanopia (blue-blind)
#235572
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #522fb9;
/* rgb */ color: rgb(82, 47, 185);
/* oklch */ color: oklch(44.1% 0.201 286.5);
Tailwind
colors: {
  custom: {
    50: '#8e6bcf',
    500: '#522fb9',
    950: '#000000',
  },
}
SCSS
$custom: #522fb9;
$custom-light: #8e6bcf;
$custom-dark: #000000;
JSON
{
  "hex": "#522fb9",
  "rgb": {
    "r": 82,
    "g": 47,
    "b": 185
  },
  "hsl": {
    "h": 255.217,
    "s": 59.483,
    "l": 45.49
  },
  "oklch": {
    "l": 0.44073,
    "c": 0.20115,
    "h": 286.5
  },
  "luminance": 0.0733
}

Semantic roles & 50–950 ramp

primary
#522FB9
secondary
#B5C97B
accent
#E345BB
background
#F9F6FC
surface
#F2EBF9
border
#CCC6D2
text
#0D0714
muted
#7E7A82

Preview Lab

Preview with #522FB9

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

Preview Lab → · Contrast checker → · Palette generator →

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