#522987#522987

#522987 is a dark, vivid violet. Relative luminance 0.051; OKLCH L 38.9% C 0.149 H 299.3°. Best body text is #FFFFFF at 10.37:1 contrast (WCAG AA passes).

Color values

HEX#522987
RGBrgb(82, 41, 135)
HSLhsl(266, 53%, 35%)
HSVhsv(266, 70%, 53%)
CMYKcmyk(39.3%, 69.6%, 0%, 47.1%)
CIE-LABlab(27.10, 39.09, -45.58)
CIE-LCHlch(27.10, 60.04, 310.62°)
OKLaboklab(38.87% 0.073 -0.1299)
OKLCHoklch(38.87% 0.149 299.3)
XYZxyz(8.6447, 5.1289, 23.4515)
Luminance0.0513 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522987 #5E8729
analogous
#292F87 #522987 #812987
triadic
#522987 #875229 #298752
tetradic
#522987 #87292F #5E8729 #298781
square
#522987 #87292F #5E8729 #298781
split-complementary
#522987 #878129 #2F8729
monochromatic
#190C29 #351B58 #522987 #6F37B6 #8E5DCE

Accessibility & contrast

On white

10.37
#522987 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.03
#522987 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522987
10.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522987#FFFFFF#000000##FFFFFF
##5229871.0010.372.0310.37
#FFFFFF10.371.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00408A
Deuteranopia (green-blind)
#003F85
Tritanopia (blue-blind)
#463F54
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #522987;
/* rgb */ color: rgb(82, 41, 135);
/* oklch */ color: oklch(38.9% 0.149 299.3);
Tailwind
colors: {
  custom: {
    50: '#8766ab',
    500: '#522987',
    950: '#000000',
  },
}
SCSS
$custom: #522987;
$custom-light: #8766ab;
$custom-dark: #000000;
JSON
{
  "hex": "#522987",
  "rgb": {
    "r": 82,
    "g": 41,
    "b": 135
  },
  "hsl": {
    "h": 266.17,
    "s": 53.409,
    "l": 34.51
  },
  "oklch": {
    "l": 0.3887,
    "c": 0.14903,
    "h": 299.3
  },
  "luminance": 0.05129
}

Semantic roles & 50–950 ramp

primary
#522987
secondary
#8CB359
accent
#DD4B9D
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0610
muted
#7D7A7F

Preview Lab

Preview with #522987

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

Preview Lab → · Contrast checker → · Palette generator →

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