#522263#522263

#522263 is a dark, moderate purple. Relative luminance 0.038; OKLCH L 35.2% C 0.117 H 316.2°. Best body text is #FFFFFF at 11.88:1 contrast (WCAG AA passes).

Color values

HEX#522263
RGBrgb(82, 34, 99)
HSLhsl(284, 49%, 26%)
HSVhsv(284, 66%, 39%)
CMYKcmyk(17.2%, 65.7%, 0%, 61.2%)
CIE-LABlab(23.13, 33.72, -28.98)
CIE-LCHlch(23.13, 44.46, 319.32°)
OKLaboklab(35.18% 0.0847 -0.0812)
OKLCHoklch(35.18% 0.117 316.2)
XYZxyz(6.3035, 3.8390, 12.2109)
Luminance0.0384 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522263 #336322
analogous
#312263 #522263 #632253
triadic
#522263 #635222 #226352
tetradic
#522263 #633122 #336322 #225363
square
#522263 #633122 #336322 #225363
split-complementary
#522263 #536322 #226331
monochromatic
#130817 #2C1235 #522263 #783291 #9D41BE

Accessibility & contrast

On white

11.88
#522263 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#522263 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522263
11.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522263#FFFFFF#000000##FFFFFF
##5222631.0011.881.7711.88
#FFFFFF11.881.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D3465
Deuteranopia (green-blind)
#223961
Tritanopia (blue-blind)
#512D3F
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #522263;
/* rgb */ color: rgb(82, 34, 99);
/* oklch */ color: oklch(35.2% 0.117 316.2);
Tailwind
colors: {
  custom: {
    50: '#856090',
    500: '#522263',
    950: '#000000',
  },
}
SCSS
$custom: #522263;
$custom-light: #856090;
$custom-dark: #000000;
JSON
{
  "hex": "#522263",
  "rgb": {
    "r": 82,
    "g": 34,
    "b": 99
  },
  "hsl": {
    "h": 284.308,
    "s": 48.872,
    "l": 26.078
  },
  "oklch": {
    "l": 0.35182,
    "c": 0.11729,
    "h": 316.2
  },
  "luminance": 0.03839
}

Semantic roles & 50–950 ramp

primary
#522263
secondary
#5E974A
accent
#D84F73
background
#F8F5F8
surface
#EFEAF0
border
#CAC6CB
text
#0B050C
muted
#7C797D

Preview Lab

Preview with #522263

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

Preview Lab → · Contrast checker → · Palette generator →

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