#522EBA#522EBA

#522EBA is a dark, highly saturated violet. Relative luminance 0.073; OKLCH L 44.0% C 0.203 H 286.4°. Best body text is #FFFFFF at 8.54:1 contrast (WCAG AA passes).

Color values

HEX#522EBA
RGBrgb(82, 46, 186)
HSLhsl(255, 60%, 45%)
HSVhsv(255, 75%, 73%)
CMYKcmyk(55.9%, 75.3%, 0%, 27.1%)
CIE-LABlab(32.46, 50.80, -67.75)
CIE-LCHlch(32.46, 84.68, 306.86°)
OKLaboklab(44.04% 0.0575 -0.195)
OKLCHoklch(44.04% 0.203 286.4)
XYZxyz(13.3169, 7.2923, 47.1507)
Luminance0.0729 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522EBA #96BA2E
analogous
#2E50BA #522EBA #982EBA
triadic
#522EBA #BA522E #2EBA52
tetradic
#522EBA #BA2E50 #96BA2E #2EBA98
square
#522EBA #BA2E50 #96BA2E #2EBA98
split-complementary
#522EBA #BA982E #50BA2E
monochromatic
#271658 #3C2289 #522EBA #7351D4 #9A82E0

Accessibility & contrast

On white

8.54
#522EBA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.46
#522EBA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522EBA
8.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522EBA#FFFFFF#000000##FFFFFF
##522EBA1.008.542.468.54
#FFFFFF8.541.0021.001.00
#0000002.4621.001.0021.00
##FFFFFF8.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050BE
Deuteranopia (green-blind)
#0048B7
Tritanopia (blue-blind)
#225572
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #522eba;
/* rgb */ color: rgb(82, 46, 186);
/* oklch */ color: oklch(44.0% 0.203 286.4);
Tailwind
colors: {
  custom: {
    50: '#8e6bd0',
    500: '#522eba',
    950: '#000000',
  },
}
SCSS
$custom: #522eba;
$custom-light: #8e6bd0;
$custom-dark: #000000;
JSON
{
  "hex": "#522eba",
  "rgb": {
    "r": 82,
    "g": 46,
    "b": 186
  },
  "hsl": {
    "h": 255.429,
    "s": 60.345,
    "l": 45.49
  },
  "oklch": {
    "l": 0.44044,
    "c": 0.20332,
    "h": 286.4
  },
  "luminance": 0.07293
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #522EBA

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

Preview Lab → · Contrast checker → · Palette generator →

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