#522BB6#522BB6

#522BB6 is a dark, highly saturated violet. Relative luminance 0.069; OKLCH L 43.3% C 0.202 H 287.5°. Best body text is #FFFFFF at 8.82:1 contrast (WCAG AA passes).

Color values

HEX#522BB6
RGBrgb(82, 43, 182)
HSLhsl(257, 62%, 44%)
HSVhsv(257, 76%, 71%)
CMYKcmyk(54.9%, 76.4%, 0%, 28.6%)
CIE-LABlab(31.57, 51.12, -66.85)
CIE-LCHlch(31.57, 84.15, 307.41°)
OKLaboklab(43.31% 0.0608 -0.1923)
OKLCHoklch(43.31% 0.202 287.5)
XYZxyz(12.7845, 6.8983, 44.9048)
Luminance0.0690 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522BB6 #8FB62B
analogous
#2B49B6 #522BB6 #982BB6
triadic
#522BB6 #B6522B #2BB652
tetradic
#522BB6 #B62B49 #8FB62B #2BB698
square
#522BB6 #B62B49 #8FB62B #2BB698
split-complementary
#522BB6 #B6982B #49B62B
monochromatic
#251453 #3C1F84 #522BB6 #714AD4 #987BE0

Accessibility & contrast

On white

8.82
#522BB6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.38
#522BB6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522BB6
8.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522BB6#FFFFFF#000000##FFFFFF
##522BB61.008.822.388.82
#FFFFFF8.821.0021.001.00
#0000002.3821.001.0021.00
##FFFFFF8.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DBA
Deuteranopia (green-blind)
#0046B3
Tritanopia (blue-blind)
#27526F
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #522bb6;
/* rgb */ color: rgb(82, 43, 182);
/* oklch */ color: oklch(43.3% 0.202 287.5);
Tailwind
colors: {
  custom: {
    50: '#8e69cd',
    500: '#522bb6',
    950: '#000000',
  },
}
SCSS
$custom: #522bb6;
$custom-light: #8e69cd;
$custom-dark: #000000;
JSON
{
  "hex": "#522bb6",
  "rgb": {
    "r": 82,
    "g": 43,
    "b": 182
  },
  "hsl": {
    "h": 256.835,
    "s": 61.778,
    "l": 44.118
  },
  "oklch": {
    "l": 0.43306,
    "c": 0.20171,
    "h": 287.5
  },
  "luminance": 0.06899
}

Semantic roles & 50–950 ramp

primary
#522BB6
secondary
#B1C875
accent
#E543B7
background
#F9F6FC
surface
#F2EBF9
border
#CCC6D2
text
#0D0714
muted
#7E7A82

Preview Lab

Preview with #522BB6

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

Preview Lab → · Contrast checker → · Palette generator →

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