#522FC2#522FC2

#522FC2 is a dark, highly saturated violet. Relative luminance 0.077; OKLCH L 44.9% C 0.212 H 285.0°. Best body text is #FFFFFF at 8.25:1 contrast (WCAG AA passes).

Color values

HEX#522FC2
RGBrgb(82, 47, 194)
HSLhsl(254, 61%, 47%)
HSVhsv(254, 76%, 76%)
CMYKcmyk(57.7%, 75.8%, 0%, 23.9%)
CIE-LABlab(33.39, 52.59, -70.94)
CIE-LCHlch(33.39, 88.30, 306.55°)
OKLaboklab(44.93% 0.0547 -0.2043)
OKLCHoklch(44.93% 0.212 285)
XYZxyz(14.2308, 7.7210, 51.7689)
Luminance0.0772 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522FC2 #9FC22F
analogous
#2F55C2 #522FC2 #9C2FC2
triadic
#522FC2 #C2522F #2FC252
tetradic
#522FC2 #C22F55 #9FC22F #2FC29C
square
#522FC2 #C22F55 #9FC22F #2FC29C
split-complementary
#522FC2 #C29C2F #55C22F
monochromatic
#28175F #3D2391 #522FC2 #7658D6 #9E89E2

Accessibility & contrast

On white

8.25
#522FC2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.54
#522FC2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522FC2
8.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522FC2#FFFFFF#000000##FFFFFF
##522FC21.008.252.548.25
#FFFFFF8.251.0021.001.00
#0000002.5421.001.0021.00
##FFFFFF8.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053C6
Deuteranopia (green-blind)
#004ABF
Tritanopia (blue-blind)
#155977
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #522fc2;
/* rgb */ color: rgb(82, 47, 194);
/* oklch */ color: oklch(44.9% 0.212 285.0);
Tailwind
colors: {
  custom: {
    50: '#8f6cd6',
    500: '#522fc2',
    950: '#000000',
  },
}
SCSS
$custom: #522fc2;
$custom-light: #8f6cd6;
$custom-dark: #000000;
JSON
{
  "hex": "#522fc2",
  "rgb": {
    "r": 82,
    "g": 47,
    "b": 194
  },
  "hsl": {
    "h": 254.286,
    "s": 60.996,
    "l": 47.255
  },
  "oklch": {
    "l": 0.44928,
    "c": 0.21152,
    "h": 285
  },
  "luminance": 0.07722
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #522FC2

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

Preview Lab → · Contrast checker → · Palette generator →

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