#5232AA#5232AA

#5232AA is a dark, vivid violet. Relative luminance 0.070; OKLCH L 43.1% C 0.180 H 288.7°. Best body text is #FFFFFF at 8.77:1 contrast (WCAG AA passes).

Color values

HEX#5232AA
RGBrgb(82, 50, 170)
HSLhsl(256, 55%, 43%)
HSVhsv(256, 71%, 67%)
CMYKcmyk(51.8%, 70.6%, 0%, 33.3%)
CIE-LABlab(31.75, 44.11, -59.39)
CIE-LCHlch(31.75, 73.98, 306.61°)
OKLaboklab(43.1% 0.0578 -0.1705)
OKLCHoklch(43.1% 0.18 288.7)
XYZxyz(11.8739, 6.9768, 38.7434)
Luminance0.0698 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5232AA #8AAA32
analogous
#324EAA #5232AA #8E32AA
triadic
#5232AA #AA5232 #32AA52
tetradic
#5232AA #AA324E #8AAA32 #32AA8E
square
#5232AA #AA324E #8AAA32 #32AA8E
split-complementary
#5232AA #AA8E32 #4EAA32
monochromatic
#24164B #3B247B #5232AA #6F4ECB #967DD9

Accessibility & contrast

On white

8.77
#5232AA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.40
#5232AA on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##5232AA#FFFFFF#000000##FFFFFF
##5232AA1.008.772.408.77
#FFFFFF8.771.0021.001.00
#0000002.4021.001.0021.00
##FFFFFF8.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DAE
Deuteranopia (green-blind)
#0048A8
Tritanopia (blue-blind)
#32516A
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #5232aa;
/* rgb */ color: rgb(82, 50, 170);
/* oklch */ color: oklch(43.1% 0.180 288.7);
Tailwind
colors: {
  custom: {
    50: '#8b6dc4',
    500: '#5232aa',
    950: '#000000',
  },
}
SCSS
$custom: #5232aa;
$custom-light: #8b6dc4;
$custom-dark: #000000;
JSON
{
  "hex": "#5232aa",
  "rgb": {
    "r": 82,
    "g": 50,
    "b": 170
  },
  "hsl": {
    "h": 256,
    "s": 54.545,
    "l": 43.137
  },
  "oklch": {
    "l": 0.431,
    "c": 0.18006,
    "h": 288.7
  },
  "luminance": 0.06977
}

Semantic roles & 50–950 ramp

primary
#5232AA
secondary
#AEC276
accent
#DE4AB6
background
#F9F6FC
surface
#F1ECF8
border
#CBC7D1
text
#0D0713
muted
#7E7A82

Preview Lab

Preview with #5232AA

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

Preview Lab → · Contrast checker → · Palette generator →

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