#522FBB#522FBB

#522FBB is a dark, highly saturated violet. Relative luminance 0.074; OKLCH L 44.3% C 0.203 H 286.1°. Best body text is #FFFFFF at 8.46:1 contrast (WCAG AA passes).

Color values

HEX#522FBB
RGBrgb(82, 47, 187)
HSLhsl(255, 60%, 46%)
HSVhsv(255, 75%, 73%)
CMYKcmyk(56.1%, 74.9%, 0%, 26.7%)
CIE-LABlab(32.73, 50.59, -67.90)
CIE-LCHlch(32.73, 84.68, 306.69°)
OKLaboklab(44.26% 0.0565 -0.1955)
OKLCHoklch(44.26% 0.203 286.1)
XYZxyz(13.4631, 7.4140, 47.7257)
Luminance0.0741 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522FBB #98BB2F
analogous
#2F52BB #522FBB #982FBB
triadic
#522FBB #BB522F #2FBB52
tetradic
#522FBB #BB2F52 #98BB2F #2FBB98
square
#522FBB #BB2F52 #98BB2F #2FBB98
split-complementary
#522FBB #BB982F #52BB2F
monochromatic
#271659 #3D238A #522FBB #7353D4 #9B84E0

Accessibility & contrast

On white

8.46
#522FBB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.48
#522FBB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522FBB
8.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522FBB#FFFFFF#000000##FFFFFF
##522FBB1.008.462.488.46
#FFFFFF8.461.0021.001.00
#0000002.4821.001.0021.00
##FFFFFF8.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051BF
Deuteranopia (green-blind)
#0049B8
Tritanopia (blue-blind)
#215673
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #522fbb;
/* rgb */ color: rgb(82, 47, 187);
/* oklch */ color: oklch(44.3% 0.203 286.1);
Tailwind
colors: {
  custom: {
    50: '#8e6cd1',
    500: '#522fbb',
    950: '#000000',
  },
}
SCSS
$custom: #522fbb;
$custom-light: #8e6cd1;
$custom-dark: #000000;
JSON
{
  "hex": "#522fbb",
  "rgb": {
    "r": 82,
    "g": 47,
    "b": 187
  },
  "hsl": {
    "h": 255,
    "s": 59.829,
    "l": 45.882
  },
  "oklch": {
    "l": 0.44261,
    "c": 0.20347,
    "h": 286.1
  },
  "luminance": 0.07415
}

Semantic roles & 50–950 ramp

primary
#522FBB
secondary
#B6C97C
accent
#E345BB
background
#F9F6FD
surface
#F2EBFA
border
#CCC6D3
text
#0E0714
muted
#7E7A83

Preview Lab

Preview with #522FBB

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

Preview Lab → · Contrast checker → · Palette generator →

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