#521248#521248

#521248 is a dark, moderate purple. Relative luminance 0.027; OKLCH L 31.5% C 0.115 H 335.0°. Best body text is #FFFFFF at 13.65:1 contrast (WCAG AA passes).

Color values

HEX#521248
RGBrgb(82, 18, 72)
HSLhsl(309, 64%, 20%)
HSVhsv(309, 78%, 32%)
CMYKcmyk(0%, 78%, 12.2%, 67.8%)
CIE-LABlab(18.78, 35.75, -17.77)
CIE-LCHlch(18.78, 39.93, 333.56°)
OKLaboklab(31.5% 0.1043 -0.0486)
OKLCHoklch(31.5% 0.115 335)
XYZxyz(4.8657, 2.6948, 6.3935)
Luminance0.0269 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#521248 #12521C
analogous
#3C1252 #521248 #521228
triadic
#521248 #485212 #124852
tetradic
#521248 #523C12 #12521C #122852
square
#521248 #523C12 #12521C #122852
split-complementary
#521248 #285212 #12523C
monochromatic
#190616 #20071C #521248 #841D74 #B628A0

Accessibility & contrast

On white

13.65
#521248 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#521248 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #521248
13.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##521248#FFFFFF#000000##FFFFFF
##5212481.0013.651.5413.65
#FFFFFF13.651.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#12284A
Deuteranopia (green-blind)
#283146
Tritanopia (blue-blind)
#56172B
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #521248;
/* rgb */ color: rgb(82, 18, 72);
/* oklch */ color: oklch(31.5% 0.115 335.0);
Tailwind
colors: {
  custom: {
    50: '#85577b',
    500: '#521248',
    950: '#000000',
  },
}
SCSS
$custom: #521248;
$custom-light: #85577b;
$custom-dark: #000000;
JSON
{
  "hex": "#521248",
  "rgb": {
    "r": 82,
    "g": 18,
    "b": 72
  },
  "hsl": {
    "h": 309.375,
    "s": 64,
    "l": 19.608
  },
  "oklch": {
    "l": 0.31498,
    "c": 0.115,
    "h": 335
  },
  "luminance": 0.02694
}

Semantic roles & 50–950 ramp

primary
#521248
secondary
#358B42
accent
#E75B41
background
#F8F5F7
surface
#F0E9EE
border
#CBC5C9
text
#0B0309
muted
#7C787B

Preview Lab

Preview with #521248

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

Preview Lab → · Contrast checker → · Palette generator →

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