#522687#522687

#522687 is a dark, vivid violet. Relative luminance 0.049; OKLCH L 38.5% C 0.153 H 299.9°. Best body text is #FFFFFF at 10.58:1 contrast (WCAG AA passes).

Color values

HEX#522687
RGBrgb(82, 38, 135)
HSLhsl(267, 56%, 34%)
HSVhsv(267, 72%, 53%)
CMYKcmyk(39.3%, 71.9%, 0%, 47.1%)
CIE-LABlab(26.53, 40.66, -46.50)
CIE-LCHlch(26.53, 61.77, 311.17°)
OKLaboklab(38.46% 0.0763 -0.1326)
OKLCHoklch(38.46% 0.153 299.9)
XYZxyz(8.5449, 4.9293, 23.4182)
Luminance0.0493 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522687 #5B8726
analogous
#262B87 #522687 #832687
triadic
#522687 #875226 #268752
tetradic
#522687 #87262B #5B8726 #268783
square
#522687 #87262B #5B8726 #268783
split-complementary
#522687 #878326 #2B8726
monochromatic
#180B27 #351957 #522687 #6F33B7 #8E58D0

Accessibility & contrast

On white

10.58
#522687 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.99
#522687 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522687
10.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522687#FFFFFF#000000##FFFFFF
##5226871.0010.581.9910.58
#FFFFFF10.581.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F8A
Deuteranopia (green-blind)
#003E85
Tritanopia (blue-blind)
#463D53
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #522687;
/* rgb */ color: rgb(82, 38, 135);
/* oklch */ color: oklch(38.5% 0.153 299.9);
Tailwind
colors: {
  custom: {
    50: '#8864ab',
    500: '#522687',
    950: '#000000',
  },
}
SCSS
$custom: #522687;
$custom-light: #8864ab;
$custom-dark: #000000;
JSON
{
  "hex": "#522687",
  "rgb": {
    "r": 82,
    "g": 38,
    "b": 135
  },
  "hsl": {
    "h": 267.216,
    "s": 56.069,
    "l": 33.922
  },
  "oklch": {
    "l": 0.38465,
    "c": 0.15301,
    "h": 299.9
  },
  "luminance": 0.04929
}

Semantic roles & 50–950 ramp

primary
#522687
secondary
#89B554
accent
#DF489B
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0610
muted
#7D7A7F

Preview Lab

Preview with #522687

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

Preview Lab → · Contrast checker → · Palette generator →

#522687 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva