#523EB2#523EB2

#523EB2 is a mid, vivid violet. Relative luminance 0.085; OKLCH L 45.6% C 0.175 H 284.9°. Best body text is #FFFFFF at 7.80:1 contrast (WCAG AA passes).

Color values

HEX#523EB2
RGBrgb(82, 62, 178)
HSLhsl(250, 48%, 47%)
HSVhsv(250, 65%, 70%)
CMYKcmyk(53.9%, 65.2%, 0%, 30.2%)
CIE-LABlab(34.91, 39.73, -59.01)
CIE-LCHlch(34.91, 71.14, 303.95°)
OKLaboklab(45.58% 0.0452 -0.1694)
OKLCHoklch(45.58% 0.175 284.9)
XYZxyz(13.2358, 8.4527, 43.0450)
Luminance0.0845 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#523EB2 #9EB23E
analogous
#3E64B2 #523EB2 #8C3EB2
triadic
#523EB2 #B2523E #3EB252
tetradic
#523EB2 #B23E64 #9EB23E #3EB28C
square
#523EB2 #B23E64 #9EB23E #3EB28C
split-complementary
#523EB2 #B28C3E #64B23E
monochromatic
#281E57 #3D2E85 #523EB2 #7664C9 #9E92D9

Accessibility & contrast

On white

7.80
#523EB2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.69
#523EB2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #523EB2
7.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##523EB2#FFFFFF#000000##FFFFFF
##523EB21.007.802.697.80
#FFFFFF7.801.0021.001.00
#0000002.6921.001.0021.00
##FFFFFF7.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055B6
Deuteranopia (green-blind)
#004EB0
Tritanopia (blue-blind)
#295B72
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #523eb2;
/* rgb */ color: rgb(82, 62, 178);
/* oklch */ color: oklch(45.6% 0.175 284.9);
Tailwind
colors: {
  custom: {
    50: '#8c74ca',
    500: '#523eb2',
    950: '#000000',
  },
}
SCSS
$custom: #523eb2;
$custom-light: #8c74ca;
$custom-dark: #000000;
JSON
{
  "hex": "#523eb2",
  "rgb": {
    "r": 82,
    "g": 62,
    "b": 178
  },
  "hsl": {
    "h": 250.345,
    "s": 48.333,
    "l": 47.059
  },
  "oklch": {
    "l": 0.45576,
    "c": 0.17538,
    "h": 284.9
  },
  "luminance": 0.08453
}

Semantic roles & 50–950 ramp

primary
#523EB2
secondary
#BAC488
accent
#D850C0
background
#F9F7FC
surface
#F1EDF8
border
#CBC8D1
text
#0D0813
muted
#7E7B82

Preview Lab

Preview with #523EB2

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

Preview Lab → · Contrast checker → · Palette generator →

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