#522BA6#522BA6

#522BA6 is a dark, vivid violet. Relative luminance 0.063; OKLCH L 41.8% C 0.183 H 290.7°. Best body text is #FFFFFF at 9.31:1 contrast (WCAG AA passes).

Color values

HEX#522BA6
RGBrgb(82, 43, 166)
HSLhsl(259, 59%, 41%)
HSVhsv(259, 74%, 65%)
CMYKcmyk(50.6%, 74.1%, 0%, 34.9%)
CIE-LABlab(30.09, 46.63, -59.70)
CIE-LCHlch(30.09, 75.75, 307.99°)
OKLaboklab(41.81% 0.0649 -0.1714)
OKLCHoklch(41.81% 0.183 290.7)
XYZxyz(11.2245, 6.2743, 36.6886)
Luminance0.0628 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522BA6 #7FA62B
analogous
#2B41A6 #522BA6 #8F2BA6
triadic
#522BA6 #A6522B #2BA652
tetradic
#522BA6 #A62B41 #7FA62B #2BA68F
square
#522BA6 #A62B41 #7FA62B #2BA68F
split-complementary
#522BA6 #A68F2B #41A62B
monochromatic
#221245 #3A1E75 #522BA6 #6D41CE #9271DA

Accessibility & contrast

On white

9.31
#522BA6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.26
#522BA6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522BA6
9.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522BA6#FFFFFF#000000##FFFFFF
##522BA61.009.312.269.31
#FFFFFF9.311.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049AA
Deuteranopia (green-blind)
#0044A4
Tritanopia (blue-blind)
#354C66
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #522ba6;
/* rgb */ color: rgb(82, 43, 166);
/* oklch */ color: oklch(41.8% 0.183 290.7);
Tailwind
colors: {
  custom: {
    50: '#8b68c1',
    500: '#522ba6',
    950: '#000000',
  },
}
SCSS
$custom: #522ba6;
$custom-light: #8b68c1;
$custom-dark: #000000;
JSON
{
  "hex": "#522ba6",
  "rgb": {
    "r": 82,
    "g": 43,
    "b": 166
  },
  "hsl": {
    "h": 259.024,
    "s": 58.852,
    "l": 40.98
  },
  "oklch": {
    "l": 0.41814,
    "c": 0.18329,
    "h": 290.7
  },
  "luminance": 0.06275
}

Semantic roles & 50–950 ramp

primary
#522BA6
secondary
#A6C16B
accent
#E246B0
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #522BA6

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

Preview Lab → · Contrast checker → · Palette generator →

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