#522FBC#522FBC

#522FBC is a dark, highly saturated violet. Relative luminance 0.075; OKLCH L 44.4% C 0.205 H 286.0°. Best body text is #FFFFFF at 8.43:1 contrast (WCAG AA passes).

Color values

HEX#522FBC
RGBrgb(82, 47, 188)
HSLhsl(255, 60%, 46%)
HSVhsv(255, 75%, 74%)
CMYKcmyk(56.4%, 75%, 0%, 26.3%)
CIE-LABlab(32.83, 50.88, -68.34)
CIE-LCHlch(32.83, 85.20, 306.67°)
OKLaboklab(44.36% 0.0563 -0.1967)
OKLCHoklch(44.36% 0.205 286)
XYZxyz(13.5706, 7.4569, 48.2915)
Luminance0.0746 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522FBC #99BC2F
analogous
#2F52BC #522FBC #982FBC
triadic
#522FBC #BC522F #2FBC52
tetradic
#522FBC #BC2F52 #99BC2F #2FBC98
square
#522FBC #BC2F52 #99BC2F #2FBC98
split-complementary
#522FBC #BC982F #52BC2F
monochromatic
#27175A #3D238B #522FBC #7454D4 #9C85E0

Accessibility & contrast

On white

8.43
#522FBC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.49
#522FBC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522FBC
8.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522FBC#FFFFFF#000000##FFFFFF
##522FBC1.008.432.498.43
#FFFFFF8.431.0021.001.00
#0000002.4921.001.0021.00
##FFFFFF8.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051C0
Deuteranopia (green-blind)
#0049B9
Tritanopia (blue-blind)
#1F5673
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #522fbc;
/* rgb */ color: rgb(82, 47, 188);
/* oklch */ color: oklch(44.4% 0.205 286.0);
Tailwind
colors: {
  custom: {
    50: '#8e6cd1',
    500: '#522fbc',
    950: '#000000',
  },
}
SCSS
$custom: #522fbc;
$custom-light: #8e6cd1;
$custom-dark: #000000;
JSON
{
  "hex": "#522fbc",
  "rgb": {
    "r": 82,
    "g": 47,
    "b": 188
  },
  "hsl": {
    "h": 254.894,
    "s": 60,
    "l": 46.078
  },
  "oklch": {
    "l": 0.44356,
    "c": 0.20463,
    "h": 286
  },
  "luminance": 0.07458
}

Semantic roles & 50–950 ramp

primary
#522FBC
secondary
#B7CA7D
accent
#E345BC
background
#F9F6FD
surface
#F2EBFA
border
#CCC6D3
text
#0E0714
muted
#7E7A83

Preview Lab

Preview with #522FBC

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

Preview Lab → · Contrast checker → · Palette generator →

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