#522BBA#522BBA

#522BBA is a dark, highly saturated violet. Relative luminance 0.071; OKLCH L 43.7% C 0.206 H 286.8°. Best body text is #FFFFFF at 8.70:1 contrast (WCAG AA passes).

Color values

HEX#522BBA
RGBrgb(82, 43, 186)
HSLhsl(256, 62%, 45%)
HSVhsv(256, 77%, 73%)
CMYKcmyk(55.9%, 76.9%, 0%, 27.1%)
CIE-LABlab(31.96, 52.24, -68.59)
CIE-LCHlch(31.96, 86.22, 307.30°)
OKLaboklab(43.69% 0.0597 -0.1974)
OKLCHoklch(43.69% 0.206 286.8)
XYZxyz(13.2038, 7.0660, 47.1130)
Luminance0.0707 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522BBA #93BA2B
analogous
#2B4BBA #522BBA #9A2BBA
triadic
#522BBA #BA522B #2BBA52
tetradic
#522BBA #BA2B4B #93BA2B #2BBA9A
square
#522BBA #BA2B4B #93BA2B #2BBA9A
split-complementary
#522BBA #BA9A2B #4BBA2B
monochromatic
#261457 #3C2088 #522BBA #724CD6 #997EE1

Accessibility & contrast

On white

8.70
#522BBA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.41
#522BBA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522BBA
8.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522BBA#FFFFFF#000000##FFFFFF
##522BBA1.008.702.418.70
#FFFFFF8.701.0021.001.00
#0000002.4121.001.0021.00
##FFFFFF8.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FBE
Deuteranopia (green-blind)
#0047B7
Tritanopia (blue-blind)
#225471
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #522bba;
/* rgb */ color: rgb(82, 43, 186);
/* oklch */ color: oklch(43.7% 0.206 286.8);
Tailwind
colors: {
  custom: {
    50: '#8e69d0',
    500: '#522bba',
    950: '#000000',
  },
}
SCSS
$custom: #522bba;
$custom-light: #8e69d0;
$custom-dark: #000000;
JSON
{
  "hex": "#522bba",
  "rgb": {
    "r": 82,
    "g": 43,
    "b": 186
  },
  "hsl": {
    "h": 256.364,
    "s": 62.445,
    "l": 44.902
  },
  "oklch": {
    "l": 0.43689,
    "c": 0.20625,
    "h": 286.8
  },
  "luminance": 0.07067
}

Semantic roles & 50–950 ramp

primary
#522BBA
secondary
#B3CA77
accent
#E642B9
background
#F9F6FC
surface
#F2EBF9
border
#CCC6D2
text
#0E0714
muted
#7E7A82

Preview Lab

Preview with #522BBA

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

Preview Lab → · Contrast checker → · Palette generator →

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