#522267#522267

#522267 is a dark, vivid purple. Relative luminance 0.039; OKLCH L 35.5% C 0.122 H 314.0°. Best body text is #FFFFFF at 11.78:1 contrast (WCAG AA passes).

Color values

HEX#522267
RGBrgb(82, 34, 103)
HSLhsl(282, 50%, 27%)
HSVhsv(282, 67%, 40%)
CMYKcmyk(20.4%, 67%, 0%, 59.6%)
CIE-LABlab(23.40, 34.65, -31.17)
CIE-LCHlch(23.40, 46.61, 318.03°)
OKLaboklab(35.46% 0.0846 -0.0876)
OKLCHoklch(35.46% 0.122 314)
XYZxyz(6.4995, 3.9174, 13.2431)
Luminance0.0392 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522267 #376722
analogous
#302267 #522267 #67225A
triadic
#522267 #675222 #226752
tetradic
#522267 #673022 #376722 #225A67
square
#522267 #673022 #376722 #225A67
split-complementary
#522267 #5A6722 #226730
monochromatic
#120817 #2D1339 #522267 #773195 #9A43C1

Accessibility & contrast

On white

11.78
#522267 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#522267 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522267
11.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522267#FFFFFF#000000##FFFFFF
##5222671.0011.781.7811.78
#FFFFFF11.781.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#063569
Deuteranopia (green-blind)
#1F3965
Tritanopia (blue-blind)
#502F41
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #522267;
/* rgb */ color: rgb(82, 34, 103);
/* oklch */ color: oklch(35.5% 0.122 314.0);
Tailwind
colors: {
  custom: {
    50: '#856193',
    500: '#522267',
    950: '#000000',
  },
}
SCSS
$custom: #522267;
$custom-light: #856193;
$custom-dark: #000000;
JSON
{
  "hex": "#522267",
  "rgb": {
    "r": 82,
    "g": 34,
    "b": 103
  },
  "hsl": {
    "h": 281.739,
    "s": 50.365,
    "l": 26.863
  },
  "oklch": {
    "l": 0.35459,
    "c": 0.12178,
    "h": 314
  },
  "luminance": 0.03917
}

Semantic roles & 50–950 ramp

primary
#522267
secondary
#639B4A
accent
#DA4E79
background
#F8F5F9
surface
#EFEAF1
border
#CAC6CB
text
#0B050D
muted
#7C797E

Preview Lab

Preview with #522267

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

Preview Lab → · Contrast checker → · Palette generator →

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