#523288#523288

#523288 is a dark, vivid violet. Relative luminance 0.059; OKLCH L 40.3% C 0.137 H 296.9°. Best body text is #FFFFFF at 9.67:1 contrast (WCAG AA passes).

Color values

HEX#523288
RGBrgb(82, 50, 136)
HSLhsl(262, 46%, 36%)
HSVhsv(262, 63%, 53%)
CMYKcmyk(39.7%, 63.2%, 0%, 46.7%)
CIE-LABlab(29.04, 34.30, -43.06)
CIE-LCHlch(29.04, 55.05, 308.54°)
OKLaboklab(40.29% 0.0622 -0.1225)
OKLCHoklch(40.29% 0.137 296.9)
XYZxyz(9.0631, 5.8525, 23.9399)
Luminance0.0585 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#523288 #688832
analogous
#323D88 #523288 #7D3288
triadic
#523288 #885232 #328852
tetradic
#523288 #88323D #688832 #32887D
square
#523288 #88323D #688832 #32887D
split-complementary
#523288 #887D32 #3D8832
monochromatic
#1C112F #37225B #523288 #6D42B5 #8E6CC9

Accessibility & contrast

On white

9.67
#523288 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.17
#523288 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #523288
9.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##523288#FFFFFF#000000##FFFFFF
##5232881.009.672.179.67
#FFFFFF9.671.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00458B
Deuteranopia (green-blind)
#084386
Tritanopia (blue-blind)
#454558
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #523288;
/* rgb */ color: rgb(82, 50, 136);
/* oklch */ color: oklch(40.3% 0.137 296.9);
Tailwind
colors: {
  custom: {
    50: '#876bab',
    500: '#523288',
    950: '#000000',
  },
}
SCSS
$custom: #523288;
$custom-light: #876bab;
$custom-dark: #000000;
JSON
{
  "hex": "#523288",
  "rgb": {
    "r": 82,
    "g": 50,
    "b": 136
  },
  "hsl": {
    "h": 262.326,
    "s": 46.237,
    "l": 36.471
  },
  "oklch": {
    "l": 0.40293,
    "c": 0.13744,
    "h": 296.9
  },
  "luminance": 0.05853
}

Semantic roles & 50–950 ramp

primary
#523288
secondary
#95B065
accent
#D652A5
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0710
muted
#7D7A7F

Preview Lab

Preview with #523288

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

Preview Lab → · Contrast checker → · Palette generator →

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