#5232A6#5232A6

#5232A6 is a dark, vivid violet. Relative luminance 0.068; OKLCH L 42.8% C 0.175 H 289.5°. Best body text is #FFFFFF at 8.88:1 contrast (WCAG AA passes).

Color values

HEX#5232A6
RGBrgb(82, 50, 166)
HSLhsl(257, 54%, 42%)
HSVhsv(257, 70%, 65%)
CMYKcmyk(50.6%, 69.9%, 0%, 34.9%)
CIE-LABlab(31.41, 42.95, -57.55)
CIE-LCHlch(31.41, 71.81, 306.74°)
OKLaboklab(42.75% 0.0585 -0.1651)
OKLCHoklch(42.75% 0.175 289.5)
XYZxyz(11.5012, 6.8277, 36.7809)
Luminance0.0683 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5232A6 #86A632
analogous
#324CA6 #5232A6 #8C32A6
triadic
#5232A6 #A65232 #32A652
tetradic
#5232A6 #A6324C #86A632 #32A68C
square
#5232A6 #A6324C #86A632 #32A68C
split-complementary
#5232A6 #A68C32 #4CA632
monochromatic
#241648 #3B2477 #5232A6 #6F4CC9 #957BD7

Accessibility & contrast

On white

8.88
#5232A6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5232A6
8.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5232A6#FFFFFF#000000##FFFFFF
##5232A61.008.882.378.88
#FFFFFF8.881.0021.001.00
#0000002.3721.001.0021.00
##FFFFFF8.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CA9
Deuteranopia (green-blind)
#0047A4
Tritanopia (blue-blind)
#355068
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #5232a6;
/* rgb */ color: rgb(82, 50, 166);
/* oklch */ color: oklch(42.8% 0.175 289.5);
Tailwind
colors: {
  custom: {
    50: '#8b6cc1',
    500: '#5232a6',
    950: '#000000',
  },
}
SCSS
$custom: #5232a6;
$custom-light: #8b6cc1;
$custom-dark: #000000;
JSON
{
  "hex": "#5232a6",
  "rgb": {
    "r": 82,
    "g": 50,
    "b": 166
  },
  "hsl": {
    "h": 256.552,
    "s": 53.704,
    "l": 42.353
  },
  "oklch": {
    "l": 0.4275,
    "c": 0.17519,
    "h": 289.5
  },
  "luminance": 0.06828
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5232A6

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

Preview Lab → · Contrast checker → · Palette generator →

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