#522FBA#522FBA

#522FBA is a dark, highly saturated violet. Relative luminance 0.074; OKLCH L 44.2% C 0.202 H 286.3°. Best body text is #FFFFFF at 8.49:1 contrast (WCAG AA passes).

Color values

HEX#522FBA
RGBrgb(82, 47, 186)
HSLhsl(255, 60%, 46%)
HSVhsv(255, 75%, 73%)
CMYKcmyk(55.9%, 74.7%, 0%, 27.1%)
CIE-LABlab(32.64, 50.30, -67.47)
CIE-LCHlch(32.64, 84.16, 306.71°)
OKLaboklab(44.17% 0.0568 -0.1942)
OKLCHoklch(44.17% 0.202 286.3)
XYZxyz(13.3565, 7.3713, 47.1639)
Luminance0.0737 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522FBA #97BA2F
analogous
#2F51BA #522FBA #972FBA
triadic
#522FBA #BA522F #2FBA52
tetradic
#522FBA #BA2F51 #97BA2F #2FBA97
square
#522FBA #BA2F51 #97BA2F #2FBA97
split-complementary
#522FBA #BA972F #51BA2F
monochromatic
#271658 #3C2389 #522FBA #7353D3 #9B84E0

Accessibility & contrast

On white

8.49
#522FBA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.47
#522FBA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522FBA
8.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522FBA#FFFFFF#000000##FFFFFF
##522FBA1.008.492.478.49
#FFFFFF8.491.0021.001.00
#0000002.4721.001.0021.00
##FFFFFF8.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050BE
Deuteranopia (green-blind)
#0049B7
Tritanopia (blue-blind)
#225672
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #522fba;
/* rgb */ color: rgb(82, 47, 186);
/* oklch */ color: oklch(44.2% 0.202 286.3);
Tailwind
colors: {
  custom: {
    50: '#8e6bd0',
    500: '#522fba',
    950: '#000000',
  },
}
SCSS
$custom: #522fba;
$custom-light: #8e6bd0;
$custom-dark: #000000;
JSON
{
  "hex": "#522fba",
  "rgb": {
    "r": 82,
    "g": 47,
    "b": 186
  },
  "hsl": {
    "h": 255.108,
    "s": 59.657,
    "l": 45.686
  },
  "oklch": {
    "l": 0.44167,
    "c": 0.20231,
    "h": 286.3
  },
  "luminance": 0.07372
}

Semantic roles & 50–950 ramp

primary
#522FBA
secondary
#B6C97C
accent
#E345BB
background
#F9F6FC
surface
#F2EBF9
border
#CCC6D2
text
#0D0714
muted
#7E7A82

Preview Lab

Preview with #522FBA

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

Preview Lab → · Contrast checker → · Palette generator →

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