#523387#523387

#523387 is a dark, vivid violet. Relative luminance 0.059; OKLCH L 40.4% C 0.135 H 297.0°. Best body text is #FFFFFF at 9.62:1 contrast (WCAG AA passes).

Color values

HEX#523387
RGBrgb(82, 51, 135)
HSLhsl(262, 45%, 36%)
HSVhsv(262, 62%, 53%)
CMYKcmyk(39.3%, 62.2%, 0%, 47.1%)
CIE-LABlab(29.19, 33.43, -42.20)
CIE-LCHlch(29.19, 53.84, 308.39°)
OKLaboklab(40.38% 0.061 -0.12)
OKLCHoklch(40.38% 0.135 297)
XYZxyz(9.0356, 5.9106, 23.5818)
Luminance0.0591 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#523387 #688733
analogous
#333E87 #523387 #7C3387
triadic
#523387 #875233 #338752
tetradic
#523387 #87333E #688733 #33877C
square
#523387 #87333E #688733 #33877C
split-complementary
#523387 #877C33 #3E8733
monochromatic
#1C112E #37225B #523387 #6D44B3 #8E6DC8

Accessibility & contrast

On white

9.62
#523387 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.18
#523387 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #523387
9.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##523387#FFFFFF#000000##FFFFFF
##5233871.009.622.189.62
#FFFFFF9.621.0021.001.00
#0000002.1821.001.0021.00
##FFFFFF9.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00458A
Deuteranopia (green-blind)
#0E4485
Tritanopia (blue-blind)
#454558
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #523387;
/* rgb */ color: rgb(82, 51, 135);
/* oklch */ color: oklch(40.4% 0.135 297.0);
Tailwind
colors: {
  custom: {
    50: '#876caa',
    500: '#523387',
    950: '#000000',
  },
}
SCSS
$custom: #523387;
$custom-light: #876caa;
$custom-dark: #000000;
JSON
{
  "hex": "#523387",
  "rgb": {
    "r": 82,
    "g": 51,
    "b": 135
  },
  "hsl": {
    "h": 262.143,
    "s": 45.161,
    "l": 36.471
  },
  "oklch": {
    "l": 0.40379,
    "c": 0.13464,
    "h": 297
  },
  "luminance": 0.05911
}

Semantic roles & 50–950 ramp

primary
#523387
secondary
#95B066
accent
#D553A5
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0710
muted
#7D7A7F

Preview Lab

Preview with #523387

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

Preview Lab → · Contrast checker → · Palette generator →

#523387 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva