#522150#522150

#522150 is a dark, moderate purple. Relative luminance 0.035; OKLCH L 33.8% C 0.099 H 329.1°. Best body text is #FFFFFF at 12.41:1 contrast (WCAG AA passes).

Color values

HEX#522150
RGBrgb(82, 33, 80)
HSLhsl(302, 43%, 23%)
HSVhsv(302, 60%, 32%)
CMYKcmyk(0%, 59.8%, 2.4%, 67.8%)
CIE-LABlab(21.80, 30.11, -18.48)
CIE-LCHlch(21.80, 35.33, 328.47°)
OKLaboklab(33.85% 0.0846 -0.0507)
OKLCHoklch(33.85% 0.099 329.1)
XYZxyz(5.4714, 3.4611, 7.9677)
Luminance0.0346 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522150 #215223
analogous
#3B2152 #522150 #522137
triadic
#522150 #505221 #215052
tetradic
#522150 #523B21 #215223 #213752
square
#522150 #523B21 #215223 #213752
split-complementary
#522150 #375221 #21523B
monochromatic
#160915 #260F25 #522150 #7E337B #A944A5

Accessibility & contrast

On white

12.41
#522150 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#522150 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522150
12.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522150#FFFFFF#000000##FFFFFF
##5221501.0012.411.6912.41
#FFFFFF12.411.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D3052
Deuteranopia (green-blind)
#2D374F
Tritanopia (blue-blind)
#552635
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #522150;
/* rgb */ color: rgb(82, 33, 80);
/* oklch */ color: oklch(33.8% 0.099 329.1);
Tailwind
colors: {
  custom: {
    50: '#845f81',
    500: '#522150',
    950: '#000000',
  },
}
SCSS
$custom: #522150;
$custom-light: #845f81;
$custom-dark: #000000;
JSON
{
  "hex": "#522150",
  "rgb": {
    "r": 82,
    "g": 33,
    "b": 80
  },
  "hsl": {
    "h": 302.449,
    "s": 42.609,
    "l": 22.549
  },
  "oklch": {
    "l": 0.33846,
    "c": 0.09864,
    "h": 329.1
  },
  "luminance": 0.03461
}

Semantic roles & 50–950 ramp

primary
#522150
secondary
#49864B
accent
#D25B55
background
#F8F5F7
surface
#EFE9EE
border
#CAC5C9
text
#0B050A
muted
#7C797C

Preview Lab

Preview with #522150

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

Preview Lab → · Contrast checker → · Palette generator →

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