#521775#521775

#521775 is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.2% C 0.151 H 309.0°. Best body text is #FFFFFF at 12.08:1 contrast (WCAG AA passes).

Color values

HEX#521775
RGBrgb(82, 23, 117)
HSLhsl(278, 67%, 27%)
HSVhsv(278, 80%, 46%)
CMYKcmyk(29.9%, 80.3%, 0%, 54.1%)
CIE-LABlab(22.62, 43.07, -41.46)
CIE-LCHlch(22.62, 59.78, 316.09°)
OKLaboklab(35.24% 0.0953 -0.1177)
OKLCHoklch(35.24% 0.151 309)
XYZxyz(6.9963, 3.6911, 17.1701)
Luminance0.0369 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#521775 #3A7517
analogous
#231775 #521775 #751769
triadic
#521775 #755217 #177552
tetradic
#521775 #752317 #3A7517 #176975
square
#521775 #752317 #3A7517 #176975
split-complementary
#521775 #697517 #177523
monochromatic
#12051A #2E0D42 #521775 #7621A8 #9830D6

Accessibility & contrast

On white

12.08
#521775 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#521775 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #521775
12.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##521775#FFFFFF#000000##FFFFFF
##5217751.0012.081.7412.08
#FFFFFF12.081.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.081.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #521775;
/* rgb */ color: rgb(82, 23, 117);
/* oklch */ color: oklch(35.2% 0.151 309.0);
Tailwind
colors: {
  custom: {
    50: '#875c9d',
    500: '#521775',
    950: '#000000',
  },
}
SCSS
$custom: #521775;
$custom-light: #875c9d;
$custom-dark: #000000;
JSON
{
  "hex": "#521775",
  "rgb": {
    "r": 82,
    "g": 23,
    "b": 117
  },
  "hsl": {
    "h": 277.66,
    "s": 67.143,
    "l": 27.451
  },
  "oklch": {
    "l": 0.35238,
    "c": 0.15145,
    "h": 309
  },
  "luminance": 0.03691
}

Semantic roles & 50–950 ramp

primary
#521775
secondary
#66AA3D
accent
#EA3E7E
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040E
muted
#7D797E

Preview Lab

Preview with #521775

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

Preview Lab → · Contrast checker → · Palette generator →

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