#532797#532797

#532797 is a dark, vivid violet. Relative luminance 0.055; OKLCH L 40.1% C 0.170 H 295.6°. Best body text is #FFFFFF at 9.98:1 contrast (WCAG AA passes).

Color values

HEX#532797
RGBrgb(83, 39, 151)
HSLhsl(264, 59%, 37%)
HSVhsv(264, 74%, 59%)
CMYKcmyk(45%, 74.2%, 0%, 40.8%)
CIE-LABlab(28.18, 44.65, -53.71)
CIE-LCHlch(28.18, 69.84, 309.74°)
OKLaboklab(40.08% 0.0736 -0.1538)
OKLCHoklch(40.08% 0.17 295.6)
XYZxyz(9.8772, 5.5242, 29.8180)
Luminance0.0552 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#532797 #6B9727
analogous
#273397 #532797 #8B2797
triadic
#532797 #975327 #279753
tetradic
#532797 #972733 #6B9727 #27978B
square
#532797 #972733 #6B9727 #27978B
split-complementary
#532797 #978B27 #339727
monochromatic
#1E0E36 #381A66 #532797 #6E34C8 #9062D6

Accessibility & contrast

On white

9.98
#532797 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.10
#532797 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #532797
9.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##532797#FFFFFF#000000##FFFFFF
##5327971.009.982.109.98
#FFFFFF9.981.0021.001.00
#0000002.1021.001.0021.00
##FFFFFF9.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00439A
Deuteranopia (green-blind)
#004195
Tritanopia (blue-blind)
#40445D
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #532797;
/* rgb */ color: rgb(83, 39, 151);
/* oklch */ color: oklch(40.1% 0.170 295.6);
Tailwind
colors: {
  custom: {
    50: '#8a65b6',
    500: '#532797',
    950: '#000000',
  },
}
SCSS
$custom: #532797;
$custom-light: #8a65b6;
$custom-dark: #000000;
JSON
{
  "hex": "#532797",
  "rgb": {
    "r": 83,
    "g": 39,
    "b": 151
  },
  "hsl": {
    "h": 263.571,
    "s": 58.947,
    "l": 37.255
  },
  "oklch": {
    "l": 0.40079,
    "c": 0.17045,
    "h": 295.6
  },
  "luminance": 0.05524
}

Semantic roles & 50–950 ramp

primary
#532797
secondary
#97BC5E
accent
#E246A5
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #532797

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

Preview Lab → · Contrast checker → · Palette generator →

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