#5232A7#5232A7

#5232A7 is a dark, vivid violet. Relative luminance 0.069; OKLCH L 42.8% C 0.176 H 289.3°. Best body text is #FFFFFF at 8.85:1 contrast (WCAG AA passes).

Color values

HEX#5232A7
RGBrgb(82, 50, 167)
HSLhsl(256, 54%, 43%)
HSVhsv(256, 70%, 65%)
CMYKcmyk(50.9%, 70.1%, 0%, 34.5%)
CIE-LABlab(31.50, 43.24, -58.01)
CIE-LCHlch(31.50, 72.35, 306.70°)
OKLaboklab(42.84% 0.0584 -0.1665)
OKLCHoklch(42.84% 0.176 289.3)
XYZxyz(11.5933, 6.8646, 37.2659)
Luminance0.0687 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5232A7 #87A732
analogous
#324DA7 #5232A7 #8C32A7
triadic
#5232A7 #A75232 #32A752
tetradic
#5232A7 #A7324D #87A732 #32A78C
square
#5232A7 #A7324D #87A732 #32A78C
split-complementary
#5232A7 #A78C32 #4DA732
monochromatic
#241649 #3B2478 #5232A7 #6F4DCA #957CD8

Accessibility & contrast

On white

8.85
#5232A7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.37
#5232A7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5232A7
8.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5232A7#FFFFFF#000000##FFFFFF
##5232A71.008.852.378.85
#FFFFFF8.851.0021.001.00
#0000002.3721.001.0021.00
##FFFFFF8.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CAB
Deuteranopia (green-blind)
#0047A5
Tritanopia (blue-blind)
#345069
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #5232a7;
/* rgb */ color: rgb(82, 50, 167);
/* oklch */ color: oklch(42.8% 0.176 289.3);
Tailwind
colors: {
  custom: {
    50: '#8b6cc2',
    500: '#5232a7',
    950: '#000000',
  },
}
SCSS
$custom: #5232a7;
$custom-light: #8b6cc2;
$custom-dark: #000000;
JSON
{
  "hex": "#5232a7",
  "rgb": {
    "r": 82,
    "g": 50,
    "b": 167
  },
  "hsl": {
    "h": 256.41,
    "s": 53.917,
    "l": 42.549
  },
  "oklch": {
    "l": 0.42837,
    "c": 0.17641,
    "h": 289.3
  },
  "luminance": 0.06865
}

Semantic roles & 50–950 ramp

primary
#5232A7
secondary
#ACC074
accent
#DD4BB5
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0712
muted
#7E7A81

Preview Lab

Preview with #5232A7

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

Preview Lab → · Contrast checker → · Palette generator →

#5232A7 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva