#521875#521875

#521875 is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.3% C 0.150 H 308.9°. Best body text is #FFFFFF at 12.03:1 contrast (WCAG AA passes).

Color values

HEX#521875
RGBrgb(82, 24, 117)
HSLhsl(277, 66%, 28%)
HSVhsv(277, 79%, 46%)
CMYKcmyk(29.9%, 79.5%, 0%, 54.1%)
CIE-LABlab(22.76, 42.66, -41.23)
CIE-LCHlch(22.76, 59.33, 315.98°)
OKLaboklab(35.34% 0.0944 -0.117)
OKLCHoklch(35.34% 0.15 308.9)
XYZxyz(7.0165, 3.7316, 17.1768)
Luminance0.0373 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#521875 #3B7518
analogous
#231875 #521875 #75186A
triadic
#521875 #755218 #187552
tetradic
#521875 #752318 #3B7518 #186A75
square
#521875 #752318 #3B7518 #186A75
split-complementary
#521875 #6A7518 #187523
monochromatic
#120519 #2E0E42 #521875 #7622A8 #9832D5

Accessibility & contrast

On white

12.03
#521875 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#521875 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #521875
12.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##521875#FFFFFF#000000##FFFFFF
##5218751.0012.031.7512.03
#FFFFFF12.031.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF12.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003478
Deuteranopia (green-blind)
#003773
Tritanopia (blue-blind)
#4D2F46
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #521875;
/* rgb */ color: rgb(82, 24, 117);
/* oklch */ color: oklch(35.3% 0.150 308.9);
Tailwind
colors: {
  custom: {
    50: '#875c9d',
    500: '#521875',
    950: '#000000',
  },
}
SCSS
$custom: #521875;
$custom-light: #875c9d;
$custom-dark: #000000;
JSON
{
  "hex": "#521875",
  "rgb": {
    "r": 82,
    "g": 24,
    "b": 117
  },
  "hsl": {
    "h": 277.419,
    "s": 65.957,
    "l": 27.647
  },
  "oklch": {
    "l": 0.35337,
    "c": 0.15034,
    "h": 308.9
  },
  "luminance": 0.03731
}

Semantic roles & 50–950 ramp

primary
#521875
secondary
#67AA3F
accent
#E93F7F
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040E
muted
#7D797E

Preview Lab

Preview with #521875

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

Preview Lab → · Contrast checker → · Palette generator →

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