#522273#522273

#522273 is a dark, vivid violet. Relative luminance 0.042; OKLCH L 36.3% C 0.135 H 308.3°. Best body text is #FFFFFF at 11.44:1 contrast (WCAG AA passes).

Color values

HEX#522273
RGBrgb(82, 34, 115)
HSLhsl(276, 54%, 29%)
HSVhsv(276, 70%, 45%)
CMYKcmyk(28.7%, 70.4%, 0%, 54.9%)
CIE-LABlab(24.24, 37.56, -37.55)
CIE-LCHlch(24.24, 53.11, 315.00°)
OKLaboklab(36.34% 0.0838 -0.1063)
OKLCHoklch(36.34% 0.135 308.3)
XYZxyz(7.1456, 4.1758, 16.6459)
Luminance0.0418 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522273 #437322
analogous
#2A2273 #522273 #73226C
triadic
#522273 #735222 #227352
tetradic
#522273 #732A22 #437322 #226C73
square
#522273 #732A22 #437322 #226C73
split-complementary
#522273 #6C7322 #22732A
monochromatic
#110718 #301444 #522273 #7430A2 #9447C9

Accessibility & contrast

On white

11.44
#522273 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#522273 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522273
11.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522273#FFFFFF#000000##FFFFFF
##5222731.0011.441.8411.44
#FFFFFF11.441.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003875
Deuteranopia (green-blind)
#113A71
Tritanopia (blue-blind)
#4D3347
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #522273;
/* rgb */ color: rgb(82, 34, 115);
/* oklch */ color: oklch(36.3% 0.135 308.3);
Tailwind
colors: {
  custom: {
    50: '#86619c',
    500: '#522273',
    950: '#000000',
  },
}
SCSS
$custom: #522273;
$custom-light: #86619c;
$custom-dark: #000000;
JSON
{
  "hex": "#522273",
  "rgb": {
    "r": 82,
    "g": 34,
    "b": 115
  },
  "hsl": {
    "h": 275.556,
    "s": 54.362,
    "l": 29.216
  },
  "oklch": {
    "l": 0.3634,
    "c": 0.13537,
    "h": 308.3
  },
  "luminance": 0.04176
}

Semantic roles & 50–950 ramp

primary
#522273
secondary
#70A64B
accent
#DE4A86
background
#F8F5F9
surface
#F0EAF2
border
#CBC6CC
text
#0B050E
muted
#7C797E

Preview Lab

Preview with #522273

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

Preview Lab → · Contrast checker → · Palette generator →

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