#523EA8#523EA8

#523EA8 is a dark, vivid violet. Relative luminance 0.081; OKLCH L 44.8% C 0.162 H 286.5°. Best body text is #FFFFFF at 8.04:1 contrast (WCAG AA passes).

Color values

HEX#523EA8
RGBrgb(82, 62, 168)
HSLhsl(251, 46%, 45%)
HSVhsv(251, 63%, 66%)
CMYKcmyk(51.2%, 63.1%, 0%, 34.1%)
CIE-LABlab(34.12, 36.66, -54.34)
CIE-LCHlch(34.12, 65.54, 304.00°)
OKLaboklab(44.76% 0.0462 -0.1557)
OKLCHoklch(44.76% 0.162 286.5)
XYZxyz(12.2681, 8.0656, 37.9486)
Luminance0.0807 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#523EA8 #94A83E
analogous
#3E5FA8 #523EA8 #873EA8
triadic
#523EA8 #A8523E #3EA852
tetradic
#523EA8 #A83E5F #94A83E #3EA887
square
#523EA8 #A83E5F #94A83E #3EA887
split-complementary
#523EA8 #A8873E #5FA83E
monochromatic
#261D4F #3C2E7B #523EA8 #725FC4 #9A8CD5

Accessibility & contrast

On white

8.04
#523EA8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #523EA8
8.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##523EA8#FFFFFF#000000##FFFFFF
##523EA81.008.042.618.04
#FFFFFF8.041.0021.001.00
#0000002.6121.001.0021.00
##FFFFFF8.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053AB
Deuteranopia (green-blind)
#004DA6
Tritanopia (blue-blind)
#32576D
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #523ea8;
/* rgb */ color: rgb(82, 62, 168);
/* oklch */ color: oklch(44.8% 0.162 286.5);
Tailwind
colors: {
  custom: {
    50: '#8a74c3',
    500: '#523ea8',
    950: '#000000',
  },
}
SCSS
$custom: #523ea8;
$custom-light: #8a74c3;
$custom-dark: #000000;
JSON
{
  "hex": "#523ea8",
  "rgb": {
    "r": 82,
    "g": 62,
    "b": 168
  },
  "hsl": {
    "h": 251.321,
    "s": 46.087,
    "l": 45.098
  },
  "oklch": {
    "l": 0.44755,
    "c": 0.16239,
    "h": 286.5
  },
  "luminance": 0.08066
}

Semantic roles & 50–950 ramp

primary
#523EA8
secondary
#B4BF83
accent
#D652BD
background
#F8F7FC
surface
#F0EDF8
border
#CBC8D1
text
#0C0812
muted
#7D7B81

Preview Lab

Preview with #523EA8

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

Preview Lab → · Contrast checker → · Palette generator →

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