#532271#532271

#532271 is a dark, vivid violet. Relative luminance 0.042; OKLCH L 36.3% C 0.133 H 309.8°. Best body text is #FFFFFF at 11.44:1 contrast (WCAG AA passes).

Color values

HEX#532271
RGBrgb(83, 34, 113)
HSLhsl(277, 54%, 29%)
HSVhsv(277, 70%, 44%)
CMYKcmyk(26.5%, 69.9%, 0%, 55.7%)
CIE-LABlab(24.24, 37.31, -36.27)
CIE-LCHlch(24.24, 52.03, 315.81°)
OKLaboklab(36.32% 0.0855 -0.1025)
OKLCHoklch(36.32% 0.133 309.8)
XYZxyz(7.1194, 4.1755, 16.0505)
Luminance0.0418 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#532271 #407122
analogous
#2C2271 #532271 #712268
triadic
#532271 #715322 #227153
tetradic
#532271 #712C22 #407122 #226871
square
#532271 #712C22 #407122 #226871
split-complementary
#532271 #687122 #22712C
monochromatic
#110718 #301442 #532271 #7630A0 #9646C7

Accessibility & contrast

On white

11.44
#532271 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#532271 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #532271
11.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##532271#FFFFFF#000000##FFFFFF
##5322711.0011.441.8411.44
#FFFFFF11.441.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003773
Deuteranopia (green-blind)
#163A6F
Tritanopia (blue-blind)
#4F3246
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #532271;
/* rgb */ color: rgb(83, 34, 113);
/* oklch */ color: oklch(36.3% 0.133 309.8);
Tailwind
colors: {
  custom: {
    50: '#86619a',
    500: '#532271',
    950: '#000000',
  },
}
SCSS
$custom: #532271;
$custom-light: #86619a;
$custom-dark: #000000;
JSON
{
  "hex": "#532271",
  "rgb": {
    "r": 83,
    "g": 34,
    "b": 113
  },
  "hsl": {
    "h": 277.215,
    "s": 53.741,
    "l": 28.824
  },
  "oklch": {
    "l": 0.36324,
    "c": 0.13344,
    "h": 309.8
  },
  "luminance": 0.04175
}

Semantic roles & 50–950 ramp

primary
#532271
secondary
#6DA44A
accent
#DD4B82
background
#F8F5F9
surface
#F0EAF2
border
#CBC6CC
text
#0B050E
muted
#7C797E

Preview Lab

Preview with #532271

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

Preview Lab → · Contrast checker → · Palette generator →

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