#5231AC#5231AC

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

Color values

HEX#5231AC
RGBrgb(82, 49, 172)
HSLhsl(256, 56%, 43%)
HSVhsv(256, 72%, 67%)
CMYKcmyk(52.3%, 71.5%, 0%, 32.5%)
CIE-LABlab(31.74, 45.23, -60.62)
CIE-LCHlch(31.74, 75.63, 306.73°)
OKLaboklab(43.14% 0.0583 -0.1741)
OKLCHoklch(43.14% 0.184 288.5)
XYZxyz(12.0222, 6.9685, 39.7333)
Luminance0.0697 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5231AC #8BAC31
analogous
#314DAC #5231AC #8F31AC
triadic
#5231AC #AC5231 #31AC52
tetradic
#5231AC #AC314D #8BAC31 #31AC8F
square
#5231AC #AC314D #8BAC31 #31AC8F
split-complementary
#5231AC #AC8F31 #4DAC31
monochromatic
#25164D #3B237C #5231AC #704ECC #967DDA

Accessibility & contrast

On white

8.77
#5231AC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.39
#5231AC on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##5231AC#FFFFFF#000000##FFFFFF
##5231AC1.008.772.398.77
#FFFFFF8.771.0021.001.00
#0000002.3921.001.0021.00
##FFFFFF8.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DB0
Deuteranopia (green-blind)
#0047AA
Tritanopia (blue-blind)
#30516B
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #5231ac;
/* rgb */ color: rgb(82, 49, 172);
/* oklch */ color: oklch(43.1% 0.184 288.5);
Tailwind
colors: {
  custom: {
    50: '#8c6cc6',
    500: '#5231ac',
    950: '#000000',
  },
}
SCSS
$custom: #5231ac;
$custom-light: #8c6cc6;
$custom-dark: #000000;
JSON
{
  "hex": "#5231ac",
  "rgb": {
    "r": 82,
    "g": 49,
    "b": 172
  },
  "hsl": {
    "h": 256.098,
    "s": 55.656,
    "l": 43.333
  },
  "oklch": {
    "l": 0.4314,
    "c": 0.18364,
    "h": 288.5
  },
  "luminance": 0.06969
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5231AC

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

Preview Lab → · Contrast checker → · Palette generator →

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