#523AB8#523AB8

#523AB8 is a mid, vivid violet. Relative luminance 0.083; OKLCH L 45.5% C 0.188 H 284.9°. Best body text is #FFFFFF at 7.91:1 contrast (WCAG AA passes).

Color values

HEX#523AB8
RGBrgb(82, 58, 184)
HSLhsl(251, 52%, 47%)
HSVhsv(251, 68%, 72%)
CMYKcmyk(55.4%, 68.5%, 0%, 27.8%)
CIE-LABlab(34.56, 43.86, -63.14)
CIE-LCHlch(34.56, 76.88, 304.79°)
OKLaboklab(45.48% 0.0481 -0.1815)
OKLCHoklch(45.48% 0.188 284.9)
XYZxyz(13.6418, 8.2799, 46.2174)
Luminance0.0828 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#523AB8 #A0B83A
analogous
#3A61B8 #523AB8 #913AB8
triadic
#523AB8 #B8523A #3AB852
tetradic
#523AB8 #B83A61 #A0B83A #3AB891
square
#523AB8 #B83A61 #A0B83A #3AB891
split-complementary
#523AB8 #B8913A #61B83A
monochromatic
#291D5B #3D2B89 #523AB8 #7662CD #9F90DC

Accessibility & contrast

On white

7.91
#523AB8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.66
#523AB8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #523AB8
7.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##523AB8#FFFFFF#000000##FFFFFF
##523AB81.007.912.667.91
#FFFFFF7.911.0021.001.00
#0000002.6621.001.0021.00
##FFFFFF7.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055BC
Deuteranopia (green-blind)
#004DB6
Tritanopia (blue-blind)
#235B74
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #523ab8;
/* rgb */ color: rgb(82, 58, 184);
/* oklch */ color: oklch(45.5% 0.188 284.9);
Tailwind
colors: {
  custom: {
    50: '#8d72ce',
    500: '#523ab8',
    950: '#000000',
  },
}
SCSS
$custom: #523ab8;
$custom-light: #8d72ce;
$custom-dark: #000000;
JSON
{
  "hex": "#523ab8",
  "rgb": {
    "r": 82,
    "g": 58,
    "b": 184
  },
  "hsl": {
    "h": 251.429,
    "s": 52.066,
    "l": 47.451
  },
  "oklch": {
    "l": 0.45478,
    "c": 0.18782,
    "h": 284.9
  },
  "luminance": 0.08281
}

Semantic roles & 50–950 ramp

primary
#523AB8
secondary
#BBC787
accent
#DC4CC0
background
#F9F7FC
surface
#F1EDF9
border
#CBC8D2
text
#0D0814
muted
#7E7B82

Preview Lab

Preview with #523AB8

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

Preview Lab → · Contrast checker → · Palette generator →

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