#523C8E#523C8E

#523C8E is a dark, vivid violet. Relative luminance 0.070; OKLCH L 42.4% C 0.130 H 292.3°. Best body text is #FFFFFF at 8.77:1 contrast (WCAG AA passes).

Color values

HEX#523C8E
RGBrgb(82, 60, 142)
HSLhsl(256, 41%, 40%)
HSVhsv(256, 58%, 56%)
CMYKcmyk(42.3%, 57.7%, 0%, 44.3%)
CIE-LABlab(31.76, 30.01, -42.38)
CIE-LCHlch(31.76, 51.93, 305.30°)
OKLaboklab(42.42% 0.0495 -0.1205)
OKLCHoklch(42.42% 0.13 292.3)
XYZxyz(9.9767, 6.9783, 26.4072)
Luminance0.0698 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#523C8E #788E3C
analogous
#3C4F8E #523C8E #7B3C8E
triadic
#523C8E #8E523C #3C8E52
tetradic
#523C8E #8E3C4F #788E3C #3C8E7B
square
#523C8E #8E3C4F #788E3C #3C8E7B
split-complementary
#523C8E #8E7B3C #4F8E3C
monochromatic
#201838 #392A63 #523C8E #6C52B6 #917DC8

Accessibility & contrast

On white

8.77
#523C8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.40
#523C8E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #523C8E
8.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##523C8E#FFFFFF#000000##FFFFFF
##523C8E1.008.772.408.77
#FFFFFF8.771.0021.001.00
#0000002.4021.001.0021.00
##FFFFFF8.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#104C91
Deuteranopia (green-blind)
#16498C
Tritanopia (blue-blind)
#424E5F
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #523c8e;
/* rgb */ color: rgb(82, 60, 142);
/* oklch */ color: oklch(42.4% 0.130 292.3);
Tailwind
colors: {
  custom: {
    50: '#8772b0',
    500: '#523c8e',
    950: '#000000',
  },
}
SCSS
$custom: #523c8e;
$custom-light: #8772b0;
$custom-dark: #000000;
JSON
{
  "hex": "#523c8e",
  "rgb": {
    "r": 82,
    "g": 60,
    "b": 142
  },
  "hsl": {
    "h": 256.098,
    "s": 40.594,
    "l": 39.608
  },
  "oklch": {
    "l": 0.42422,
    "c": 0.1303,
    "h": 292.3
  },
  "luminance": 0.06979
}

Semantic roles & 50–950 ramp

primary
#523C8E
secondary
#A1B274
accent
#D057B0
background
#F8F6FA
surface
#F0ECF5
border
#CBC7CF
text
#0C0810
muted
#7D7B7F

Preview Lab

Preview with #523C8E

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

Preview Lab → · Contrast checker → · Palette generator →

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