#523271#523271

#523271 is a dark, moderate violet. Relative luminance 0.053; OKLCH L 38.7% C 0.107 H 305.4°. Best body text is #FFFFFF at 10.23:1 contrast (WCAG AA passes).

Color values

HEX#523271
RGBrgb(82, 50, 113)
HSLhsl(270, 39%, 32%)
HSVhsv(270, 56%, 44%)
CMYKcmyk(27.4%, 55.8%, 0%, 55.7%)
CIE-LABlab(27.48, 27.98, -31.09)
CIE-LCHlch(27.48, 41.83, 311.99°)
OKLaboklab(38.66% 0.0621 -0.0874)
OKLCHoklch(38.66% 0.107 305.4)
XYZxyz(7.6003, 5.2673, 16.2359)
Luminance0.0527 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#523271 #517132
analogous
#333271 #523271 #713271
triadic
#523271 #715232 #327152
tetradic
#523271 #713332 #517132 #327171
square
#523271 #713332 #517132 #327171
split-complementary
#523271 #717132 #327133
monochromatic
#140C1C #331F47 #523271 #71459B #8F63BA

Accessibility & contrast

On white

10.23
#523271 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.05
#523271 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #523271
10.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##523271#FFFFFF#000000##FFFFFF
##5232711.0010.232.0510.23
#FFFFFF10.231.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D4073
Deuteranopia (green-blind)
#28416F
Tritanopia (blue-blind)
#4D3E4C
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #523271;
/* rgb */ color: rgb(82, 50, 113);
/* oklch */ color: oklch(38.7% 0.107 305.4);
Tailwind
colors: {
  custom: {
    50: '#856b9a',
    500: '#523271',
    950: '#000000',
  },
}
SCSS
$custom: #523271;
$custom-light: #856b9a;
$custom-dark: #000000;
JSON
{
  "hex": "#523271",
  "rgb": {
    "r": 82,
    "g": 50,
    "b": 113
  },
  "hsl": {
    "h": 270.476,
    "s": 38.65,
    "l": 31.961
  },
  "oklch": {
    "l": 0.38656,
    "c": 0.10723,
    "h": 305.4
  },
  "luminance": 0.05267
}

Semantic roles & 50–950 ramp

primary
#523271
secondary
#7FA25D
accent
#CF5993
background
#F8F6F9
surface
#EFEBF2
border
#CAC6CC
text
#0B070E
muted
#7C7A7E

Preview Lab

Preview with #523271

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

Preview Lab → · Contrast checker → · Palette generator →

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