#522985#522985

#522985 is a dark, vivid violet. Relative luminance 0.051; OKLCH L 38.7% C 0.147 H 300.0°. Best body text is #FFFFFF at 10.42:1 contrast (WCAG AA passes).

Color values

HEX#522985
RGBrgb(82, 41, 133)
HSLhsl(267, 53%, 34%)
HSVhsv(267, 69%, 52%)
CMYKcmyk(38.3%, 69.2%, 0%, 47.8%)
CIE-LABlab(26.94, 38.55, -44.58)
CIE-LCHlch(26.94, 58.94, 310.85°)
OKLaboklab(38.71% 0.0733 -0.127)
OKLCHoklch(38.71% 0.147 300)
XYZxyz(8.5052, 5.0731, 22.7169)
Luminance0.0507 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522985 #5C8529
analogous
#292E85 #522985 #802985
triadic
#522985 #855229 #298552
tetradic
#522985 #85292E #5C8529 #298580
square
#522985 #85292E #5C8529 #298580
split-complementary
#522985 #858029 #2E8529
monochromatic
#180C27 #351B56 #522985 #6F37B4 #8E5CCD

Accessibility & contrast

On white

10.42
#522985 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.01
#522985 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522985
10.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522985#FFFFFF#000000##FFFFFF
##5229851.0010.422.0110.42
#FFFFFF10.421.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F88
Deuteranopia (green-blind)
#003F83
Tritanopia (blue-blind)
#473E53
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #522985;
/* rgb */ color: rgb(82, 41, 133);
/* oklch */ color: oklch(38.7% 0.147 300.0);
Tailwind
colors: {
  custom: {
    50: '#8766a9',
    500: '#522985',
    950: '#000000',
  },
}
SCSS
$custom: #522985;
$custom-light: #8766a9;
$custom-dark: #000000;
JSON
{
  "hex": "#522985",
  "rgb": {
    "r": 82,
    "g": 41,
    "b": 133
  },
  "hsl": {
    "h": 266.739,
    "s": 52.874,
    "l": 34.118
  },
  "oklch": {
    "l": 0.38708,
    "c": 0.14663,
    "h": 300
  },
  "luminance": 0.05073
}

Semantic roles & 50–950 ramp

primary
#522985
secondary
#8AB258
accent
#DC4C9C
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0610
muted
#7D7A7F

Preview Lab

Preview with #522985

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

Preview Lab → · Contrast checker → · Palette generator →

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