#5231AD#5231AD

#5231AD is a dark, vivid violet. Relative luminance 0.070; OKLCH L 43.2% C 0.185 H 288.3°. Best body text is #FFFFFF at 8.74:1 contrast (WCAG AA passes).

Color values

HEX#5231AD
RGBrgb(82, 49, 173)
HSLhsl(256, 56%, 44%)
HSVhsv(256, 72%, 68%)
CMYKcmyk(52.6%, 71.7%, 0%, 32.2%)
CIE-LABlab(31.82, 45.52, -61.07)
CIE-LCHlch(31.82, 76.17, 306.70°)
OKLaboklab(43.23% 0.0581 -0.1755)
OKLCHoklch(43.23% 0.185 288.3)
XYZxyz(12.1186, 7.0070, 40.2410)
Luminance0.0701 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5231AD #8CAD31
analogous
#314EAD #5231AD #9031AD
triadic
#5231AD #AD5231 #31AD52
tetradic
#5231AD #AD314E #8CAD31 #31AD90
square
#5231AD #AD314E #8CAD31 #31AD90
split-complementary
#5231AD #AD9031 #4EAD31
monochromatic
#25164E #3B237D #5231AD #704ECD #977EDA

Accessibility & contrast

On white

8.74
#5231AD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.40
#5231AD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5231AD
8.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5231AD#FFFFFF#000000##FFFFFF
##5231AD1.008.742.408.74
#FFFFFF8.741.0021.001.00
#0000002.4021.001.0021.00
##FFFFFF8.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EB1
Deuteranopia (green-blind)
#0048AB
Tritanopia (blue-blind)
#2F526C
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #5231ad;
/* rgb */ color: rgb(82, 49, 173);
/* oklch */ color: oklch(43.2% 0.185 288.3);
Tailwind
colors: {
  custom: {
    50: '#8c6cc6',
    500: '#5231ad',
    950: '#000000',
  },
}
SCSS
$custom: #5231ad;
$custom-light: #8c6cc6;
$custom-dark: #000000;
JSON
{
  "hex": "#5231ad",
  "rgb": {
    "r": 82,
    "g": 49,
    "b": 173
  },
  "hsl": {
    "h": 255.968,
    "s": 55.856,
    "l": 43.529
  },
  "oklch": {
    "l": 0.4323,
    "c": 0.18484,
    "h": 288.3
  },
  "luminance": 0.07008
}

Semantic roles & 50–950 ramp

primary
#5231AD
secondary
#AFC377
accent
#DF49B7
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0713
muted
#7E7A82

Preview Lab

Preview with #5231AD

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

Preview Lab → · Contrast checker → · Palette generator →

#5231AD Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva