#521175#521175

#521175 is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.7% C 0.157 H 309.6°. Best body text is #FFFFFF at 12.38:1 contrast (WCAG AA passes).

Color values

HEX#521175
RGBrgb(82, 17, 117)
HSLhsl(279, 75%, 26%)
HSVhsv(279, 85%, 46%)
CMYKcmyk(29.9%, 85.5%, 0%, 54.1%)
CIE-LABlab(21.87, 45.26, -42.69)
CIE-LCHlch(21.87, 62.21, 316.67°)
OKLaboklab(34.71% 0.1004 -0.1213)
OKLCHoklch(34.71% 0.157 309.6)
XYZxyz(6.8904, 3.4792, 17.1348)
Luminance0.0348 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#521175 #347511
analogous
#201175 #521175 #751166
triadic
#521175 #755211 #117552
tetradic
#521175 #752011 #347511 #116675
square
#521175 #752011 #347511 #116675
split-complementary
#521175 #667511 #117520
monochromatic
#13041B #2D0940 #521175 #7719AA #9D22DF

Accessibility & contrast

On white

12.38
#521175 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#521175 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #521175
12.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##521175#FFFFFF#000000##FFFFFF
##5211751.0012.381.7012.38
#FFFFFF12.381.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003278
Deuteranopia (green-blind)
#003573
Tritanopia (blue-blind)
#4D2C44
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #521175;
/* rgb */ color: rgb(82, 17, 117);
/* oklch */ color: oklch(34.7% 0.157 309.6);
Tailwind
colors: {
  custom: {
    50: '#87599d',
    500: '#521175',
    950: '#000000',
  },
}
SCSS
$custom: #521175;
$custom-light: #87599d;
$custom-dark: #000000;
JSON
{
  "hex": "#521175",
  "rgb": {
    "r": 82,
    "g": 17,
    "b": 117
  },
  "hsl": {
    "h": 279,
    "s": 74.627,
    "l": 26.275
  },
  "oklch": {
    "l": 0.34711,
    "c": 0.15742,
    "h": 309.6
  },
  "luminance": 0.03479
}

Semantic roles & 50–950 ramp

primary
#521175
secondary
#5FAC36
accent
#F13778
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040E
muted
#7D797E

Preview Lab

Preview with #521175

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

Preview Lab → · Contrast checker → · Palette generator →

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