#523798#523798

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

Color values

HEX#523798
RGBrgb(82, 55, 152)
HSLhsl(257, 47%, 41%)
HSVhsv(257, 64%, 60%)
CMYKcmyk(46.1%, 63.8%, 0%, 40.4%)
CIE-LABlab(31.33, 35.99, -49.19)
CIE-LCHlch(31.33, 60.95, 306.19°)
OKLaboklab(42.34% 0.0551 -0.1406)
OKLCHoklch(42.34% 0.151 291.4)
XYZxyz(10.5118, 6.7929, 30.4570)
Luminance0.0679 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#523798 #7D9837
analogous
#374C98 #523798 #823798
triadic
#523798 #985237 #379852
tetradic
#523798 #98374C #7D9837 #379882
square
#523798 #98374C #7D9837 #379882
split-complementary
#523798 #988237 #4C9837
monochromatic
#22163E #3A276B #523798 #6D4DBF #927ACF

Accessibility & contrast

On white

8.90
#523798 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #523798
8.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##523798#FFFFFF#000000##FFFFFF
##5237981.008.902.368.90
#FFFFFF8.901.0021.001.00
#0000002.3621.001.0021.00
##FFFFFF8.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004B9B
Deuteranopia (green-blind)
#004896
Tritanopia (blue-blind)
#3D4E62
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #523798;
/* rgb */ color: rgb(82, 55, 152);
/* oklch */ color: oklch(42.3% 0.151 291.4);
Tailwind
colors: {
  custom: {
    50: '#886fb7',
    500: '#523798',
    950: '#000000',
  },
}
SCSS
$custom: #523798;
$custom-light: #886fb7;
$custom-dark: #000000;
JSON
{
  "hex": "#523798",
  "rgb": {
    "r": 82,
    "g": 55,
    "b": 152
  },
  "hsl": {
    "h": 256.701,
    "s": 46.86,
    "l": 40.588
  },
  "oklch": {
    "l": 0.42339,
    "c": 0.15101,
    "h": 291.4
  },
  "luminance": 0.06793
}

Semantic roles & 50–950 ramp

primary
#523798
secondary
#A5B873
accent
#D651B1
background
#F8F6FB
surface
#F0ECF6
border
#CBC7D0
text
#0C0711
muted
#7D7A80

Preview Lab

Preview with #523798

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

Preview Lab → · Contrast checker → · Palette generator →

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