#532787#532787

#532787 is a dark, vivid violet. Relative luminance 0.050; OKLCH L 38.7% C 0.152 H 300.4°. Best body text is #FFFFFF at 10.46:1 contrast (WCAG AA passes).

Color values

HEX#532787
RGBrgb(83, 39, 135)
HSLhsl(268, 55%, 34%)
HSVhsv(268, 71%, 53%)
CMYKcmyk(38.5%, 71.1%, 0%, 47.1%)
CIE-LABlab(26.85, 40.35, -45.98)
CIE-LCHlch(26.85, 61.18, 311.27°)
OKLaboklab(38.72% 0.0767 -0.1311)
OKLCHoklch(38.72% 0.152 300.4)
XYZxyz(8.6649, 5.0392, 23.4331)
Luminance0.0504 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#532787 #5B8727
analogous
#272B87 #532787 #832787
triadic
#532787 #875327 #278753
tetradic
#532787 #87272B #5B8727 #278783
square
#532787 #87272B #5B8727 #278783
split-complementary
#532787 #878327 #2B8727
monochromatic
#190C28 #361958 #532787 #7035B6 #8F59CF

Accessibility & contrast

On white

10.46
#532787 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.01
#532787 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #532787
10.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##532787#FFFFFF#000000##FFFFFF
##5327871.0010.462.0110.46
#FFFFFF10.461.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F8A
Deuteranopia (green-blind)
#003F85
Tritanopia (blue-blind)
#473E54
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #532787;
/* rgb */ color: rgb(83, 39, 135);
/* oklch */ color: oklch(38.7% 0.152 300.4);
Tailwind
colors: {
  custom: {
    50: '#8865ab',
    500: '#532787',
    950: '#000000',
  },
}
SCSS
$custom: #532787;
$custom-light: #8865ab;
$custom-dark: #000000;
JSON
{
  "hex": "#532787",
  "rgb": {
    "r": 83,
    "g": 39,
    "b": 135
  },
  "hsl": {
    "h": 267.5,
    "s": 55.172,
    "l": 34.118
  },
  "oklch": {
    "l": 0.38718,
    "c": 0.15187,
    "h": 300.4
  },
  "luminance": 0.05039
}

Semantic roles & 50–950 ramp

primary
#532787
secondary
#89B456
accent
#DF499A
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0610
muted
#7D7A7F

Preview Lab

Preview with #532787

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

Preview Lab → · Contrast checker → · Palette generator →

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