#523478#523478

#523478 is a dark, moderate violet. Relative luminance 0.056; OKLCH L 39.5% C 0.113 H 301.8°. Best body text is #FFFFFF at 9.90:1 contrast (WCAG AA passes).

Color values

HEX#523478
RGBrgb(82, 52, 120)
HSLhsl(266, 40%, 34%)
HSVhsv(266, 57%, 47%)
CMYKcmyk(31.7%, 56.7%, 0%, 52.9%)
CIE-LABlab(28.40, 28.65, -34.07)
CIE-LCHlch(28.40, 44.51, 310.06°)
OKLaboklab(39.47% 0.0597 -0.0961)
OKLCHoklch(39.47% 0.113 301.8)
XYZxyz(8.0971, 5.6059, 18.4211)
Luminance0.0561 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#523478 #5A7834
analogous
#343878 #523478 #743478
triadic
#523478 #785234 #347852
tetradic
#523478 #783438 #5A7834 #347874
square
#523478 #783438 #5A7834 #347874
split-complementary
#523478 #787434 #387834
monochromatic
#180F23 #35214D #523478 #6F47A3 #8E69BE

Accessibility & contrast

On white

9.90
#523478 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.12
#523478 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #523478
9.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##523478#FFFFFF#000000##FFFFFF
##5234781.009.902.129.90
#FFFFFF9.901.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A427A
Deuteranopia (green-blind)
#244376
Tritanopia (blue-blind)
#4B4150
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #523478;
/* rgb */ color: rgb(82, 52, 120);
/* oklch */ color: oklch(39.5% 0.113 301.8);
Tailwind
colors: {
  custom: {
    50: '#856c9f',
    500: '#523478',
    950: '#000000',
  },
}
SCSS
$custom: #523478;
$custom-light: #856c9f;
$custom-dark: #000000;
JSON
{
  "hex": "#523478",
  "rgb": {
    "r": 82,
    "g": 52,
    "b": 120
  },
  "hsl": {
    "h": 266.471,
    "s": 39.535,
    "l": 33.725
  },
  "oklch": {
    "l": 0.39472,
    "c": 0.11315,
    "h": 301.8
  },
  "luminance": 0.05606
}

Semantic roles & 50–950 ramp

primary
#523478
secondary
#88A662
accent
#CF589B
background
#F8F6F9
surface
#EFEBF2
border
#CAC6CC
text
#0B070E
muted
#7C7A7E

Preview Lab

Preview with #523478

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

Preview Lab → · Contrast checker → · Palette generator →

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