#522FC3#522FC3

#522FC3 is a mid, highly saturated violet. Relative luminance 0.078; OKLCH L 45.0% C 0.213 H 284.8°. Best body text is #FFFFFF at 8.22:1 contrast (WCAG AA passes).

Color values

HEX#522FC3
RGBrgb(82, 47, 195)
HSLhsl(254, 61%, 47%)
HSVhsv(254, 76%, 76%)
CMYKcmyk(57.9%, 75.9%, 0%, 23.5%)
CIE-LABlab(33.49, 52.88, -71.36)
CIE-LCHlch(33.49, 88.82, 306.54°)
OKLaboklab(45.03% 0.0544 -0.2056)
OKLCHoklch(45.03% 0.213 284.8)
XYZxyz(14.3435, 7.7661, 52.3624)
Luminance0.0777 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522FC3 #A0C32F
analogous
#2F56C3 #522FC3 #9C2FC3
triadic
#522FC3 #C3522F #2FC352
tetradic
#522FC3 #C32F56 #A0C32F #2FC39C
square
#522FC3 #C32F56 #A0C32F #2FC39C
split-complementary
#522FC3 #C39C2F #56C32F
monochromatic
#291760 #3D2392 #522FC3 #7658D7 #9F8AE3

Accessibility & contrast

On white

8.22
#522FC3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.55
#522FC3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522FC3
8.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522FC3#FFFFFF#000000##FFFFFF
##522FC31.008.222.558.22
#FFFFFF8.221.0021.001.00
#0000002.5521.001.0021.00
##FFFFFF8.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053C7
Deuteranopia (green-blind)
#004AC0
Tritanopia (blue-blind)
#125977
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #522fc3;
/* rgb */ color: rgb(82, 47, 195);
/* oklch */ color: oklch(45.0% 0.213 284.8);
Tailwind
colors: {
  custom: {
    50: '#8f6cd6',
    500: '#522fc3',
    950: '#000000',
  },
}
SCSS
$custom: #522fc3;
$custom-light: #8f6cd6;
$custom-dark: #000000;
JSON
{
  "hex": "#522fc3",
  "rgb": {
    "r": 82,
    "g": 47,
    "b": 195
  },
  "hsl": {
    "h": 254.189,
    "s": 61.157,
    "l": 47.451
  },
  "oklch": {
    "l": 0.45025,
    "c": 0.21267,
    "h": 284.8
  },
  "luminance": 0.07767
}

Semantic roles & 50–950 ramp

primary
#522FC3
secondary
#BBCD81
accent
#E444BE
background
#F9F6FD
surface
#F2ECFA
border
#CCC7D3
text
#0E0714
muted
#7E7A83

Preview Lab

Preview with #522FC3

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

Preview Lab → · Contrast checker → · Palette generator →

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