#522276#522276

#522276 is a dark, vivid violet. Relative luminance 0.042; OKLCH L 36.6% C 0.139 H 307.0°. Best body text is #FFFFFF at 11.36:1 contrast (WCAG AA passes).

Color values

HEX#522276
RGBrgb(82, 34, 118)
HSLhsl(274, 55%, 30%)
HSVhsv(274, 71%, 46%)
CMYKcmyk(30.5%, 71.2%, 0%, 53.7%)
CIE-LABlab(24.47, 38.31, -39.11)
CIE-LCHlch(24.47, 54.74, 314.40°)
OKLaboklab(36.57% 0.0835 -0.1109)
OKLCHoklch(36.57% 0.139 307)
XYZxyz(7.3210, 4.2460, 17.5699)
Luminance0.0425 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522276 #467622
analogous
#282276 #522276 #762270
triadic
#522276 #765222 #227652
tetradic
#522276 #762822 #467622 #227076
square
#522276 #762822 #467622 #227076
split-complementary
#522276 #707622 #227628
monochromatic
#110718 #311446 #522276 #7330A6 #9348CA

Accessibility & contrast

On white

11.36
#522276 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#522276 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522276
11.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522276#FFFFFF#000000##FFFFFF
##5222761.0011.361.8511.36
#FFFFFF11.361.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003878
Deuteranopia (green-blind)
#0B3A74
Tritanopia (blue-blind)
#4C3549
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #522276;
/* rgb */ color: rgb(82, 34, 118);
/* oklch */ color: oklch(36.6% 0.139 307.0);
Tailwind
colors: {
  custom: {
    50: '#86619e',
    500: '#522276',
    950: '#000000',
  },
}
SCSS
$custom: #522276;
$custom-light: #86619e;
$custom-dark: #000000;
JSON
{
  "hex": "#522276",
  "rgb": {
    "r": 82,
    "g": 34,
    "b": 118
  },
  "hsl": {
    "h": 274.286,
    "s": 55.263,
    "l": 29.804
  },
  "oklch": {
    "l": 0.36572,
    "c": 0.13877,
    "h": 307
  },
  "luminance": 0.04246
}

Semantic roles & 50–950 ramp

primary
#522276
secondary
#73A94B
accent
#DF4989
background
#F8F5F9
surface
#F0EAF2
border
#CBC6CC
text
#0B050E
muted
#7C797E

Preview Lab

Preview with #522276

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

Preview Lab → · Contrast checker → · Palette generator →

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