#522FB1#522FB1

#522FB1 is a dark, vivid violet. Relative luminance 0.070; OKLCH L 43.3% C 0.192 H 287.9°. Best body text is #FFFFFF at 8.75:1 contrast (WCAG AA passes).

Color values

HEX#522FB1
RGBrgb(82, 47, 177)
HSLhsl(256, 58%, 44%)
HSVhsv(256, 73%, 69%)
CMYKcmyk(53.7%, 73.4%, 0%, 30.6%)
CIE-LABlab(31.81, 47.72, -63.49)
CIE-LCHlch(31.81, 79.42, 306.93°)
OKLaboklab(43.33% 0.0589 -0.1825)
OKLCHoklch(43.33% 0.192 287.9)
XYZxyz(12.4297, 7.0006, 42.2827)
Luminance0.0700 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522FB1 #8EB12F
analogous
#2F4DB1 #522FB1 #932FB1
triadic
#522FB1 #B1522F #2FB152
tetradic
#522FB1 #B12F4D #8EB12F #2FB193
square
#522FB1 #B12F4D #8EB12F #2FB193
split-complementary
#522FB1 #B1932F #4DB12F
monochromatic
#251550 #3C2281 #522FB1 #704DD0 #977EDD

Accessibility & contrast

On white

8.75
#522FB1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.40
#522FB1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522FB1
8.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522FB1#FFFFFF#000000##FFFFFF
##522FB11.008.752.408.75
#FFFFFF8.751.0021.001.00
#0000002.4021.001.0021.00
##FFFFFF8.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EB5
Deuteranopia (green-blind)
#0047AF
Tritanopia (blue-blind)
#2C526D
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #522fb1;
/* rgb */ color: rgb(82, 47, 177);
/* oklch */ color: oklch(43.3% 0.192 287.9);
Tailwind
colors: {
  custom: {
    50: '#8c6bc9',
    500: '#522fb1',
    950: '#000000',
  },
}
SCSS
$custom: #522fb1;
$custom-light: #8c6bc9;
$custom-dark: #000000;
JSON
{
  "hex": "#522fb1",
  "rgb": {
    "r": 82,
    "g": 47,
    "b": 177
  },
  "hsl": {
    "h": 256.154,
    "s": 58.036,
    "l": 43.922
  },
  "oklch": {
    "l": 0.43329,
    "c": 0.19181,
    "h": 287.9
  },
  "luminance": 0.07001
}

Semantic roles & 50–950 ramp

primary
#522FB1
secondary
#B0C576
accent
#E147B8
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0713
muted
#7E7A82

Preview Lab

Preview with #522FB1

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

Preview Lab → · Contrast checker → · Palette generator →

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