#522B75#522B75

#522B75 is a dark, vivid violet. Relative luminance 0.048; OKLCH L 37.8% C 0.124 H 305.5°. Best body text is #FFFFFF at 10.71:1 contrast (WCAG AA passes).

Color values

HEX#522B75
RGBrgb(82, 43, 117)
HSLhsl(272, 46%, 31%)
HSVhsv(272, 63%, 46%)
CMYKcmyk(29.9%, 63.2%, 0%, 54.1%)
CIE-LABlab(26.17, 33.18, -35.73)
CIE-LCHlch(26.17, 48.76, 312.89°)
OKLaboklab(37.78% 0.0721 -0.101)
OKLCHoklch(37.78% 0.124 305.5)
XYZxyz(7.5537, 4.8060, 17.3559)
Luminance0.0481 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522B75 #4E752B
analogous
#2D2B75 #522B75 #752B73
triadic
#522B75 #75522B #2B7552
tetradic
#522B75 #752D2B #4E752B #2B7375
square
#522B75 #752D2B #4E752B #2B7375
split-complementary
#522B75 #73752B #2B752D
monochromatic
#130A1B #331B48 #522B75 #713BA2 #9059C2

Accessibility & contrast

On white

10.71
#522B75 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.96
#522B75 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522B75
10.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522B75#FFFFFF#000000##FFFFFF
##522B751.0010.711.9610.71
#FFFFFF10.711.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#063D77
Deuteranopia (green-blind)
#1B3E73
Tritanopia (blue-blind)
#4C3A4B
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #522b75;
/* rgb */ color: rgb(82, 43, 117);
/* oklch */ color: oklch(37.8% 0.124 305.5);
Tailwind
colors: {
  custom: {
    50: '#85669d',
    500: '#522b75',
    950: '#000000',
  },
}
SCSS
$custom: #522b75;
$custom-light: #85669d;
$custom-dark: #000000;
JSON
{
  "hex": "#522b75",
  "rgb": {
    "r": 82,
    "g": 43,
    "b": 117
  },
  "hsl": {
    "h": 271.622,
    "s": 46.25,
    "l": 31.373
  },
  "oklch": {
    "l": 0.3778,
    "c": 0.12409,
    "h": 305.5
  },
  "luminance": 0.04806
}

Semantic roles & 50–950 ramp

primary
#522B75
secondary
#7CA755
accent
#D65290
background
#F8F6F9
surface
#EFEBF2
border
#CAC6CC
text
#0B060E
muted
#7C7A7E

Preview Lab

Preview with #522B75

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

Preview Lab → · Contrast checker → · Palette generator →

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