#522FB8#522FB8

#522FB8 is a dark, vivid violet. Relative luminance 0.073; OKLCH L 44.0% C 0.200 H 286.6°. Best body text is #FFFFFF at 8.54:1 contrast (WCAG AA passes).

Color values

HEX#522FB8
RGBrgb(82, 47, 184)
HSLhsl(255, 59%, 45%)
HSVhsv(255, 74%, 72%)
CMYKcmyk(55.4%, 74.5%, 0%, 27.8%)
CIE-LABlab(32.45, 49.73, -66.59)
CIE-LCHlch(32.45, 83.11, 306.75°)
OKLaboklab(43.98% 0.0573 -0.1916)
OKLCHoklch(43.98% 0.2 286.6)
XYZxyz(13.1453, 7.2868, 46.0519)
Luminance0.0729 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522FB8 #95B82F
analogous
#2F51B8 #522FB8 #962FB8
triadic
#522FB8 #B8522F #2FB852
tetradic
#522FB8 #B82F51 #95B82F #2FB896
square
#522FB8 #B82F51 #95B82F #2FB896
split-complementary
#522FB8 #B8962F #51B82F
monochromatic
#271657 #3C2387 #522FB8 #7352D3 #9A82DF

Accessibility & contrast

On white

8.54
#522FB8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.46
#522FB8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522FB8
8.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522FB8#FFFFFF#000000##FFFFFF
##522FB81.008.542.468.54
#FFFFFF8.541.0021.001.00
#0000002.4621.001.0021.00
##FFFFFF8.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050BC
Deuteranopia (green-blind)
#0048B5
Tritanopia (blue-blind)
#245571
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #522fb8;
/* rgb */ color: rgb(82, 47, 184);
/* oklch */ color: oklch(44.0% 0.200 286.6);
Tailwind
colors: {
  custom: {
    50: '#8e6bce',
    500: '#522fb8',
    950: '#000000',
  },
}
SCSS
$custom: #522fb8;
$custom-light: #8e6bce;
$custom-dark: #000000;
JSON
{
  "hex": "#522fb8",
  "rgb": {
    "r": 82,
    "g": 47,
    "b": 184
  },
  "hsl": {
    "h": 255.328,
    "s": 59.307,
    "l": 45.294
  },
  "oklch": {
    "l": 0.43979,
    "c": 0.19999,
    "h": 286.6
  },
  "luminance": 0.07288
}

Semantic roles & 50–950 ramp

primary
#522FB8
secondary
#B4C87B
accent
#E245BA
background
#F9F6FC
surface
#F2EBF9
border
#CCC6D2
text
#0D0714
muted
#7E7A82

Preview Lab

Preview with #522FB8

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

Preview Lab → · Contrast checker → · Palette generator →

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