#5232A5#5232A5

#5232A5 is a dark, vivid violet. Relative luminance 0.068; OKLCH L 42.7% C 0.174 H 289.7°. Best body text is #FFFFFF at 8.90:1 contrast (WCAG AA passes).

Color values

HEX#5232A5
RGBrgb(82, 50, 165)
HSLhsl(257, 53%, 42%)
HSVhsv(257, 70%, 65%)
CMYKcmyk(50.3%, 69.7%, 0%, 35.3%)
CIE-LABlab(31.33, 42.66, -57.08)
CIE-LCHlch(31.33, 71.26, 306.77°)
OKLaboklab(42.66% 0.0587 -0.1638)
OKLCHoklch(42.66% 0.174 289.7)
XYZxyz(11.4099, 6.7912, 36.2997)
Luminance0.0679 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5232A5 #85A532
analogous
#324BA5 #5232A5 #8C32A5
triadic
#5232A5 #A55232 #32A552
tetradic
#5232A5 #A5324B #85A532 #32A58C
square
#5232A5 #A5324B #85A532 #32A58C
split-complementary
#5232A5 #A58C32 #4BA532
monochromatic
#231647 #3B2476 #5232A5 #6E4CC9 #947BD7

Accessibility & contrast

On white

8.90
#5232A5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.36
#5232A5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##5232A5#FFFFFF#000000##FFFFFF
##5232A51.008.902.368.90
#FFFFFF8.901.0021.001.00
#0000002.3621.001.0021.00
##FFFFFF8.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CA8
Deuteranopia (green-blind)
#0047A3
Tritanopia (blue-blind)
#354F67
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #5232a5;
/* rgb */ color: rgb(82, 50, 165);
/* oklch */ color: oklch(42.7% 0.174 289.7);
Tailwind
colors: {
  custom: {
    50: '#8a6cc1',
    500: '#5232a5',
    950: '#000000',
  },
}
SCSS
$custom: #5232a5;
$custom-light: #8a6cc1;
$custom-dark: #000000;
JSON
{
  "hex": "#5232a5",
  "rgb": {
    "r": 82,
    "g": 50,
    "b": 165
  },
  "hsl": {
    "h": 256.696,
    "s": 53.488,
    "l": 42.157
  },
  "oklch": {
    "l": 0.42663,
    "c": 0.17397,
    "h": 289.7
  },
  "luminance": 0.06792
}

Semantic roles & 50–950 ramp

primary
#5232A5
secondary
#AABF73
accent
#DD4BB4
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0D0712
muted
#7D7A81

Preview Lab

Preview with #5232A5

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

Preview Lab → · Contrast checker → · Palette generator →

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