#5231A5#5231A5

#5231A5 is a dark, vivid violet. Relative luminance 0.067; OKLCH L 42.5% C 0.175 H 289.9°. Best body text is #FFFFFF at 8.97:1 contrast (WCAG AA passes).

Color values

HEX#5231A5
RGBrgb(82, 49, 165)
HSLhsl(257, 54%, 42%)
HSVhsv(257, 70%, 65%)
CMYKcmyk(50.3%, 70.3%, 0%, 35.3%)
CIE-LABlab(31.13, 43.20, -57.40)
CIE-LCHlch(31.13, 71.84, 306.97°)
OKLaboklab(42.52% 0.0597 -0.1647)
OKLCHoklch(42.52% 0.175 289.9)
XYZxyz(11.3676, 6.7066, 36.2856)
Luminance0.0671 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5231A5 #84A531
analogous
#314AA5 #5231A5 #8C31A5
triadic
#5231A5 #A55231 #31A552
tetradic
#5231A5 #A5314A #84A531 #31A58C
square
#5231A5 #A5314A #84A531 #31A58C
split-complementary
#5231A5 #A58C31 #4AA531
monochromatic
#231547 #3B2376 #5231A5 #6E4AC9 #9479D7

Accessibility & contrast

On white

8.97
#5231A5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.34
#5231A5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##5231A5#FFFFFF#000000##FFFFFF
##5231A51.008.972.348.97
#FFFFFF8.971.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BA8
Deuteranopia (green-blind)
#0047A3
Tritanopia (blue-blind)
#364F67
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #5231a5;
/* rgb */ color: rgb(82, 49, 165);
/* oklch */ color: oklch(42.5% 0.175 289.9);
Tailwind
colors: {
  custom: {
    50: '#8b6cc1',
    500: '#5231a5',
    950: '#000000',
  },
}
SCSS
$custom: #5231a5;
$custom-light: #8b6cc1;
$custom-dark: #000000;
JSON
{
  "hex": "#5231a5",
  "rgb": {
    "r": 82,
    "g": 49,
    "b": 165
  },
  "hsl": {
    "h": 257.069,
    "s": 54.206,
    "l": 41.961
  },
  "oklch": {
    "l": 0.42522,
    "c": 0.17518,
    "h": 289.9
  },
  "luminance": 0.06707
}

Semantic roles & 50–950 ramp

primary
#5231A5
secondary
#AAC072
accent
#DE4AB4
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0D0712
muted
#7D7A81

Preview Lab

Preview with #5231A5

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

Preview Lab → · Contrast checker → · Palette generator →

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