#523AA4#523AA4

#523AA4 is a dark, vivid violet. Relative luminance 0.075; OKLCH L 43.8% C 0.163 H 288.2°. Best body text is #FFFFFF at 8.40:1 contrast (WCAG AA passes).

Color values

HEX#523AA4
RGBrgb(82, 58, 164)
HSLhsl(254, 48%, 44%)
HSVhsv(254, 65%, 64%)
CMYKcmyk(50%, 64.6%, 0%, 35.7%)
CIE-LABlab(32.92, 37.81, -53.89)
CIE-LCHlch(32.92, 65.83, 305.06°)
OKLaboklab(43.78% 0.0508 -0.1544)
OKLCHoklch(43.78% 0.163 288.2)
XYZxyz(11.6916, 7.4998, 35.9463)
Luminance0.0750 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#523AA4 #8CA43A
analogous
#3A57A4 #523AA4 #873AA4
triadic
#523AA4 #A4523A #3AA452
tetradic
#523AA4 #A43A57 #8CA43A #3AA487
square
#523AA4 #A43A57 #8CA43A #3AA487
split-complementary
#523AA4 #A4873A #57A43A
monochromatic
#251A4A #3B2A77 #523AA4 #7057C4 #9785D4

Accessibility & contrast

On white

8.40
#523AA4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.50
#523AA4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #523AA4
8.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##523AA4#FFFFFF#000000##FFFFFF
##523AA41.008.402.508.40
#FFFFFF8.401.0021.001.00
#0000002.5021.001.0021.00
##FFFFFF8.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050A7
Deuteranopia (green-blind)
#004BA2
Tritanopia (blue-blind)
#365369
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #523aa4;
/* rgb */ color: rgb(82, 58, 164);
/* oklch */ color: oklch(43.8% 0.163 288.2);
Tailwind
colors: {
  custom: {
    50: '#8a71c0',
    500: '#523aa4',
    950: '#000000',
  },
}
SCSS
$custom: #523aa4;
$custom-light: #8a71c0;
$custom-dark: #000000;
JSON
{
  "hex": "#523aa4",
  "rgb": {
    "r": 82,
    "g": 58,
    "b": 164
  },
  "hsl": {
    "h": 253.585,
    "s": 47.748,
    "l": 43.529
  },
  "oklch": {
    "l": 0.43784,
    "c": 0.1625,
    "h": 288.2
  },
  "luminance": 0.075
}

Semantic roles & 50–950 ramp

primary
#523AA4
secondary
#AFBE7C
accent
#D750B9
background
#F8F6FB
surface
#F0ECF7
border
#CBC7D0
text
#0C0812
muted
#7D7B81

Preview Lab

Preview with #523AA4

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

Preview Lab → · Contrast checker → · Palette generator →

#523AA4 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva