#5231AE#5231AE

#5231AE is a dark, vivid violet. Relative luminance 0.070; OKLCH L 43.3% C 0.186 H 288.1°. Best body text is #FFFFFF at 8.72:1 contrast (WCAG AA passes).

Color values

HEX#5231AE
RGBrgb(82, 49, 174)
HSLhsl(256, 56%, 44%)
HSVhsv(256, 72%, 68%)
CMYKcmyk(52.9%, 71.8%, 0%, 31.8%)
CIE-LABlab(31.91, 45.81, -61.53)
CIE-LCHlch(31.91, 76.71, 306.67°)
OKLaboklab(43.32% 0.0579 -0.1768)
OKLCHoklch(43.32% 0.186 288.1)
XYZxyz(12.2157, 7.0459, 40.7525)
Luminance0.0705 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5231AE #8DAE31
analogous
#314EAE #5231AE #9031AE
triadic
#5231AE #AE5231 #31AE52
tetradic
#5231AE #AE314E #8DAE31 #31AE90
square
#5231AE #AE314E #8DAE31 #31AE90
split-complementary
#5231AE #AE9031 #4EAE31
monochromatic
#25164E #3B247E #5231AE #704FCD #977FDB

Accessibility & contrast

On white

8.72
#5231AE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.41
#5231AE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5231AE
8.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5231AE#FFFFFF#000000##FFFFFF
##5231AE1.008.722.418.72
#FFFFFF8.721.0021.001.00
#0000002.4121.001.0021.00
##FFFFFF8.721.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5231ae;
/* rgb */ color: rgb(82, 49, 174);
/* oklch */ color: oklch(43.3% 0.186 288.1);
Tailwind
colors: {
  custom: {
    50: '#8c6cc7',
    500: '#5231ae',
    950: '#000000',
  },
}
SCSS
$custom: #5231ae;
$custom-light: #8c6cc7;
$custom-dark: #000000;
JSON
{
  "hex": "#5231ae",
  "rgb": {
    "r": 82,
    "g": 49,
    "b": 174
  },
  "hsl": {
    "h": 255.84,
    "s": 56.054,
    "l": 43.725
  },
  "oklch": {
    "l": 0.4332,
    "c": 0.18604,
    "h": 288.1
  },
  "luminance": 0.07046
}

Semantic roles & 50–950 ramp

primary
#5231AE
secondary
#AFC477
accent
#DF48B8
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0713
muted
#7E7A82

Preview Lab

Preview with #5231AE

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

Preview Lab → · Contrast checker → · Palette generator →

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