#523B8A#523B8A

#523B8A is a dark, vivid violet. Relative luminance 0.068; OKLCH L 42.0% C 0.126 H 293.7°. Best body text is #FFFFFF at 8.93:1 contrast (WCAG AA passes).

Color values

HEX#523B8A
RGBrgb(82, 59, 138)
HSLhsl(257, 40%, 39%)
HSVhsv(257, 57%, 54%)
CMYKcmyk(40.6%, 57.2%, 0%, 45.9%)
CIE-LABlab(31.25, 29.45, -40.74)
CIE-LCHlch(31.25, 50.27, 305.86°)
OKLaboklab(41.96% 0.0507 -0.1157)
OKLCHoklch(41.96% 0.126 293.7)
XYZxyz(9.6299, 6.7565, 24.8366)
Luminance0.0676 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#523B8A #738A3B
analogous
#3B4B8A #523B8A #793B8A
triadic
#523B8A #8A523B #3B8A52
tetradic
#523B8A #8A3B4B #738A3B #3B8A79
square
#523B8A #8A3B4B #738A3B #3B8A79
split-complementary
#523B8A #8A793B #4B8A3B
monochromatic
#1F1634 #39295F #523B8A #6C4FB4 #9079C6

Accessibility & contrast

On white

8.93
#523B8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.35
#523B8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##523B8A#FFFFFF#000000##FFFFFF
##523B8A1.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)
#144A8D
Deuteranopia (green-blind)
#1B4888
Tritanopia (blue-blind)
#444C5C
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #523b8a;
/* rgb */ color: rgb(82, 59, 138);
/* oklch */ color: oklch(42.0% 0.126 293.7);
Tailwind
colors: {
  custom: {
    50: '#8672ad',
    500: '#523b8a',
    950: '#000000',
  },
}
SCSS
$custom: #523b8a;
$custom-light: #8672ad;
$custom-dark: #000000;
JSON
{
  "hex": "#523b8a",
  "rgb": {
    "r": 82,
    "g": 59,
    "b": 138
  },
  "hsl": {
    "h": 257.468,
    "s": 40.102,
    "l": 38.627
  },
  "oklch": {
    "l": 0.41957,
    "c": 0.12634,
    "h": 293.7
  },
  "luminance": 0.06757
}

Semantic roles & 50–950 ramp

primary
#523B8A
secondary
#9DAF71
accent
#D058AD
background
#F8F6FA
surface
#F0ECF4
border
#CBC7CE
text
#0B0810
muted
#7C7B7F

Preview Lab

Preview with #523B8A

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

Preview Lab → · Contrast checker → · Palette generator →

#523B8A Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva