#521275#521275

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

Color values

HEX#521275
RGBrgb(82, 18, 117)
HSLhsl(279, 73%, 26%)
HSVhsv(279, 85%, 46%)
CMYKcmyk(29.9%, 84.6%, 0%, 54.1%)
CIE-LABlab(21.98, 44.92, -42.50)
CIE-LCHlch(21.98, 61.84, 316.59°)
OKLaboklab(34.79% 0.0996 -0.1207)
OKLCHoklch(34.79% 0.157 309.5)
XYZxyz(6.9062, 3.5109, 17.1400)
Luminance0.0351 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#521275 #357512
analogous
#211275 #521275 #751267
triadic
#521275 #755212 #127552
tetradic
#521275 #752112 #357512 #126775
square
#521275 #752112 #357512 #126775
split-complementary
#521275 #677512 #127521
monochromatic
#13041B #2D0A40 #521275 #771AAA #9C24DD

Accessibility & contrast

On white

12.34
#521275 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #521275
12.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##521275#FFFFFF#000000##FFFFFF
##5212751.0012.341.7012.34
#FFFFFF12.341.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.341.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #521275;
/* rgb */ color: rgb(82, 18, 117);
/* oklch */ color: oklch(34.8% 0.157 309.5);
Tailwind
colors: {
  custom: {
    50: '#87599d',
    500: '#521275',
    950: '#000000',
  },
}
SCSS
$custom: #521275;
$custom-light: #87599d;
$custom-dark: #000000;
JSON
{
  "hex": "#521275",
  "rgb": {
    "r": 82,
    "g": 18,
    "b": 117
  },
  "hsl": {
    "h": 278.788,
    "s": 73.333,
    "l": 26.471
  },
  "oklch": {
    "l": 0.34791,
    "c": 0.1565,
    "h": 309.5
  },
  "luminance": 0.03511
}

Semantic roles & 50–950 ramp

primary
#521275
secondary
#60AC37
accent
#F03879
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040E
muted
#7D797E

Preview Lab

Preview with #521275

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

Preview Lab → · Contrast checker → · Palette generator →

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