#522995#522995

#522995 is a dark, vivid violet. Relative luminance 0.056; OKLCH L 40.0% C 0.166 H 295.2°. Best body text is #FFFFFF at 9.95:1 contrast (WCAG AA passes).

Color values

HEX#522995
RGBrgb(82, 41, 149)
HSLhsl(263, 57%, 37%)
HSVhsv(263, 72%, 58%)
CMYKcmyk(45%, 72.5%, 0%, 41.6%)
CIE-LABlab(28.25, 42.91, -52.38)
CIE-LCHlch(28.25, 67.71, 309.33°)
OKLaboklab(40.05% 0.0706 -0.1499)
OKLCHoklch(40.05% 0.166 295.2)
XYZxyz(9.6960, 5.5494, 28.9882)
Luminance0.0555 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522995 #6C9529
analogous
#293695 #522995 #882995
triadic
#522995 #955229 #299552
tetradic
#522995 #952936 #6C9529 #299588
square
#522995 #952936 #6C9529 #299588
split-complementary
#522995 #958829 #369529
monochromatic
#1D0F35 #381C65 #522995 #6C36C5 #8F64D4

Accessibility & contrast

On white

9.95
#522995 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.11
#522995 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522995
9.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522995#FFFFFF#000000##FFFFFF
##5229951.009.952.119.95
#FFFFFF9.951.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004398
Deuteranopia (green-blind)
#004193
Tritanopia (blue-blind)
#40445C
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #522995;
/* rgb */ color: rgb(82, 41, 149);
/* oklch */ color: oklch(40.0% 0.166 295.2);
Tailwind
colors: {
  custom: {
    50: '#8966b5',
    500: '#522995',
    950: '#000000',
  },
}
SCSS
$custom: #522995;
$custom-light: #8966b5;
$custom-dark: #000000;
JSON
{
  "hex": "#522995",
  "rgb": {
    "r": 82,
    "g": 41,
    "b": 149
  },
  "hsl": {
    "h": 262.778,
    "s": 56.842,
    "l": 37.255
  },
  "oklch": {
    "l": 0.40046,
    "c": 0.16567,
    "h": 295.2
  },
  "luminance": 0.0555
}

Semantic roles & 50–950 ramp

primary
#522995
secondary
#98BA60
accent
#E048A6
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #522995

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

Preview Lab → · Contrast checker → · Palette generator →

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