#5232AC#5232AC

#5232AC is a dark, vivid violet. Relative luminance 0.071; OKLCH L 43.3% C 0.182 H 288.3°. Best body text is #FFFFFF at 8.71:1 contrast (WCAG AA passes).

Color values

HEX#5232AC
RGBrgb(82, 50, 172)
HSLhsl(256, 55%, 44%)
HSVhsv(256, 71%, 67%)
CMYKcmyk(52.3%, 70.9%, 0%, 32.5%)
CIE-LABlab(31.93, 44.70, -60.30)
CIE-LCHlch(31.93, 75.06, 306.55°)
OKLaboklab(43.28% 0.0574 -0.1732)
OKLCHoklch(43.28% 0.182 288.3)
XYZxyz(12.0645, 7.0530, 39.7474)
Luminance0.0705 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5232AC #8CAC32
analogous
#324FAC #5232AC #8F32AC
triadic
#5232AC #AC5232 #32AC52
tetradic
#5232AC #AC324F #8CAC32 #32AC8F
square
#5232AC #AC324F #8CAC32 #32AC8F
split-complementary
#5232AC #AC8F32 #4FAC32
monochromatic
#25164D #3B247D #5232AC #704FCC #977FDA

Accessibility & contrast

On white

8.71
#5232AC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.41
#5232AC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5232AC
8.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5232AC#FFFFFF#000000##FFFFFF
##5232AC1.008.712.418.71
#FFFFFF8.711.0021.001.00
#0000002.4121.001.0021.00
##FFFFFF8.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EB0
Deuteranopia (green-blind)
#0048AA
Tritanopia (blue-blind)
#30526B
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #5232ac;
/* rgb */ color: rgb(82, 50, 172);
/* oklch */ color: oklch(43.3% 0.182 288.3);
Tailwind
colors: {
  custom: {
    50: '#8b6dc6',
    500: '#5232ac',
    950: '#000000',
  },
}
SCSS
$custom: #5232ac;
$custom-light: #8b6dc6;
$custom-dark: #000000;
JSON
{
  "hex": "#5232ac",
  "rgb": {
    "r": 82,
    "g": 50,
    "b": 172
  },
  "hsl": {
    "h": 255.738,
    "s": 54.955,
    "l": 43.529
  },
  "oklch": {
    "l": 0.43277,
    "c": 0.18249,
    "h": 288.3
  },
  "luminance": 0.07054
}

Semantic roles & 50–950 ramp

primary
#5232AC
secondary
#AFC377
accent
#DE4AB7
background
#F9F6FC
surface
#F1ECF8
border
#CBC7D1
text
#0D0713
muted
#7E7A82

Preview Lab

Preview with #5232AC

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

Preview Lab → · Contrast checker → · Palette generator →

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