#523371#523371

#523371 is a dark, moderate violet. Relative luminance 0.054; OKLCH L 38.8% C 0.105 H 305.1°. Best body text is #FFFFFF at 10.14:1 contrast (WCAG AA passes).

Color values

HEX#523371
RGBrgb(82, 51, 113)
HSLhsl(270, 38%, 32%)
HSVhsv(270, 55%, 44%)
CMYKcmyk(27.4%, 54.9%, 0%, 55.7%)
CIE-LABlab(27.72, 27.37, -30.71)
CIE-LCHlch(27.72, 41.14, 311.71°)
OKLaboklab(38.83% 0.0606 -0.0863)
OKLCHoklch(38.83% 0.105 305.1)
XYZxyz(7.6435, 5.3538, 16.2503)
Luminance0.0535 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#523371 #527133
analogous
#333371 #523371 #713371
triadic
#523371 #715233 #337152
tetradic
#523371 #713333 #527133 #337171
square
#523371 #713333 #527133 #337171
split-complementary
#523371 #717133 #337133
monochromatic
#150D1D #332047 #523371 #71469B #8F65B9

Accessibility & contrast

On white

10.14
#523371 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.07
#523371 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #523371
10.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##523371#FFFFFF#000000##FFFFFF
##5233711.0010.142.0710.14
#FFFFFF10.141.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F4173
Deuteranopia (green-blind)
#29426F
Tritanopia (blue-blind)
#4D3E4D
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #523371;
/* rgb */ color: rgb(82, 51, 113);
/* oklch */ color: oklch(38.8% 0.105 305.1);
Tailwind
colors: {
  custom: {
    50: '#856c9a',
    500: '#523371',
    950: '#000000',
  },
}
SCSS
$custom: #523371;
$custom-light: #856c9a;
$custom-dark: #000000;
JSON
{
  "hex": "#523371",
  "rgb": {
    "r": 82,
    "g": 51,
    "b": 113
  },
  "hsl": {
    "h": 270,
    "s": 37.805,
    "l": 32.157
  },
  "oklch": {
    "l": 0.38831,
    "c": 0.10548,
    "h": 305.1
  },
  "luminance": 0.05354
}

Semantic roles & 50–950 ramp

primary
#523371
secondary
#80A25E
accent
#CE5A94
background
#F8F6F9
surface
#EFEBF2
border
#CAC6CC
text
#0B070E
muted
#7C7A7E

Preview Lab

Preview with #523371

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

Preview Lab → · Contrast checker → · Palette generator →

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