#522F88#522F88

#522F88 is a dark, vivid violet. Relative luminance 0.056; OKLCH L 39.8% C 0.142 H 297.7°. Best body text is #FFFFFF at 9.90:1 contrast (WCAG AA passes).

Color values

HEX#522F88
RGBrgb(82, 47, 136)
HSLhsl(264, 49%, 36%)
HSVhsv(264, 65%, 53%)
CMYKcmyk(39.7%, 65.4%, 0%, 46.7%)
CIE-LABlab(28.39, 36.04, -44.11)
CIE-LCHlch(28.39, 56.96, 309.25°)
OKLaboklab(39.83% 0.0659 -0.1256)
OKLCHoklch(39.83% 0.142 297.7)
XYZxyz(8.9390, 5.6043, 23.8986)
Luminance0.0560 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522F88 #65882F
analogous
#2F3888 #522F88 #7E2F88
triadic
#522F88 #88522F #2F8852
tetradic
#522F88 #882F38 #65882F #2F887E
square
#522F88 #882F38 #65882F #2F887E
split-complementary
#522F88 #887E2F #38882F
monochromatic
#1B102D #371F5B #522F88 #6D3FB5 #8E67CA

Accessibility & contrast

On white

9.90
#522F88 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.12
#522F88 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522F88
9.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522F88#FFFFFF#000000##FFFFFF
##522F881.009.902.129.90
#FFFFFF9.901.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00438B
Deuteranopia (green-blind)
#004286
Tritanopia (blue-blind)
#454357
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #522f88;
/* rgb */ color: rgb(82, 47, 136);
/* oklch */ color: oklch(39.8% 0.142 297.7);
Tailwind
colors: {
  custom: {
    50: '#876aab',
    500: '#522f88',
    950: '#000000',
  },
}
SCSS
$custom: #522f88;
$custom-light: #876aab;
$custom-dark: #000000;
JSON
{
  "hex": "#522f88",
  "rgb": {
    "r": 82,
    "g": 47,
    "b": 136
  },
  "hsl": {
    "h": 263.596,
    "s": 48.634,
    "l": 35.882
  },
  "oklch": {
    "l": 0.39825,
    "c": 0.14185,
    "h": 297.7
  },
  "luminance": 0.05604
}

Semantic roles & 50–950 ramp

primary
#522F88
secondary
#92B161
accent
#D850A2
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0610
muted
#7D7A7F

Preview Lab

Preview with #522F88

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

Preview Lab → · Contrast checker → · Palette generator →

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