#522677#522677

#522677 is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.2% C 0.134 H 305.8°. Best body text is #FFFFFF at 11.04:1 contrast (WCAG AA passes).

Color values

HEX#522677
RGBrgb(82, 38, 119)
HSLhsl(273, 52%, 31%)
HSVhsv(273, 68%, 47%)
CMYKcmyk(31.1%, 68.1%, 0%, 53.3%)
CIE-LABlab(25.30, 36.47, -38.41)
CIE-LCHlch(25.30, 52.97, 313.52°)
OKLaboklab(37.19% 0.0785 -0.1088)
OKLCHoklch(37.19% 0.134 305.8)
XYZxyz(7.5018, 4.5120, 17.9249)
Luminance0.0451 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522677 #4B7726
analogous
#2A2677 #522677 #772673
triadic
#522677 #775226 #267752
tetradic
#522677 #772A26 #4B7726 #267377
square
#522677 #772A26 #4B7726 #267377
split-complementary
#522677 #737726 #26772A
monochromatic
#12081A #321749 #522677 #7235A5 #9150C7

Accessibility & contrast

On white

11.04
#522677 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#522677 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522677
11.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522677#FFFFFF#000000##FFFFFF
##5226771.0011.041.9011.04
#FFFFFF11.041.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B79
Deuteranopia (green-blind)
#113C75
Tritanopia (blue-blind)
#4C374B
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #522677;
/* rgb */ color: rgb(82, 38, 119);
/* oklch */ color: oklch(37.2% 0.134 305.8);
Tailwind
colors: {
  custom: {
    50: '#86639f',
    500: '#522677',
    950: '#000000',
  },
}
SCSS
$custom: #522677;
$custom-light: #86639f;
$custom-dark: #000000;
JSON
{
  "hex": "#522677",
  "rgb": {
    "r": 82,
    "g": 38,
    "b": 119
  },
  "hsl": {
    "h": 272.593,
    "s": 51.592,
    "l": 30.784
  },
  "oklch": {
    "l": 0.3719,
    "c": 0.1342,
    "h": 305.8
  },
  "luminance": 0.04512
}

Semantic roles & 50–950 ramp

primary
#522677
secondary
#79A94F
accent
#DB4D8E
background
#F8F6F9
surface
#F0EBF2
border
#CBC6CC
text
#0B050E
muted
#7C7A7E

Preview Lab

Preview with #522677

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

Preview Lab → · Contrast checker → · Palette generator →

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