#522772#522772

#522772 is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.0% C 0.127 H 307.7°. Best body text is #FFFFFF at 11.10:1 contrast (WCAG AA passes).

Color values

HEX#522772
RGBrgb(82, 39, 114)
HSLhsl(274, 49%, 30%)
HSVhsv(274, 66%, 45%)
CMYKcmyk(28.1%, 65.8%, 0%, 55.3%)
CIE-LABlab(25.14, 34.65, -35.48)
CIE-LCHlch(25.14, 49.59, 314.33°)
OKLaboklab(36.96% 0.0776 -0.1002)
OKLCHoklch(36.96% 0.127 307.7)
XYZxyz(7.2418, 4.4599, 16.3957)
Luminance0.0446 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522772 #477227
analogous
#2C2772 #522772 #72276D
triadic
#522772 #725227 #277252
tetradic
#522772 #722C27 #477227 #276D72
square
#522772 #722C27 #477227 #276D72
split-complementary
#522772 #6D7227 #27722C
monochromatic
#100817 #311744 #522772 #7337A0 #9250C3

Accessibility & contrast

On white

11.10
#522772 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.89
#522772 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522772
11.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522772#FFFFFF#000000##FFFFFF
##5227721.0011.101.8911.10
#FFFFFF11.101.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A74
Deuteranopia (green-blind)
#1A3C70
Tritanopia (blue-blind)
#4D3648
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #522772;
/* rgb */ color: rgb(82, 39, 114);
/* oklch */ color: oklch(37.0% 0.127 307.7);
Tailwind
colors: {
  custom: {
    50: '#85649b',
    500: '#522772',
    950: '#000000',
  },
}
SCSS
$custom: #522772;
$custom-light: #85649b;
$custom-dark: #000000;
JSON
{
  "hex": "#522772",
  "rgb": {
    "r": 82,
    "g": 39,
    "b": 114
  },
  "hsl": {
    "h": 274.4,
    "s": 49.02,
    "l": 30
  },
  "oklch": {
    "l": 0.36961,
    "c": 0.12674,
    "h": 307.7
  },
  "luminance": 0.0446
}

Semantic roles & 50–950 ramp

primary
#522772
secondary
#74A450
accent
#D94F8A
background
#F8F6F9
surface
#F0EBF2
border
#CBC6CC
text
#0B050E
muted
#7C7A7E

Preview Lab

Preview with #522772

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

Preview Lab → · Contrast checker → · Palette generator →

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