#523A8D#523A8D

#523A8D is a dark, vivid violet. Relative luminance 0.067; OKLCH L 42.0% C 0.132 H 293.2°. Best body text is #FFFFFF at 8.94:1 contrast (WCAG AA passes).

Color values

HEX#523A8D
RGBrgb(82, 58, 141)
HSLhsl(257, 42%, 39%)
HSVhsv(257, 59%, 55%)
CMYKcmyk(41.8%, 58.9%, 0%, 44.7%)
CIE-LABlab(31.21, 30.94, -42.64)
CIE-LCHlch(31.21, 52.69, 305.97°)
OKLaboklab(42% 0.052 -0.1213)
OKLCHoklch(42% 0.132 293.2)
XYZxyz(9.7992, 6.7428, 25.9793)
Luminance0.0674 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#523A8D #758D3A
analogous
#3A4C8D #523A8D #7C3A8D
triadic
#523A8D #8D523A #3A8D52
tetradic
#523A8D #8D3A4C #758D3A #3A8D7C
square
#523A8D #8D3A4C #758D3A #3A8D7C
split-complementary
#523A8D #8D7C3A #4C8D3A
monochromatic
#201636 #392862 #523A8D #6C4EB6 #9079C8

Accessibility & contrast

On white

8.94
#523A8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.35
#523A8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #523A8D
8.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##523A8D#FFFFFF#000000##FFFFFF
##523A8D1.008.942.358.94
#FFFFFF8.941.0021.001.00
#0000002.3521.001.0021.00
##FFFFFF8.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#094A90
Deuteranopia (green-blind)
#13488B
Tritanopia (blue-blind)
#424C5D
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #523a8d;
/* rgb */ color: rgb(82, 58, 141);
/* oklch */ color: oklch(42.0% 0.132 293.2);
Tailwind
colors: {
  custom: {
    50: '#8771af',
    500: '#523a8d',
    950: '#000000',
  },
}
SCSS
$custom: #523a8d;
$custom-light: #8771af;
$custom-dark: #000000;
JSON
{
  "hex": "#523a8d",
  "rgb": {
    "r": 82,
    "g": 58,
    "b": 141
  },
  "hsl": {
    "h": 257.349,
    "s": 41.709,
    "l": 39.02
  },
  "oklch": {
    "l": 0.42,
    "c": 0.13199,
    "h": 293.2
  },
  "luminance": 0.06743
}

Semantic roles & 50–950 ramp

primary
#523A8D
secondary
#9FB171
accent
#D256AE
background
#F8F6FA
surface
#F0ECF4
border
#CBC7CE
text
#0C0810
muted
#7D7B7F

Preview Lab

Preview with #523A8D

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

Preview Lab → · Contrast checker → · Palette generator →

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