#523786#523786

#523786 is a dark, vivid violet. Relative luminance 0.062; OKLCH L 41.0% C 0.127 H 296.1°. Best body text is #FFFFFF at 9.34:1 contrast (WCAG AA passes).

Color values

HEX#523786
RGBrgb(82, 55, 134)
HSLhsl(261, 42%, 37%)
HSVhsv(261, 59%, 53%)
CMYKcmyk(38.8%, 59%, 0%, 47.5%)
CIE-LABlab(30.03, 30.74, -40.22)
CIE-LCHlch(30.03, 50.62, 307.39°)
OKLaboklab(40.97% 0.0559 -0.1142)
OKLCHoklch(40.97% 0.127 296.1)
XYZxyz(9.1478, 6.2473, 23.2735)
Luminance0.0625 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#523786 #6B8637
analogous
#374486 #523786 #7A3786
triadic
#523786 #865237 #378652
tetradic
#523786 #863744 #6B8637 #37867A
square
#523786 #863744 #6B8637 #37867A
split-complementary
#523786 #867A37 #448637
monochromatic
#1D132F #37255B #523786 #6D49B1 #8F72C5

Accessibility & contrast

On white

9.34
#523786 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.25
#523786 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #523786
9.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##523786#FFFFFF#000000##FFFFFF
##5237861.009.342.259.34
#FFFFFF9.341.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E4789
Deuteranopia (green-blind)
#194684
Tritanopia (blue-blind)
#464859
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #523786;
/* rgb */ color: rgb(82, 55, 134);
/* oklch */ color: oklch(41.0% 0.127 296.1);
Tailwind
colors: {
  custom: {
    50: '#866faa',
    500: '#523786',
    950: '#000000',
  },
}
SCSS
$custom: #523786;
$custom-light: #866faa;
$custom-dark: #000000;
JSON
{
  "hex": "#523786",
  "rgb": {
    "r": 82,
    "g": 55,
    "b": 134
  },
  "hsl": {
    "h": 260.506,
    "s": 41.799,
    "l": 37.059
  },
  "oklch": {
    "l": 0.40973,
    "c": 0.12714,
    "h": 296.1
  },
  "luminance": 0.06247
}

Semantic roles & 50–950 ramp

primary
#523786
secondary
#97AE6B
accent
#D256A7
background
#F8F6FA
surface
#F0ECF4
border
#CBC7CE
text
#0B0710
muted
#7C7A7F

Preview Lab

Preview with #523786

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

Preview Lab → · Contrast checker → · Palette generator →

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