#523F8D#523F8D

#523F8D is a dark, vivid violet. Relative luminance 0.073; OKLCH L 42.9% C 0.124 H 291.5°. Best body text is #FFFFFF at 8.56:1 contrast (WCAG AA passes).

Color values

HEX#523F8D
RGBrgb(82, 63, 141)
HSLhsl(255, 38%, 40%)
HSVhsv(255, 55%, 55%)
CMYKcmyk(41.8%, 55.3%, 0%, 44.7%)
CIE-LABlab(32.42, 27.85, -40.71)
CIE-LCHlch(32.42, 49.32, 304.37°)
OKLaboklab(42.89% 0.0455 -0.1156)
OKLCHoklch(42.89% 0.124 291.5)
XYZxyz(10.0636, 7.2717, 26.0675)
Luminance0.0727 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#523F8D #7A8D3F
analogous
#3F538D #523F8D #793F8D
triadic
#523F8D #8D523F #3F8D52
tetradic
#523F8D #8D3F53 #7A8D3F #3F8D79
square
#523F8D #8D3F53 #7A8D3F #3F8D79
split-complementary
#523F8D #8D793F #538D3F
monochromatic
#211938 #392C63 #523F8D #6D56B3 #9180C6

Accessibility & contrast

On white

8.56
#523F8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.45
#523F8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #523F8D
8.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##523F8D#FFFFFF#000000##FFFFFF
##523F8D1.008.562.458.56
#FFFFFF8.561.0021.001.00
#0000002.4521.001.0021.00
##FFFFFF8.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A4D90
Deuteranopia (green-blind)
#1E4B8B
Tritanopia (blue-blind)
#424F60
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #523f8d;
/* rgb */ color: rgb(82, 63, 141);
/* oklch */ color: oklch(42.9% 0.124 291.5);
Tailwind
colors: {
  custom: {
    50: '#8674af',
    500: '#523f8d',
    950: '#000000',
  },
}
SCSS
$custom: #523f8d;
$custom-light: #8674af;
$custom-dark: #000000;
JSON
{
  "hex": "#523f8d",
  "rgb": {
    "r": 82,
    "g": 63,
    "b": 141
  },
  "hsl": {
    "h": 254.615,
    "s": 38.235,
    "l": 40
  },
  "oklch": {
    "l": 0.42889,
    "c": 0.12427,
    "h": 291.5
  },
  "luminance": 0.07272
}

Semantic roles & 50–950 ramp

primary
#523F8D
secondary
#A3B177
accent
#CE5AB2
background
#F8F7FA
surface
#F0EDF4
border
#CBC8CE
text
#0B0810
muted
#7C7B7F

Preview Lab

Preview with #523F8D

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

Preview Lab → · Contrast checker → · Palette generator →

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