#523F8A#523F8A

#523F8A is a dark, vivid violet. Relative luminance 0.072; OKLCH L 42.7% C 0.120 H 292.2°. Best body text is #FFFFFF at 8.62:1 contrast (WCAG AA passes).

Color values

HEX#523F8A
RGBrgb(82, 63, 138)
HSLhsl(255, 37%, 39%)
HSVhsv(255, 54%, 54%)
CMYKcmyk(40.6%, 54.3%, 0%, 45.9%)
CIE-LABlab(32.22, 26.95, -39.18)
CIE-LCHlch(32.22, 47.55, 304.53°)
OKLaboklab(42.68% 0.0454 -0.1111)
OKLCHoklch(42.68% 0.12 292.2)
XYZxyz(9.8434, 7.1836, 24.9078)
Luminance0.0718 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#523F8A #778A3F
analogous
#3F528A #523F8A #783F8A
triadic
#523F8A #8A523F #3F8A52
tetradic
#523F8A #8A3F52 #778A3F #3F8A78
square
#523F8A #8A3F52 #778A3F #3F8A78
split-complementary
#523F8A #8A783F #528A3F
monochromatic
#201936 #392C60 #523F8A #6C55B1 #917FC5

Accessibility & contrast

On white

8.62
#523F8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.44
#523F8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #523F8A
8.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##523F8A#FFFFFF#000000##FFFFFF
##523F8A1.008.622.448.62
#FFFFFF8.621.0021.001.00
#0000002.4421.001.0021.00
##FFFFFF8.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E4D8D
Deuteranopia (green-blind)
#224A88
Tritanopia (blue-blind)
#434E5E
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #523f8a;
/* rgb */ color: rgb(82, 63, 138);
/* oklch */ color: oklch(42.7% 0.120 292.2);
Tailwind
colors: {
  custom: {
    50: '#8674ad',
    500: '#523f8a',
    950: '#000000',
  },
}
SCSS
$custom: #523f8a;
$custom-light: #8674ad;
$custom-dark: #000000;
JSON
{
  "hex": "#523f8a",
  "rgb": {
    "r": 82,
    "g": 63,
    "b": 138
  },
  "hsl": {
    "h": 255.2,
    "s": 37.313,
    "l": 39.412
  },
  "oklch": {
    "l": 0.4268,
    "c": 0.12004,
    "h": 292.2
  },
  "luminance": 0.07184
}

Semantic roles & 50–950 ramp

primary
#523F8A
secondary
#A0AF76
accent
#CD5BB0
background
#F8F7FA
surface
#F0EDF4
border
#CBC8CE
text
#0B0810
muted
#7C7B7F

Preview Lab

Preview with #523F8A

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

Preview Lab → · Contrast checker → · Palette generator →

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