#522587#522587

#522587 is a dark, vivid violet. Relative luminance 0.049; OKLCH L 38.3% C 0.154 H 300.1°. Best body text is #FFFFFF at 10.64:1 contrast (WCAG AA passes).

Color values

HEX#522587
RGBrgb(82, 37, 135)
HSLhsl(268, 57%, 34%)
HSVhsv(268, 73%, 53%)
CMYKcmyk(39.3%, 72.6%, 0%, 47.1%)
CIE-LABlab(26.35, 41.17, -46.79)
CIE-LCHlch(26.35, 62.33, 311.34°)
OKLaboklab(38.34% 0.0774 -0.1335)
OKLCHoklch(38.34% 0.154 300.1)
XYZxyz(8.5133, 4.8662, 23.4077)
Luminance0.0487 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522587 #5A8725
analogous
#252987 #522587 #832587
triadic
#522587 #875225 #258752
tetradic
#522587 #872529 #5A8725 #258783
square
#522587 #872529 #5A8725 #258783
split-complementary
#522587 #878325 #298725
monochromatic
#180B27 #351857 #522587 #6F32B7 #8E56D1

Accessibility & contrast

On white

10.64
#522587 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.97
#522587 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522587
10.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522587#FFFFFF#000000##FFFFFF
##5225871.0010.641.9710.64
#FFFFFF10.641.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.641.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #522587;
/* rgb */ color: rgb(82, 37, 135);
/* oklch */ color: oklch(38.3% 0.154 300.1);
Tailwind
colors: {
  custom: {
    50: '#8864ab',
    500: '#522587',
    950: '#000000',
  },
}
SCSS
$custom: #522587;
$custom-light: #8864ab;
$custom-dark: #000000;
JSON
{
  "hex": "#522587",
  "rgb": {
    "r": 82,
    "g": 37,
    "b": 135
  },
  "hsl": {
    "h": 267.551,
    "s": 56.977,
    "l": 33.725
  },
  "oklch": {
    "l": 0.38335,
    "c": 0.15429,
    "h": 300.1
  },
  "luminance": 0.04866
}

Semantic roles & 50–950 ramp

primary
#522587
secondary
#88B553
accent
#E0489A
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0510
muted
#7D7A7F

Preview Lab

Preview with #522587

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

Preview Lab → · Contrast checker → · Palette generator →

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