#521F94#521F94

#521F94 is a dark, vivid violet. Relative luminance 0.049; OKLCH L 38.8% C 0.176 H 297.1°. Best body text is #FFFFFF at 10.59:1 contrast (WCAG AA passes).

Color values

HEX#521F94
RGBrgb(82, 31, 148)
HSLhsl(266, 65%, 35%)
HSVhsv(266, 79%, 58%)
CMYKcmyk(44.6%, 79.1%, 0%, 42%)
CIE-LABlab(26.48, 47.40, -54.64)
CIE-LCHlch(26.48, 72.34, 310.94°)
OKLaboklab(38.78% 0.0799 -0.1565)
OKLCHoklch(38.78% 0.176 297.1)
XYZxyz(9.3135, 4.9117, 28.4686)
Luminance0.0491 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#521F94 #61941F
analogous
#1F2694 #521F94 #8D1F94
triadic
#521F94 #94521F #1F9452
tetradic
#521F94 #941F26 #61941F #1F948D
square
#521F94 #941F26 #61941F #1F948D
split-complementary
#521F94 #948D1F #26941F
monochromatic
#1A0A2F #361461 #521F94 #6E2AC7 #8E53DB

Accessibility & contrast

On white

10.59
#521F94 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.98
#521F94 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #521F94
10.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##521F94#FFFFFF#000000##FFFFFF
##521F941.0010.591.9810.59
#FFFFFF10.591.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F97
Deuteranopia (green-blind)
#003D92
Tritanopia (blue-blind)
#403F59
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #521f94;
/* rgb */ color: rgb(82, 31, 148);
/* oklch */ color: oklch(38.8% 0.176 297.1);
Tailwind
colors: {
  custom: {
    50: '#8a61b4',
    500: '#521f94',
    950: '#000000',
  },
}
SCSS
$custom: #521f94;
$custom-light: #8a61b4;
$custom-dark: #000000;
JSON
{
  "hex": "#521f94",
  "rgb": {
    "r": 82,
    "g": 31,
    "b": 148
  },
  "hsl": {
    "h": 266.154,
    "s": 65.363,
    "l": 35.098
  },
  "oklch": {
    "l": 0.38777,
    "c": 0.17572,
    "h": 297.1
  },
  "luminance": 0.04912
}

Semantic roles & 50–950 ramp

primary
#521F94
secondary
#8EBE51
accent
#E83F9F
background
#F8F5FB
surface
#F0EAF6
border
#CBC6D0
text
#0C0511
muted
#7D7980

Preview Lab

Preview with #521F94

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

Preview Lab → · Contrast checker → · Palette generator →

#521F94 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva