#521755#521755

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

Color values

HEX#521755
RGBrgb(82, 23, 85)
HSLhsl(297, 57%, 21%)
HSVhsv(297, 73%, 33%)
CMYKcmyk(3.5%, 72.9%, 0%, 66.7%)
CIE-LABlab(20.29, 36.08, -24.21)
CIE-LCHlch(20.29, 43.45, 326.13°)
OKLaboklab(32.84% 0.099 -0.0672)
OKLCHoklch(32.84% 0.12 325.8)
XYZxyz(5.4257, 3.0629, 8.8980)
Luminance0.0306 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#521755 #1A5517
analogous
#331755 #521755 #551739
triadic
#521755 #555217 #175552
tetradic
#521755 #553317 #1A5517 #173955
square
#521755 #553317 #1A5517 #173955
split-complementary
#521755 #395517 #175533
monochromatic
#170718 #240A25 #521755 #802485 #AF31B5

Accessibility & contrast

On white

13.02
#521755 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#521755 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #521755
13.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##521755#FFFFFF#000000##FFFFFF
##5217551.0013.021.6113.02
#FFFFFF13.021.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B2C57
Deuteranopia (green-blind)
#243353
Tritanopia (blue-blind)
#542034
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #521755;
/* rgb */ color: rgb(82, 23, 85);
/* oklch */ color: oklch(32.8% 0.120 325.8);
Tailwind
colors: {
  custom: {
    50: '#855a85',
    500: '#521755',
    950: '#000000',
  },
}
SCSS
$custom: #521755;
$custom-light: #855a85;
$custom-dark: #000000;
JSON
{
  "hex": "#521755",
  "rgb": {
    "r": 82,
    "g": 23,
    "b": 85
  },
  "hsl": {
    "h": 297.097,
    "s": 57.407,
    "l": 21.176
  },
  "oklch": {
    "l": 0.32842,
    "c": 0.11966,
    "h": 325.8
  },
  "luminance": 0.03063
}

Semantic roles & 50–950 ramp

primary
#521755
secondary
#408C3C
accent
#E1474F
background
#F8F5F8
surface
#EFE9EF
border
#CAC5CA
text
#0B040B
muted
#7C797C

Preview Lab

Preview with #521755

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

Preview Lab → · Contrast checker → · Palette generator →

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