#522FB7#522FB7

#522FB7 is a dark, vivid violet. Relative luminance 0.072; OKLCH L 43.9% C 0.199 H 286.8°. Best body text is #FFFFFF at 8.57:1 contrast (WCAG AA passes).

Color values

HEX#522FB7
RGBrgb(82, 47, 183)
HSLhsl(255, 59%, 45%)
HSVhsv(255, 74%, 72%)
CMYKcmyk(55.2%, 74.3%, 0%, 28.2%)
CIE-LABlab(32.36, 49.44, -66.15)
CIE-LCHlch(32.36, 82.59, 306.78°)
OKLaboklab(43.89% 0.0575 -0.1903)
OKLCHoklch(43.89% 0.199 286.8)
XYZxyz(13.0409, 7.2451, 45.5018)
Luminance0.0725 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522FB7 #94B72F
analogous
#2F50B7 #522FB7 #962FB7
triadic
#522FB7 #B7522F #2FB752
tetradic
#522FB7 #B72F50 #94B72F #2FB796
square
#522FB7 #B72F50 #94B72F #2FB796
split-complementary
#522FB7 #B7962F #50B72F
monochromatic
#261656 #3C2286 #522FB7 #7251D2 #9A82DF

Accessibility & contrast

On white

8.57
#522FB7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.45
#522FB7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522FB7
8.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522FB7#FFFFFF#000000##FFFFFF
##522FB71.008.572.458.57
#FFFFFF8.571.0021.001.00
#0000002.4521.001.0021.00
##FFFFFF8.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FBB
Deuteranopia (green-blind)
#0048B4
Tritanopia (blue-blind)
#265471
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #522fb7;
/* rgb */ color: rgb(82, 47, 183);
/* oklch */ color: oklch(43.9% 0.199 286.8);
Tailwind
colors: {
  custom: {
    50: '#8d6bce',
    500: '#522fb7',
    950: '#000000',
  },
}
SCSS
$custom: #522fb7;
$custom-light: #8d6bce;
$custom-dark: #000000;
JSON
{
  "hex": "#522fb7",
  "rgb": {
    "r": 82,
    "g": 47,
    "b": 183
  },
  "hsl": {
    "h": 255.441,
    "s": 59.13,
    "l": 45.098
  },
  "oklch": {
    "l": 0.43885,
    "c": 0.19884,
    "h": 286.8
  },
  "luminance": 0.07246
}

Semantic roles & 50–950 ramp

primary
#522FB7
secondary
#B4C87A
accent
#E245BA
background
#F9F6FC
surface
#F2EBF9
border
#CCC6D2
text
#0D0714
muted
#7E7A82

Preview Lab

Preview with #522FB7

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

Preview Lab → · Contrast checker → · Palette generator →

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