#522FD4#522FD4

#522FD4 is a mid, highly saturated violet. Relative luminance 0.086; OKLCH L 46.7% C 0.232 H 282.4°. Best body text is #FFFFFF at 7.73:1 contrast (WCAG AA passes).

Color values

HEX#522FD4
RGBrgb(82, 47, 212)
HSLhsl(253, 66%, 51%)
HSVhsv(253, 78%, 83%)
CMYKcmyk(61.3%, 77.8%, 0%, 16.9%)
CIE-LABlab(35.16, 57.70, -78.51)
CIE-LCHlch(35.16, 97.43, 306.32°)
OKLaboklab(46.69% 0.0498 -0.2264)
OKLCHoklch(46.69% 0.232 282.4)
XYZxyz(16.3761, 8.5792, 63.0676)
Luminance0.0858 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522FD4 #B1D42F
analogous
#2F5ED4 #522FD4 #A42FD4
triadic
#522FD4 #D4522F #2FD452
tetradic
#522FD4 #D42F5E #B1D42F #2FD4A4
square
#522FD4 #D42F5E #B1D42F #2FD4A4
split-complementary
#522FD4 #D4A42F #5ED42F
monochromatic
#2A1771 #3D22A4 #522FD4 #7C62DE #A694E9

Accessibility & contrast

On white

7.73
#522FD4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.72
#522FD4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522FD4
7.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522FD4#FFFFFF#000000##FFFFFF
##522FD41.007.732.727.73
#FFFFFF7.731.0021.001.00
#0000002.7221.001.0021.00
##FFFFFF7.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058D9
Deuteranopia (green-blind)
#004DD1
Tritanopia (blue-blind)
#006081
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #522fd4;
/* rgb */ color: rgb(82, 47, 212);
/* oklch */ color: oklch(46.7% 0.232 282.4);
Tailwind
colors: {
  custom: {
    50: '#926de3',
    500: '#522fd4',
    950: '#000000',
  },
}
SCSS
$custom: #522fd4;
$custom-light: #926de3;
$custom-dark: #000000;
JSON
{
  "hex": "#522fd4",
  "rgb": {
    "r": 82,
    "g": 47,
    "b": 212
  },
  "hsl": {
    "h": 252.727,
    "s": 65.737,
    "l": 50.784
  },
  "oklch": {
    "l": 0.46692,
    "c": 0.23184,
    "h": 282.4
  },
  "luminance": 0.0858
}

Semantic roles & 50–950 ramp

primary
#522FD4
secondary
#C4D48B
accent
#E93FC5
background
#F9F6FE
surface
#F2ECFC
border
#CCC7D5
text
#0E0716
muted
#7E7A84

Preview Lab

Preview with #522FD4

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

Preview Lab → · Contrast checker → · Palette generator →

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