#523C8A#523C8A

#523C8A is a dark, vivid violet. Relative luminance 0.069; OKLCH L 42.1% C 0.125 H 293.3°. Best body text is #FFFFFF at 8.85:1 contrast (WCAG AA passes).

Color values

HEX#523C8A
RGBrgb(82, 60, 138)
HSLhsl(257, 39%, 39%)
HSVhsv(257, 57%, 54%)
CMYKcmyk(40.6%, 56.5%, 0%, 45.9%)
CIE-LABlab(31.49, 28.83, -40.36)
CIE-LCHlch(31.49, 49.59, 305.54°)
OKLaboklab(42.14% 0.0494 -0.1146)
OKLCHoklch(42.14% 0.125 293.3)
XYZxyz(9.6818, 6.8603, 24.8539)
Luminance0.0686 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#523C8A #748A3C
analogous
#3C4D8A #523C8A #793C8A
triadic
#523C8A #8A523C #3C8A52
tetradic
#523C8A #8A3C4D #748A3C #3C8A79
square
#523C8A #8A3C4D #748A3C #3C8A79
split-complementary
#523C8A #8A793C #4D8A3C
monochromatic
#1F1735 #39295F #523C8A #6C50B3 #907BC6

Accessibility & contrast

On white

8.85
#523C8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.37
#523C8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #523C8A
8.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##523C8A#FFFFFF#000000##FFFFFF
##523C8A1.008.852.378.85
#FFFFFF8.851.0021.001.00
#0000002.3721.001.0021.00
##FFFFFF8.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#174B8D
Deuteranopia (green-blind)
#1C4988
Tritanopia (blue-blind)
#444C5D
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #523c8a;
/* rgb */ color: rgb(82, 60, 138);
/* oklch */ color: oklch(42.1% 0.125 293.3);
Tailwind
colors: {
  custom: {
    50: '#8672ad',
    500: '#523c8a',
    950: '#000000',
  },
}
SCSS
$custom: #523c8a;
$custom-light: #8672ad;
$custom-dark: #000000;
JSON
{
  "hex": "#523c8a",
  "rgb": {
    "r": 82,
    "g": 60,
    "b": 138
  },
  "hsl": {
    "h": 256.923,
    "s": 39.394,
    "l": 38.824
  },
  "oklch": {
    "l": 0.42135,
    "c": 0.12477,
    "h": 293.3
  },
  "luminance": 0.06861
}

Semantic roles & 50–950 ramp

primary
#523C8A
secondary
#9EAF73
accent
#CF59AE
background
#F8F6FA
surface
#F0ECF4
border
#CBC7CE
text
#0B0810
muted
#7C7B7F

Preview Lab

Preview with #523C8A

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

Preview Lab → · Contrast checker → · Palette generator →

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