#523AB2#523AB2

#523AB2 is a dark, vivid violet. Relative luminance 0.080; OKLCH L 45.0% C 0.180 H 285.8°. Best body text is #FFFFFF at 8.06:1 contrast (WCAG AA passes).

Color values

HEX#523AB2
RGBrgb(82, 58, 178)
HSLhsl(252, 51%, 46%)
HSVhsv(252, 67%, 70%)
CMYKcmyk(53.9%, 67.4%, 0%, 30.2%)
CIE-LABlab(34.05, 42.04, -60.41)
CIE-LCHlch(34.05, 73.60, 304.84°)
OKLaboklab(44.96% 0.0491 -0.1735)
OKLCHoklch(44.96% 0.18 285.8)
XYZxyz(13.0262, 8.0336, 42.9751)
Luminance0.0803 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#523AB2 #9AB23A
analogous
#3A5EB2 #523AB2 #8E3AB2
triadic
#523AB2 #B2523A #3AB252
tetradic
#523AB2 #B23A5E #9AB23A #3AB28E
square
#523AB2 #B23A5E #9AB23A #3AB28E
split-complementary
#523AB2 #B28E3A #5EB23A
monochromatic
#271C56 #3D2B84 #523AB2 #745FCB #9C8DDA

Accessibility & contrast

On white

8.06
#523AB2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.61
#523AB2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #523AB2
8.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##523AB2#FFFFFF#000000##FFFFFF
##523AB21.008.062.618.06
#FFFFFF8.061.0021.001.00
#0000002.6121.001.0021.00
##FFFFFF8.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053B6
Deuteranopia (green-blind)
#004CB0
Tritanopia (blue-blind)
#2A5871
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #523ab2;
/* rgb */ color: rgb(82, 58, 178);
/* oklch */ color: oklch(45.0% 0.180 285.8);
Tailwind
colors: {
  custom: {
    50: '#8c72ca',
    500: '#523ab2',
    950: '#000000',
  },
}
SCSS
$custom: #523ab2;
$custom-light: #8c72ca;
$custom-dark: #000000;
JSON
{
  "hex": "#523ab2",
  "rgb": {
    "r": 82,
    "g": 58,
    "b": 178
  },
  "hsl": {
    "h": 252,
    "s": 50.847,
    "l": 46.275
  },
  "oklch": {
    "l": 0.44958,
    "c": 0.18034,
    "h": 285.8
  },
  "luminance": 0.08034
}

Semantic roles & 50–950 ramp

primary
#523AB2
secondary
#B7C483
accent
#DA4DBE
background
#F9F7FC
surface
#F1EDF8
border
#CBC8D1
text
#0D0813
muted
#7E7B82

Preview Lab

Preview with #523AB2

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

Preview Lab → · Contrast checker → · Palette generator →

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