#5231AA#5231AA

#5231AA is a dark, vivid violet. Relative luminance 0.069; OKLCH L 43.0% C 0.181 H 288.9°. Best body text is #FFFFFF at 8.83:1 contrast (WCAG AA passes).

Color values

HEX#5231AA
RGBrgb(82, 49, 170)
HSLhsl(256, 55%, 43%)
HSVhsv(256, 71%, 67%)
CMYKcmyk(51.8%, 71.2%, 0%, 33.3%)
CIE-LABlab(31.56, 44.65, -59.71)
CIE-LCHlch(31.56, 74.56, 306.79°)
OKLaboklab(42.96% 0.0587 -0.1715)
OKLCHoklch(42.96% 0.181 288.9)
XYZxyz(11.8316, 6.8922, 38.7293)
Luminance0.0689 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5231AA #89AA31
analogous
#314CAA #5231AA #8F31AA
triadic
#5231AA #AA5231 #31AA52
tetradic
#5231AA #AA314C #89AA31 #31AA8F
square
#5231AA #AA314C #89AA31 #31AA8F
split-complementary
#5231AA #AA8F31 #4CAA31
monochromatic
#24164B #3B237A #5231AA #6F4DCC #967CD9

Accessibility & contrast

On white

8.83
#5231AA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.38
#5231AA on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##5231AA#FFFFFF#000000##FFFFFF
##5231AA1.008.832.388.83
#FFFFFF8.831.0021.001.00
#0000002.3821.001.0021.00
##FFFFFF8.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DAE
Deuteranopia (green-blind)
#0047A8
Tritanopia (blue-blind)
#32516A
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #5231aa;
/* rgb */ color: rgb(82, 49, 170);
/* oklch */ color: oklch(43.0% 0.181 288.9);
Tailwind
colors: {
  custom: {
    50: '#8b6cc4',
    500: '#5231aa',
    950: '#000000',
  },
}
SCSS
$custom: #5231aa;
$custom-light: #8b6cc4;
$custom-dark: #000000;
JSON
{
  "hex": "#5231aa",
  "rgb": {
    "r": 82,
    "g": 49,
    "b": 170
  },
  "hsl": {
    "h": 256.364,
    "s": 55.251,
    "l": 42.941
  },
  "oklch": {
    "l": 0.42962,
    "c": 0.18123,
    "h": 288.9
  },
  "luminance": 0.06893
}

Semantic roles & 50–950 ramp

primary
#5231AA
secondary
#ADC275
accent
#DF49B6
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0713
muted
#7E7A82

Preview Lab

Preview with #5231AA

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

Preview Lab → · Contrast checker → · Palette generator →

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