#523797#523797

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

Color values

HEX#523797
RGBrgb(82, 55, 151)
HSLhsl(257, 47%, 40%)
HSVhsv(257, 64%, 59%)
CMYKcmyk(45.7%, 63.6%, 0%, 40.8%)
CIE-LABlab(31.25, 35.70, -48.71)
CIE-LCHlch(31.25, 60.39, 306.24°)
OKLaboklab(42.26% 0.0552 -0.1391)
OKLCHoklch(42.26% 0.15 291.6)
XYZxyz(10.4302, 6.7602, 30.0275)
Luminance0.0676 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#523797 #7C9737
analogous
#374C97 #523797 #823797
triadic
#523797 #975237 #379752
tetradic
#523797 #97374C #7C9737 #379782
square
#523797 #97374C #7C9737 #379782
split-complementary
#523797 #978237 #4C9737
monochromatic
#21163D #3A276A #523797 #6D4DBE #927ACF

Accessibility & contrast

On white

8.93
#523797 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.35
#523797 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #523797
8.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##523797#FFFFFF#000000##FFFFFF
##5237971.008.932.358.93
#FFFFFF8.931.0021.001.00
#0000002.3521.001.0021.00
##FFFFFF8.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004B9A
Deuteranopia (green-blind)
#004895
Tritanopia (blue-blind)
#3E4D62
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #523797;
/* rgb */ color: rgb(82, 55, 151);
/* oklch */ color: oklch(42.3% 0.150 291.6);
Tailwind
colors: {
  custom: {
    50: '#886fb6',
    500: '#523797',
    950: '#000000',
  },
}
SCSS
$custom: #523797;
$custom-light: #886fb6;
$custom-dark: #000000;
JSON
{
  "hex": "#523797",
  "rgb": {
    "r": 82,
    "g": 55,
    "b": 151
  },
  "hsl": {
    "h": 256.875,
    "s": 46.602,
    "l": 40.392
  },
  "oklch": {
    "l": 0.4226,
    "c": 0.14971,
    "h": 291.6
  },
  "luminance": 0.06761
}

Semantic roles & 50–950 ramp

primary
#523797
secondary
#A4B872
accent
#D652B1
background
#F8F6FB
surface
#F0ECF6
border
#CBC7D0
text
#0C0711
muted
#7D7A80

Preview Lab

Preview with #523797

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

Preview Lab → · Contrast checker → · Palette generator →

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