#532898#532898

#532898 is a dark, vivid violet. Relative luminance 0.056; OKLCH L 40.3% C 0.170 H 295.1°. Best body text is #FFFFFF at 9.88:1 contrast (WCAG AA passes).

Color values

HEX#532898
RGBrgb(83, 40, 152)
HSLhsl(263, 58%, 38%)
HSVhsv(263, 74%, 60%)
CMYKcmyk(45.4%, 73.7%, 0%, 40.4%)
CIE-LABlab(28.44, 44.42, -53.89)
CIE-LCHlch(28.44, 69.84, 309.50°)
OKLaboklab(40.29% 0.0724 -0.1543)
OKLCHoklch(40.29% 0.17 295.1)
XYZxyz(9.9920, 5.6233, 30.2586)
Luminance0.0562 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#532898 #6D9828
analogous
#283598 #532898 #8B2898
triadic
#532898 #985328 #289853
tetradic
#532898 #982835 #6D9828 #28988B
square
#532898 #982835 #6D9828 #28988B
split-complementary
#532898 #988B28 #359828
monochromatic
#1E0F37 #391B68 #532898 #6D35C8 #9064D6

Accessibility & contrast

On white

9.88
#532898 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.12
#532898 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #532898
9.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##532898#FFFFFF#000000##FFFFFF
##5328981.009.882.129.88
#FFFFFF9.881.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00449B
Deuteranopia (green-blind)
#004196
Tritanopia (blue-blind)
#40455D
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #532898;
/* rgb */ color: rgb(83, 40, 152);
/* oklch */ color: oklch(40.3% 0.170 295.1);
Tailwind
colors: {
  custom: {
    50: '#8a66b7',
    500: '#532898',
    950: '#000000',
  },
}
SCSS
$custom: #532898;
$custom-light: #8a66b7;
$custom-dark: #000000;
JSON
{
  "hex": "#532898",
  "rgb": {
    "r": 83,
    "g": 40,
    "b": 152
  },
  "hsl": {
    "h": 263.036,
    "s": 58.333,
    "l": 37.647
  },
  "oklch": {
    "l": 0.40292,
    "c": 0.17045,
    "h": 295.1
  },
  "luminance": 0.05624
}

Semantic roles & 50–950 ramp

primary
#532898
secondary
#99BC60
accent
#E246A6
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #532898

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

Preview Lab → · Contrast checker → · Palette generator →

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