#522B95#522B95

#522B95 is a dark, vivid violet. Relative luminance 0.057; OKLCH L 40.3% C 0.163 H 294.8°. Best body text is #FFFFFF at 9.82:1 contrast (WCAG AA passes).

Color values

HEX#522B95
RGBrgb(82, 43, 149)
HSLhsl(262, 55%, 38%)
HSVhsv(262, 71%, 58%)
CMYKcmyk(45%, 71.1%, 0%, 41.6%)
CIE-LABlab(28.62, 41.87, -51.77)
CIE-LCHlch(28.62, 66.58, 308.96°)
OKLaboklab(40.31% 0.0685 -0.1481)
OKLCHoklch(40.31% 0.163 294.8)
XYZxyz(9.7669, 5.6913, 29.0119)
Luminance0.0569 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522B95 #6E952B
analogous
#2B3995 #522B95 #872B95
triadic
#522B95 #95522B #2B9552
tetradic
#522B95 #952B39 #6E952B #2B9587
square
#522B95 #952B39 #6E952B #2B9587
split-complementary
#522B95 #95872B #39952B
monochromatic
#1E1036 #381D66 #522B95 #6C39C4 #8F67D3

Accessibility & contrast

On white

9.82
#522B95 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.14
#522B95 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522B95
9.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522B95#FFFFFF#000000##FFFFFF
##522B951.009.822.149.82
#FFFFFF9.821.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004498
Deuteranopia (green-blind)
#004293
Tritanopia (blue-blind)
#3F455D
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #522b95;
/* rgb */ color: rgb(82, 43, 149);
/* oklch */ color: oklch(40.3% 0.163 294.8);
Tailwind
colors: {
  custom: {
    50: '#8968b5',
    500: '#522b95',
    950: '#000000',
  },
}
SCSS
$custom: #522b95;
$custom-light: #8968b5;
$custom-dark: #000000;
JSON
{
  "hex": "#522b95",
  "rgb": {
    "r": 82,
    "g": 43,
    "b": 149
  },
  "hsl": {
    "h": 262.075,
    "s": 55.208,
    "l": 37.647
  },
  "oklch": {
    "l": 0.40312,
    "c": 0.16321,
    "h": 294.8
  },
  "luminance": 0.05692
}

Semantic roles & 50–950 ramp

primary
#522B95
secondary
#99BA62
accent
#DF49A8
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #522B95

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

Preview Lab → · Contrast checker → · Palette generator →

#522B95 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva