#522978#522978

#522978 is a dark, vivid violet. Relative luminance 0.047; OKLCH L 37.7% C 0.131 H 304.8°. Best body text is #FFFFFF at 10.78:1 contrast (WCAG AA passes).

Color values

HEX#522978
RGBrgb(82, 41, 120)
HSLhsl(271, 49%, 32%)
HSVhsv(271, 66%, 47%)
CMYKcmyk(31.7%, 65.8%, 0%, 52.9%)
CIE-LABlab(25.97, 35.09, -37.97)
CIE-LCHlch(25.97, 51.70, 312.75°)
OKLaboklab(37.7% 0.0746 -0.1075)
OKLCHoklch(37.7% 0.131 304.8)
XYZxyz(7.6620, 4.7358, 18.2761)
Luminance0.0474 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522978 #4F7829
analogous
#2B2978 #522978 #782977
triadic
#522978 #785229 #297852
tetradic
#522978 #782B29 #4F7829 #297778
square
#522978 #782B29 #4F7829 #297778
split-complementary
#522978 #777829 #29782B
monochromatic
#140A1D #33194A #522978 #7139A6 #9056C5

Accessibility & contrast

On white

10.78
#522978 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.95
#522978 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522978
10.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522978#FFFFFF#000000##FFFFFF
##5229781.0010.781.9510.78
#FFFFFF10.781.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C7A
Deuteranopia (green-blind)
#153E76
Tritanopia (blue-blind)
#4B3A4C
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #522978;
/* rgb */ color: rgb(82, 41, 120);
/* oklch */ color: oklch(37.7% 0.131 304.8);
Tailwind
colors: {
  custom: {
    50: '#86659f',
    500: '#522978',
    950: '#000000',
  },
}
SCSS
$custom: #522978;
$custom-light: #86659f;
$custom-dark: #000000;
JSON
{
  "hex": "#522978",
  "rgb": {
    "r": 82,
    "g": 41,
    "b": 120
  },
  "hsl": {
    "h": 271.139,
    "s": 49.068,
    "l": 31.569
  },
  "oklch": {
    "l": 0.37698,
    "c": 0.1309,
    "h": 304.8
  },
  "luminance": 0.04736
}

Semantic roles & 50–950 ramp

primary
#522978
secondary
#7DAA53
accent
#D94F91
background
#F8F6F9
surface
#F0EBF2
border
#CBC6CC
text
#0B060F
muted
#7C7A7E

Preview Lab

Preview with #522978

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

Preview Lab → · Contrast checker → · Palette generator →

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