#521855#521855

#521855 is a dark, moderate purple. Relative luminance 0.031; OKLCH L 33.0% C 0.118 H 325.8°. Best body text is #FFFFFF at 12.96:1 contrast (WCAG AA passes).

Color values

HEX#521855
RGBrgb(82, 24, 85)
HSLhsl(297, 56%, 21%)
HSVhsv(297, 72%, 33%)
CMYKcmyk(3.5%, 71.8%, 0%, 66.7%)
CIE-LABlab(20.45, 35.63, -23.96)
CIE-LCHlch(20.45, 42.94, 326.08°)
OKLaboklab(32.96% 0.0978 -0.0665)
OKLCHoklch(32.96% 0.118 325.8)
XYZxyz(5.4459, 3.1033, 8.9047)
Luminance0.0310 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#521855 #1B5518
analogous
#341855 #521855 #55183A
triadic
#521855 #555218 #185552
tetradic
#521855 #553418 #1B5518 #183A55
square
#521855 #553418 #1B5518 #183A55
split-complementary
#521855 #3A5518 #185534
monochromatic
#170718 #240B25 #521855 #802585 #AE33B4

Accessibility & contrast

On white

12.96
#521855 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#521855 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #521855
12.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##521855#FFFFFF#000000##FFFFFF
##5218551.0012.961.6212.96
#FFFFFF12.961.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D2D57
Deuteranopia (green-blind)
#253453
Tritanopia (blue-blind)
#542134
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #521855;
/* rgb */ color: rgb(82, 24, 85);
/* oklch */ color: oklch(33.0% 0.118 325.8);
Tailwind
colors: {
  custom: {
    50: '#855a85',
    500: '#521855',
    950: '#000000',
  },
}
SCSS
$custom: #521855;
$custom-light: #855a85;
$custom-dark: #000000;
JSON
{
  "hex": "#521855",
  "rgb": {
    "r": 82,
    "g": 24,
    "b": 85
  },
  "hsl": {
    "h": 297.049,
    "s": 55.963,
    "l": 21.373
  },
  "oklch": {
    "l": 0.32957,
    "c": 0.11823,
    "h": 325.8
  },
  "luminance": 0.03103
}

Semantic roles & 50–950 ramp

primary
#521855
secondary
#418C3D
accent
#DF4950
background
#F8F5F8
surface
#EFE9EF
border
#CAC5CA
text
#0B040B
muted
#7C797C

Preview Lab

Preview with #521855

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

Preview Lab → · Contrast checker → · Palette generator →

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