#5232A3#5232A3

#5232A3 is a dark, vivid violet. Relative luminance 0.067; OKLCH L 42.5% C 0.172 H 290.1°. Best body text is #FFFFFF at 8.96:1 contrast (WCAG AA passes).

Color values

HEX#5232A3
RGBrgb(82, 50, 163)
HSLhsl(257, 53%, 42%)
HSVhsv(257, 69%, 64%)
CMYKcmyk(49.7%, 69.3%, 0%, 36.1%)
CIE-LABlab(31.16, 42.07, -56.15)
CIE-LCHlch(31.16, 70.16, 306.85°)
OKLaboklab(42.49% 0.0591 -0.161)
OKLCHoklch(42.49% 0.172 290.1)
XYZxyz(11.2292, 6.7189, 35.3484)
Luminance0.0672 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5232A3 #83A332
analogous
#324BA3 #5232A3 #8B32A3
triadic
#5232A3 #A35232 #32A352
tetradic
#5232A3 #A3324B #83A332 #32A38B
square
#5232A3 #A3324B #83A332 #32A38B
split-complementary
#5232A3 #A38B32 #4BA332
monochromatic
#231545 #3A2474 #5232A3 #6E4BC8 #9479D6

Accessibility & contrast

On white

8.96
#5232A3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.34
#5232A3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##5232A3#FFFFFF#000000##FFFFFF
##5232A31.008.962.348.96
#FFFFFF8.961.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BA6
Deuteranopia (green-blind)
#0047A1
Tritanopia (blue-blind)
#374E66
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #5232a3;
/* rgb */ color: rgb(82, 50, 163);
/* oklch */ color: oklch(42.5% 0.172 290.1);
Tailwind
colors: {
  custom: {
    50: '#8a6cbf',
    500: '#5232a3',
    950: '#000000',
  },
}
SCSS
$custom: #5232a3;
$custom-light: #8a6cbf;
$custom-dark: #000000;
JSON
{
  "hex": "#5232a3",
  "rgb": {
    "r": 82,
    "g": 50,
    "b": 163
  },
  "hsl": {
    "h": 256.991,
    "s": 53.052,
    "l": 41.765
  },
  "oklch": {
    "l": 0.4249,
    "c": 0.17151,
    "h": 290.1
  },
  "luminance": 0.06719
}

Semantic roles & 50–950 ramp

primary
#5232A3
secondary
#A9BF72
accent
#DC4BB3
background
#F8F6FB
surface
#F0EBF7
border
#CBC6D0
text
#0D0712
muted
#7D7A81

Preview Lab

Preview with #5232A3

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

Preview Lab → · Contrast checker → · Palette generator →

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