#523896#523896

#523896 is a dark, vivid violet. Relative luminance 0.068; OKLCH L 42.3% C 0.147 H 291.6°. Best body text is #FFFFFF at 8.88:1 contrast (WCAG AA passes).

Color values

HEX#523896
RGBrgb(82, 56, 150)
HSLhsl(257, 46%, 40%)
HSVhsv(257, 63%, 59%)
CMYKcmyk(45.3%, 62.7%, 0%, 41.2%)
CIE-LABlab(31.40, 34.81, -47.86)
CIE-LCHlch(31.40, 59.18, 306.03°)
OKLaboklab(42.34% 0.0541 -0.1366)
OKLCHoklch(42.34% 0.147 291.6)
XYZxyz(10.3973, 6.8239, 29.6176)
Luminance0.0682 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#523896 #7C9638
analogous
#384D96 #523896 #813896
triadic
#523896 #965238 #389652
tetradic
#523896 #96384D #7C9638 #389681
square
#523896 #96384D #7C9638 #389681
split-complementary
#523896 #968138 #4D9638
monochromatic
#21173D #3A2769 #523896 #6D4EBD #927BCE

Accessibility & contrast

On white

8.88
#523896 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.36
#523896 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #523896
8.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##523896#FFFFFF#000000##FFFFFF
##5238961.008.882.368.88
#FFFFFF8.881.0021.001.00
#0000002.3621.001.0021.00
##FFFFFF8.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004B99
Deuteranopia (green-blind)
#004894
Tritanopia (blue-blind)
#3E4E61
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #523896;
/* rgb */ color: rgb(82, 56, 150);
/* oklch */ color: oklch(42.3% 0.147 291.6);
Tailwind
colors: {
  custom: {
    50: '#8870b6',
    500: '#523896',
    950: '#000000',
  },
}
SCSS
$custom: #523896;
$custom-light: #8870b6;
$custom-dark: #000000;
JSON
{
  "hex": "#523896",
  "rgb": {
    "r": 82,
    "g": 56,
    "b": 150
  },
  "hsl": {
    "h": 256.596,
    "s": 45.631,
    "l": 40.392
  },
  "oklch": {
    "l": 0.42344,
    "c": 0.14698,
    "h": 291.6
  },
  "luminance": 0.06824
}

Semantic roles & 50–950 ramp

primary
#523896
secondary
#A4B773
accent
#D552B1
background
#F8F6FB
surface
#F0ECF6
border
#CBC7D0
text
#0C0711
muted
#7D7A80

Preview Lab

Preview with #523896

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

Preview Lab → · Contrast checker → · Palette generator →

#523896 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva