#522274#522274

#522274 is a dark, vivid violet. Relative luminance 0.042; OKLCH L 36.4% C 0.137 H 307.8°. Best body text is #FFFFFF at 11.41:1 contrast (WCAG AA passes).

Color values

HEX#522274
RGBrgb(82, 34, 116)
HSLhsl(275, 55%, 29%)
HSVhsv(275, 71%, 45%)
CMYKcmyk(29.3%, 70.7%, 0%, 54.5%)
CIE-LABlab(24.32, 37.81, -38.08)
CIE-LCHlch(24.32, 53.66, 314.80°)
OKLaboklab(36.42% 0.0837 -0.1078)
OKLCHoklch(36.42% 0.137 307.8)
XYZxyz(7.2034, 4.1989, 16.9506)
Luminance0.0420 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522274 #447422
analogous
#292274 #522274 #74226D
triadic
#522274 #745222 #227452
tetradic
#522274 #742922 #447422 #226D74
square
#522274 #742922 #447422 #226D74
split-complementary
#522274 #6D7422 #227429
monochromatic
#110718 #311445 #522274 #7330A3 #9347C9

Accessibility & contrast

On white

11.41
#522274 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #522274
11.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522274#FFFFFF#000000##FFFFFF
##5222741.0011.411.8411.41
#FFFFFF11.411.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003876
Deuteranopia (green-blind)
#0F3A72
Tritanopia (blue-blind)
#4D3448
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #522274;
/* rgb */ color: rgb(82, 34, 116);
/* oklch */ color: oklch(36.4% 0.137 307.8);
Tailwind
colors: {
  custom: {
    50: '#86619d',
    500: '#522274',
    950: '#000000',
  },
}
SCSS
$custom: #522274;
$custom-light: #86619d;
$custom-dark: #000000;
JSON
{
  "hex": "#522274",
  "rgb": {
    "r": 82,
    "g": 34,
    "b": 116
  },
  "hsl": {
    "h": 275.122,
    "s": 54.667,
    "l": 29.412
  },
  "oklch": {
    "l": 0.36417,
    "c": 0.1365,
    "h": 307.8
  },
  "luminance": 0.04199
}

Semantic roles & 50–950 ramp

primary
#522274
secondary
#71A74B
accent
#DE4A87
background
#F8F5F9
surface
#F0EAF2
border
#CBC6CC
text
#0B050E
muted
#7C797E

Preview Lab

Preview with #522274

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

Preview Lab → · Contrast checker → · Palette generator →

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